A local area network load alarm method, device and computer readable storage medium
By monitoring the total traffic of the LAN access points in real time by the main device, generating load alarms and adjusting the cycle, the problems of low overall bandwidth utilization and poor balance of the LAN are solved, and efficient load control is achieved.
Patent Information
- Application Number
- CN202310622158.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-30
- Publication Date
- 2025-11-25
- Estimated Expiration
- 2043-05-30
AI Technical Summary
Existing LAN load balancing cannot detect high load situations in a timely manner, resulting in low overall bandwidth utilization and poor balance.
The main device in the local area network obtains the real-time total traffic of all downstream devices at all access points according to a preset period, determines the percentage of bandwidth occupied by the traffic, and adjusts the alarm period and traffic threshold according to the threshold to generate load alarms to regulate device access or traffic.
It enables effective monitoring and timely adjustment of the overall bandwidth of the local area network, improving bandwidth utilization and load balancing.
Smart Images

Figure CN116633822B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of communication network, and particularly relates to a local area network load alarm method, device and computer readable storage medium. BACKGROUND
[0002] In the prior art, the load alarm of the local area network depends on the traffic monitoring of each access point to its own hanging device. However, the traffic monitoring of each access point to its own hanging device only involves the load capacity of each access point itself, and when the local area network as a whole faces high load, the above-mentioned local monitoring method cannot timely discover the high load situation and cannot apply corresponding regulation and control from the whole.
[0003] In summary, the current traffic regulation in the local area network is essentially the regulation of the access point to its own hanging device, and since the regulation of each access point cannot be unified, the load of the overall bandwidth of the local area network cannot be effectively monitored or adjusted, and the utilization rate and balance of the overall bandwidth of the local area network are poor. SUMMARY
[0004] In order to solve the above technical defects in the prior art, the present application provides a local area network load alarm method, which comprises:
[0005] acquiring, by a master device in the local area network, real-time total traffic of all hanging devices of all access points in the local area network according to a preset first period, and determining the size relationship between the percentage of the real-time total traffic occupying the bandwidth of the local area network and a preset first traffic threshold value;
[0006] generating a first load alarm when the percentage is greater than or equal to the first traffic threshold value, and adjusting the first period to a second period, and adjusting the first period to a third period when the percentage is less than the first traffic threshold value, wherein the second period is less than the first period, and the third period is greater than the first period.
[0007] Optionally, the acquiring, by the master device in the local area network, of the real-time total traffic of all hanging devices of all access points in the local area network according to the preset first period specifically comprises:
[0008] collecting, by the master device, single-device traffic of each hanging device uploaded by the access point according to the first period;
[0009] accumulating all the single-device traffic to obtain the real-time total traffic.
[0010] Optionally, the determining the size relationship between the percentage of the real-time total traffic occupying the bandwidth of the local area network and the preset first traffic threshold value further comprises:
[0011] generating a first load alarm when the percentage value is greater than or equal to the first traffic threshold, and adjusting the first traffic threshold to a second traffic threshold, wherein the second traffic threshold is less than the first traffic threshold;
[0012] adjusting the first traffic threshold to a third traffic threshold when the percentage value is less than the first traffic threshold, wherein the third traffic threshold is greater than the first traffic threshold and less than a limit threshold of the local area network.
[0013] Optionally, the generating the first load alarm when the percentage value is greater than or equal to the first traffic threshold, and adjusting the first period to a second period, and the adjusting the first period to a third period when the percentage value is less than the first traffic threshold, wherein the second period is less than the first period and the third period is greater than the first period, specifically comprises:
[0014] setting the second period as one half of a period length of the first period;
[0015] setting the third period as twice the period length of the first period.
[0016] Optionally, the generating the first load alarm when the percentage value is greater than or equal to the first traffic threshold, and adjusting the first period to a second period, and the adjusting the first period to a third period when the percentage value is less than the first traffic threshold, wherein the second period is less than the first period and the third period is greater than the first period, further comprises:
[0017] restoring the second period to the first period when a device access regulation instruction or a traffic regulation instruction corresponding to the first load alarm is monitored;
[0018] adjusting the second period to a fourth period when the device access regulation instruction or the traffic regulation instruction is not monitored, wherein the fourth period is set as one half of a period length of the second period.
[0019] The application further provides a local area network load alarm device, which comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, and the computer program is executed by the processor to implement:
[0020] acquiring, by a master device in the local area network, real-time total traffic of all devices hung under all access points in the local area network at a preset first period, and determining a size relationship between a percentage value of the real-time total traffic occupying bandwidth of the local area network and a preset first traffic threshold;
[0021] generate a first load alarm when the percentage value is greater than or equal to the first flow threshold value, and adjust the first period to a second period, wherein the second period is less than the first period, and adjust the first period to a third period when the percentage value is less than the first flow threshold value, wherein the third period is greater than the first period.
[0022] Optionally, the computer program, when executed by the processor, implements:
[0023] collect, by the master device, single-device flow of each of the hung devices uploaded by the access point at the first period;
[0024] accumulate all the single-device flow to obtain the real-time total flow.
[0025] Optionally, the computer program, when executed by the processor, implements:
[0026] generate a first load alarm when the percentage value is greater than or equal to the first flow threshold value, and adjust the first flow threshold value to a second flow threshold value, wherein the second flow threshold value is less than the first flow threshold value;
[0027] adjust the first flow threshold value to a third flow threshold value when the percentage value is less than the first flow threshold value, wherein the third flow threshold value is greater than the first flow threshold value and less than a limit threshold value of the local area network.
[0028] Optionally, the computer program, when executed by the processor, implements:
[0029] set the second period as one half of a period length of the first period;
[0030] set the third period as twice the period length of the first period;
[0031] restore the second period to the first period when a device access regulation instruction or a flow regulation instruction corresponding to the first load alarm is monitored;
[0032] adjust the second period to a fourth period when the device access regulation instruction or the flow regulation instruction is not monitored, wherein the fourth period is set as one half of a period length of the second period.
[0033] The application further provides a computer readable storage medium, wherein a local area network load alarm program is stored on the computer readable storage medium, and the local area network load alarm program, when executed by a processor, implements steps of the local area network load alarm method according to any one of the preceding embodiments.
[0034] The local area network load alarm method, device and computer readable storage medium of the present application are characterized in that the master device in the local area network acquires the real-time total flow of all the devices hung under all the access points in the local area network according to a preset first period, and judges the size relation between the percentage of the real-time total flow occupying the bandwidth of the local area network and a preset first flow threshold value; when the percentage is greater than or equal to the first flow threshold value, a first load alarm is generated, and the first period is adjusted to a second period; when the percentage is less than the first flow threshold value, the first period is adjusted to a third period, wherein the second period is less than the first period, and the third period is greater than the first period. The present application realizes an adaptive local area network load alarm scheme, so that the load of the overall bandwidth of the local area network is effectively and timely monitored and adjusted, the utilization rate of the overall bandwidth of the local area network is improved, and the balance of the load of the local area network is enhanced. BRIEF DESCRIPTION OF DRAWINGS
[0035] The present application will be further described below in conjunction with the drawings and embodiments, wherein:
[0036] Figure 1 is the first flowchart of the local area network load alarm method of the present application;
[0037] Figure 2 is the second flowchart of the local area network load alarm method of the present application;
[0038] Figure 3 is the third flowchart of the local area network load alarm method of the present application;
[0039] Figure 4 is the fourth flowchart of the local area network load alarm method of the present application;
[0040] Figure 5 is the fifth flowchart of the local area network load alarm method of the present application;
[0041] Figure 6 is the alarm period regulation flowchart of the local area network load alarm method of the present application. DETAILED DESCRIPTION
[0042] It should be understood that the specific embodiments described herein are merely intended to explain the present application, and are not intended to limit the present application.
[0043] In the following description, the suffixes such as "module", "part", or "unit" used to express elements are only for the convenience of explanation of the present application, and have no specific meaning by themselves. Therefore, "module", "part", or "unit" can be mixedly used.
[0044] Figure 1is the first flow chart of the LAN load alarm method of the present application. The embodiment proposes a LAN load alarm method, which comprises:
[0045] S1, obtaining real-time total flow of all the devices hung under all the access points in the LAN by the master device in the LAN according to a preset first period, and judging the size relation between the percentage of the real-time total flow to the bandwidth of the LAN and a preset first flow threshold value;
[0046] S2, generating a first load alarm when the percentage is greater than or equal to the first flow threshold value, and adjusting the first period to a second period, and adjusting the first period to a third period when the percentage is less than the first flow threshold value, wherein the second period is less than the first period, and the third period is greater than the first period.
[0047] In the embodiment, the LAN contains at least two wireless or wired access points, and a flow collection module is configured in the master device of the LAN to perform real-time statistics on the flow of the access devices of the access points in the LAN. Based on this, the flow state of each access point is sent to the flow judgment module of the master device by the flow collection module of the master device after the access devices of the LAN are online, and the flow state is judged by the flow judgment module. If the flow exceeds the threshold value of the access point, or if the flow exceeds the threshold value of the LAN, the user is notified by the flow load alarm module to adjust the access of the device, or to adjust the flow of the device, so as to achieve the purpose of network flow balance, and improve the bandwidth use efficiency in the LAN.
[0048] Optionally, in the embodiment, the preset local area network comprises at least two WiFi access points and one master device, the WiFi access points in the local area network are configured to report real-time traffic of the hung access devices to the master device, wherein the hung access devices comprise hung wired devices and hung wireless devices. Based on this, the traffic collection module of the master device is configured to collect and process the traffic of the access devices in the local area network, and calculate the total traffic value of all the devices hung by each WiFi access point. Further, the percentage of the total traffic value of all the devices hung by the current WiFi access point in the total bandwidth of the local area network is calculated, and the percentage is compared with the preset traffic threshold of the WiFi access point to determine whether the access devices or the device traffic of the current WiFi access point need to be optimized or adjusted. Specifically, the master device determines whether the current WiFi access point needs to be subjected to traffic load alarm according to the calculated percentage, and when the percentage exceeds the traffic threshold, the traffic determination module of the master device sends a message to the traffic load alarm module of the master device to inform the user to adjust the access of the devices or adjust the traffic of the devices.
[0049] Optionally, in the embodiment, the repeating period of the percentage determination operation is set in a backoff manner, for example, the initial traffic determination module of the master device determines the waiting time as T1, the waiting time is T each time, the first waiting time T=T1, if the current percentage exceeds the traffic threshold, the waiting time of the traffic determination module of the master device in the next time is T<T1, if the current percentage does not exceed the traffic threshold, the waiting time of the traffic determination module of the master device in the next time is T>T1, and so on.
[0050] Optionally, in the embodiment, the local area network comprises one master device and at least two WiFi access devices, wherein the master device is configured with a traffic collection module, the WiFi access devices are configured to allow wired devices to access the Internet through network cables and allow wireless devices to access the Internet through WiFi. When the hung access devices of the WiFi access devices access the network, the traffic collection module of the master device is configured to obtain the real-time traffic of any hung access device of any WiFi access device.
[0051] Optionally, in the embodiment, please refer to Figure 6The alarm cycle regulation flowchart is shown. The master device performs statistical processing on the traffic of each device hung under each WiFi access point collected. There are N devices hung under a WiFi access point, the traffic of a single device is recorded as Thn, the real-time total traffic value of all devices hung under each WiFi access point is calculated as TH=Th1+Th2+Th3+…+Thn, the total bandwidth is recorded as B, and the percentage of the total bandwidth occupied by the devices on the current WiFi access point is calculated as P=TH / B according to the traffic value. By comparing the preset traffic threshold Pt of the WiFi access point, it is determined whether the access devices of the current WiFi access point need to be optimized. Specifically, when P>Pt, it is determined that the current WiFi access point needs to perform traffic load alarm, and the user is notified to perform device access or traffic adjustment. When P<=Pt, it is determined that the current WiFi access point does not need to perform traffic load alarm, and the user is not notified to perform device access or traffic adjustment. Further, in this embodiment, the local network load alarm operation repetition period depends on the result of the last alarm. For example, a backoff period mode is adopted, the initial traffic judgment module of the master device determines the waiting time as T1, the waiting time is T each time, the first waiting time T=T1, if the percentage of the total bandwidth occupied by the current WiFi access point exceeds the traffic threshold, then the waiting time of the traffic judgment module of the master device next time is T=T / 2, if the percentage of the total bandwidth occupied by the current WiFi access point does not exceed the traffic threshold, then the waiting time of the traffic judgment module of the master device next time is T=T*2, and so on.
[0052] The beneficial effects of this embodiment are that the master device in the local network acquires the real-time total traffic of all hung devices of all access points in the local network according to a preset first period, and determines the size relationship between the percentage of the real-time total traffic occupying the bandwidth of the local network and a preset first traffic threshold. When the percentage is greater than or equal to the first traffic threshold, a first load alarm is generated, and the first period is adjusted to a second period. When the percentage is less than the first traffic threshold, the first period is adjusted to a third period. The second period is less than the first period, and the third period is greater than the first period. The application realizes an adaptive local network load alarm scheme, so that the load of the overall bandwidth of the local network is effectively and timely monitored and adjusted, the utilization rate of the overall bandwidth of the local network is improved, and the balance of the load of the local network is enhanced.
[0053] Figure 2 The second flowchart of the local network load alarm method of the application is based on the above embodiment, and the master device in the local network acquires the real-time total traffic of all hung devices of all access points in the local network according to a preset first period, which specifically includes:
[0054] S11, collecting, by the master device, per-device traffic of each of the hung devices uploaded by the access point according to the first period;
[0055] S12, accumulating all the per-device traffic to obtain the real-time total traffic.
[0056] Optionally, in the embodiment, a first collection time is determined according to a first period, per-device traffic data of each of the hung devices uploaded by the access point is collected at the first collection time, and all the per-device traffic data is accumulated to obtain the real-time total traffic.
[0057] Optionally, in the embodiment, a first collection period is determined according to a first period, per-device traffic data of each of the hung devices uploaded by the access point is collected at the first collection period, and an average value of all the per-device traffic is accumulated to obtain the real-time total traffic.
[0058] Optionally, in the embodiment, a first collection period is determined according to a first period, per-device traffic data of each of the hung devices uploaded by the access point is collected at the first collection period, and a maximum value of all the per-device traffic is accumulated to obtain the real-time total traffic.
[0059] Figure 3 is a third flowchart of the LAN load alarm method, based on the above embodiment, the judgment of the size relationship between the percentage value of the real-time total traffic occupying the bandwidth of the LAN and the first traffic threshold further comprises:
[0060] S13, when the percentage value is greater than or equal to the first traffic threshold, a first load alarm is generated, and the first traffic threshold is adjusted to a second traffic threshold, wherein the second traffic threshold is less than the first traffic threshold;
[0061] S14, when the percentage value is less than the first traffic threshold, the first traffic threshold is adjusted to a third traffic threshold, wherein the third traffic threshold is greater than the first traffic threshold and less than a limit threshold of the LAN.
[0062] Optionally, in the embodiment, the first traffic threshold is set according to the bandwidth parameter of the current LAN, for example, seventy percent of the real-time total traffic that can be carried by the current LAN is set as the first traffic threshold according to the bandwidth parameter.
[0063] Optionally, in the embodiment, a first preset percentage value of the first traffic threshold is taken as the second traffic threshold, wherein the first preset percentage value is less than 1, or the second traffic threshold is set according to the bandwidth parameter of the current LAN, for example, fifty percent of the real-time total traffic that can be carried by the current LAN is set as the second traffic threshold according to the bandwidth parameter.
[0064] Optionally, in the embodiment, a second preset proportional value of the first traffic threshold is set as the third traffic threshold, wherein the second preset proportional value is greater than 1, or the third traffic threshold is set according to the bandwidth parameter of the current LAN, for example, eighty percent of the real-time total traffic that the current LAN can bear is set as the third traffic threshold according to the bandwidth parameter.
[0065] Optionally, in the embodiment, one or more of the first traffic threshold, the second traffic threshold and the third traffic threshold are dynamically adjusted according to the latency parameter of the current LAN. For example, when the latency in the latency parameter increases, one or more of the first traffic threshold, the second traffic threshold and the third traffic threshold are adjusted lower, while the second traffic threshold, the first traffic threshold and the third traffic threshold are kept in the order from small to large; for another example, when the latency in the latency parameter decreases, one or more of the first traffic threshold, the second traffic threshold and the third traffic threshold are adjusted higher, while the second traffic threshold, the first traffic threshold and the third traffic threshold are kept in the order from small to large.
[0066] Optionally, in the embodiment, when the second traffic threshold after multiple adjustments is less than a preset minimum threshold, the adjustment of the second traffic threshold is stopped, and the minimum threshold is set as the second traffic threshold.
[0067] Optionally, in the embodiment, when the third traffic threshold after multiple adjustments is greater than a preset limit threshold, the adjustment of the third traffic threshold is stopped, and the limit threshold is set as the third traffic threshold.
[0068] Figure 4 is a fourth flowchart of the LAN load alarm method of the application, based on the above-mentioned embodiment, when the percentage value is greater than or equal to the first traffic threshold, a first load alarm is generated, and the first period is adjusted to a second period, when the percentage value is less than the first traffic threshold, the first period is adjusted to a third period, wherein the second period is less than the first period, and the third period is greater than the first period, and specifically comprising:
[0069] S21, setting the second period as one half of the period length of the first period;
[0070] S22, setting the third period as twice the period length of the first period.
[0071] Optionally, in the embodiment, the above-mentioned percentage is adjusted according to the same category of continuous adjustment times, for example, for the case of continuous period adjustment lower, the period length of the next time is set by one half of the percentage for the first time, and the period length of the next time is set by one third or one fourth of the percentage for the second time.
[0072] Optionally, in this embodiment, for the case of continuous increase period, the next period length is set by twice the ratio for the first time, and by three or four times the ratio for the second time.
[0073] Figure 5 is the fifth flowchart of the LAN load alarm method, based on the above-mentioned embodiment, when the percentage value is greater than or equal to the first flow threshold, a first load alarm is generated, and the first period is adjusted to a second period, when the percentage value is less than the first flow threshold, the first period is adjusted to a third period, wherein the second period is less than the first period, and the third period is greater than the first period, and then further comprising:
[0074] S31, when the device access control instruction or the flow control instruction corresponding to the first load alarm is monitored, the second period is restored to the first period;
[0075] S32, when the device access control instruction or the flow control instruction is not monitored, the second period is adjusted to a fourth period, wherein the fourth period is set by half of the period length of the second period.
[0076] Optionally, in this embodiment, when the device access control instruction or the flow control instruction corresponding to the first load alarm is monitored, the size relationship between the percentage value and the first flow threshold in the next period after the instruction is executed is monitored. If the percentage value is still greater than or equal to the first flow threshold, the second period is adjusted to a fourth period, wherein the fourth period is set by half of the period length of the second period, and if the percentage value is less than the first flow threshold, the second period is restored to the first period.
[0077] Based on the above-mentioned embodiment, the present application further proposes a LAN load alarm device, which comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the computer program is executed by the processor, the following steps are realized:
[0078] all the real-time total flows of all the devices connected to the access points in the LAN are acquired by the master device in the LAN according to a preset first period, and the size relationship between the percentage value of the real-time total flow occupying the bandwidth of the LAN and a preset first flow threshold is judged;
[0079] generate a first load alarm and adjust the first period to a second period when the percentage value is greater than or equal to the first traffic threshold, and adjust the first period to a third period when the percentage value is less than the first traffic threshold, wherein the second period is less than the first period, and the third period is greater than the first period.
[0080] Optionally, the computer program, when executed by the processor, implements:
[0081] collecting, by the master device, single-device traffic of each of the hung devices uploaded by the access point at the first period;
[0082] accumulating all the single-device traffic to obtain the real-time total traffic.
[0083] Optionally, the computer program, when executed by the processor, implements:
[0084] generate a first load alarm and adjust the first traffic threshold to a second traffic threshold when the percentage value is greater than or equal to the first traffic threshold, wherein the second traffic threshold is less than the first traffic threshold;
[0085] adjust the first traffic threshold to a third traffic threshold when the percentage value is less than the first traffic threshold, wherein the third traffic threshold is greater than the first traffic threshold and less than a limit threshold of the local area network.
[0086] Optionally, the computer program, when executed by the processor, implements:
[0087] set the second period as one half of a period length of the first period;
[0088] set the third period as twice the period length of the first period;
[0089] restore the second period to the first period when a device access regulation instruction or a traffic regulation instruction corresponding to the first load alarm is monitored;
[0090] adjust the second period to a fourth period when the device access regulation instruction or the traffic regulation instruction is not monitored, wherein the fourth period is set as one half of a period length of the second period.
[0091] It should be noted that the device embodiment and the method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, and the technical features in the method embodiment are all applicable in the device embodiment, which will not be repeated here.
[0092] Based on the above embodiments, the application further provides a computer readable storage medium, which stores a local area network load alarm program, and the local area network load alarm program, when executed by a processor, implements the steps of the local area network load alarm method according to any one of the above embodiments.
[0093] It should be noted that the above medium embodiments and the method embodiments belong to the same concept, and the specific implementation process is detailed in the method embodiments, and the technical features in the method embodiments are all applicable to the medium embodiments, which will not be repeated here.
[0094] It should be noted that in this document, the term "comprising" or "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or apparatus including a series of elements not only includes those elements, but also includes other elements not explicitly listed or inherent to such a process, method, article or apparatus. Without more limitations, the element defined by the statement "including a" does not exclude the presence of additional identical elements in the process, method, article or apparatus including the element.
[0095] The above-mentioned embodiment numbers of the application are only for description, and do not represent the advantages and disadvantages of the embodiments.
[0096] From the above description of the embodiments, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be realized by means of software and necessary general hardware platform, of course, they can also be realized by hardware, but in many cases the former is a better embodiment. Based on this understanding, the technical solutions of the application can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes a plurality of instructions for making a terminal (which can be a mobile phone, computer, server, air conditioner or network device, etc.) execute the methods described in various embodiments of the application.
[0097] The embodiments of the application are described above in combination with the drawings, but the application is not limited to the above specific embodiments, and the above specific embodiments are only illustrative, not restrictive, and those skilled in the art can make many forms under the inspiration of the application without departing from the purpose of the application and the scope protected by the claims. These all belong to the protection of the application.
Claims
1. A local area network load alarm method, characterized in that, The method includes: The main device in the local area network obtains the real-time total traffic of all downstream devices of all access points in the local area network according to a preset first cycle, and determines the relationship between the percentage of the real-time total traffic occupying the bandwidth of the local area network and the preset first traffic threshold. When the percentage value is greater than or equal to the first traffic threshold, a first load alarm is generated, the first cycle is adjusted to a second cycle, and the first traffic threshold is adjusted to a second traffic threshold, wherein the second traffic threshold is less than the first traffic threshold; When the percentage value is less than the first traffic threshold, the first cycle is adjusted to the third cycle, and the first traffic threshold is adjusted to the third traffic threshold, wherein the second cycle is less than the first cycle, the third cycle is greater than the first cycle, and the third traffic threshold is greater than the first traffic threshold and less than the limit threshold of the local area network. When a device access control command or traffic control command corresponding to the first load alarm is detected, the second cycle will be restored to the first cycle. When no device access control command or traffic control command is detected, the second cycle is adjusted to the fourth cycle, wherein the fourth cycle is set to half the cycle length of the second cycle.
2. The local area network load alarm method according to claim 1, characterized in that, The step of obtaining the real-time total traffic of all downstream devices of all access points in the local area network through the master device in the local area network according to a preset first cycle specifically includes: The main device collects the single-device traffic of each of the connected devices uploaded by the access point according to the first cycle; The total real-time traffic is obtained by summing up the traffic of all the individual devices.
3. The local area network load alarm method according to claim 1, characterized in that, When the percentage value is greater than or equal to the first traffic threshold, a first load alarm is generated, and the first cycle is adjusted to a second cycle; when the percentage value is less than the first traffic threshold, the first cycle is adjusted to a third cycle, wherein the second cycle is less than the first cycle, and the third cycle is greater than the first cycle, specifically including: The second cycle is set to half the cycle length of the first cycle; The third cycle is set to have twice the cycle length of the first cycle.
4. A local area network load alarm device, characterized in that, The device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being executed by the processor to implement: The main device in the local area network obtains the real-time total traffic of all downstream devices of all access points in the local area network according to a preset first cycle, and determines the relationship between the percentage of the real-time total traffic occupying the bandwidth of the local area network and the preset first traffic threshold. When the percentage value is greater than or equal to the first traffic threshold, a first load alarm is generated, the first cycle is adjusted to a second cycle, and the first traffic threshold is adjusted to a second traffic threshold, wherein the second traffic threshold is less than the first traffic threshold; When the percentage value is less than the first traffic threshold, the first cycle is adjusted to the third cycle, and the first traffic threshold is adjusted to the third traffic threshold, wherein the second cycle is less than the first cycle, the third cycle is greater than the first cycle, and the third traffic threshold is greater than the first traffic threshold and less than the limit threshold of the local area network. When a device access control command or traffic control command corresponding to the first load alarm is detected, the second cycle will be restored to the first cycle. When no device access control command or traffic control command is detected, the second cycle is adjusted to the fourth cycle, wherein the fourth cycle is set to half the cycle length of the second cycle.
5. The local area network load alarm device according to claim 4, characterized in that, The computer program is implemented when executed by the processor: The main device collects the single-device traffic of each of the connected devices uploaded by the access point according to the first cycle; The total real-time traffic is obtained by summing up the traffic of all the individual devices.
6. The local area network load alarm device according to claim 5, characterized in that, The computer program is implemented when executed by the processor: The second cycle is set to half the cycle length of the first cycle; The third cycle is set to have twice the cycle length of the first cycle.
7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a local area network (LAN) load alarm program, which, when executed by a processor, implements the steps of the LAN load alarm method as described in any one of claims 1 to 3.
Citation Information
Patent Citations
Method for intelligent online monitoring of network flow of front-end local area network
CN106506261A
Elephant flow path monitoring and scheduling method based on SDN data center network
CN110932989A