Intelligent gateway configuration method and intelligent gateway device

By setting DNS entries, wireless signals and online duration statistics variables in the smart gateway, dynamically adjusting the TTL value, wireless channel and transmission rate, the problem that the smart home gateway cannot actively improve network performance and improve users' network usage experience.

CN115967959BActive Publication Date: 2025-07-25HUNAN YILIAN UNLIMITED TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210366118.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-08
Publication Date
2025-07-25
Estimated Expiration
2042-04-08

AI Technical Summary

Technical Problem

Existing smart home gateways cannot proactively improve network performance and cannot solve the disconnection and delay problems that users encounter when using the gateway's Internet services.

Method used

Set the response variables for DNS entries, the client's wireless workstation low signal statistical variables and disconnected statistical variables, and the client's online duration statistical variables in the configuration data of the gateway. By counting these variables, the client's wireless channel and transmission rate and connection priority are dynamically adjusted to actively improve network performance.

Benefits of technology

It can actively solve the problems of disconnection and delays of users when using the gateway's Internet service, and improve the network usage experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115967959B_ABST
    Figure CN115967959B_ABST
Patent Text Reader

Abstract

The present invention provides an intelligent gateway configuration method and an intelligent gateway device. The method includes the following steps: setting response variables corresponding to each DNS entry, a low signal statistics variable and a disconnection statistics variable of the wireless workstation of the client, and an online duration statistics variable of the client in the configuration data of the gateway; counting the query times of the DNS entries, the low signal and disconnection conditions of each client, and the online duration of each client according to the response variables of each DNS entry, the low signal statistics variable and the disconnection statistics variable of the wireless workstation, and the online duration statistics variable of the client, and dynamically adjusting the TTL value corresponding to the DNS entry, the wireless channel and transmission rate of the client, and the connection priority of the client, so as to actively improve the network performance through the intelligent gateway, actively solve the disconnection and delay problems that occur when the user uses the Internet service of the gateway, and improve the user's network usage experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technologies, and in particular, to a method for configuring an intelligent gateway and an intelligent gateway device. Background Art

[0002] The number of fixed broadband users in China exceeds 400 million households, and the number of client devices accessing home gateways is even larger. There is an endless variety of types of intelligent home gateways, and various different types of intelligent home gateways provide users with many different types of management and configuration services, such as Internet bandwidth management, black and white list management, wireless channel password management, wireless power management, wireless roaming management, wireless networking management, gateway energy-saving management, gateway usage status management, etc. This series of services defines the gateway as an intelligent gateway, and its essence is to improve the Internet experience and enable users to more simply enjoy higher-quality network services.

[0003] Although current intelligent home gateways can provide many convenient management methods, when users face the network performance of the gateway, they still have a passive experience method. Users cannot solve the problems of accidental disconnection and delay that occur during Internet access.

[0004] In summary, existing intelligent home gateways have some deficiencies. For example, they passively respond to users' higher requirements for network performance and require users to configure the functions of the intelligent gateway by themselves. However, the intelligent home gateway cannot actively improve network performance and cannot actively solve the problems of disconnection and delay that occur when users use the Internet services of the gateway. Summary of the Invention

[0005] The purpose of the present invention is to provide a method for configuring an intelligent gateway and an intelligent gateway device, which can actively improve network performance, actively solve the problems of disconnection and delay that occur when users use the Internet services of the gateway, and enhance the network usage experience of users.

[0006] To achieve the above purpose, the present invention provides a method for configuring an intelligent gateway, including the following steps:

[0007] Step S1: Set response variables corresponding to each DNS entry, a low-signal statistics variable and a disconnection statistics variable of the wireless workstation of the client, and an online duration statistics variable of the client in the configuration data of the gateway;

[0008] Step S2: Use the response variables of each DNS entry to count the number of queries of each DNS entry, and when the number of queries of the DNS entry reaches a preset query number threshold, increase the TTL value corresponding to the DNS entry;

[0009] Step S3: Use the low-signal statistical variable and disconnection statistical variable of the wireless workstation of the client to count the number of times the wireless signal strength of each client is lower than the preset wireless signal strength threshold and the number of times each client is disconnected. When the number of times the wireless signal strength of the client is lower than the preset wireless signal strength threshold reaches and the number of times the client is disconnected meets the preset wireless signal adjustment condition, adjust the wireless channel and transmission rate of the client;

[0010] Step S4: Use the online duration statistical variable of the client to count the online duration of the client, read the CPU usage rate, memory usage rate, and network connection number of the gateway. When the CPU usage rate, memory usage rate, and network connection number of the gateway meet the preset priority condition, control the gateway to preferentially connect to the client with a longer online duration.

[0011] Optionally, the step S2 specifically includes:

[0012] When finding a matching DNS entry domain name in the DNS cache structure, increment the corresponding response variable of the DNS entry by 1, and the value of the corresponding response variable of the DNS entry is equal to the number of queries of the DNS entry;

[0013] When the response variable of the DNS entry reaches the preset query count threshold, write the DNS entry into the preset high-query frequency file, and at the same time increase the TTL value in the response message of the DNS entry.

[0014] Optionally, the step S3 specifically includes:

[0015] When the wireless workstation of the client sends a disassociation request, increment the disconnection statistical variable by 1;

[0016] When the wireless received signal strength of the wireless workstation of the client is lower than the set threshold, increment the low-signal statistical variable by 1;

[0017] When the disconnection statistical variable of the wireless workstation of the client reaches the preset disconnection threshold and the low-signal statistical variable reaches the preset low-signal threshold, write the wireless workstation into the file with poor wireless signal quality, and at the same time adjust the wireless channel and transmission rate of the wireless workstation.

[0018] Optionally, the adjustment of the wireless channel and transmission rate of the wireless workstation specifically includes:

[0019] The wireless driver enables automatic channel scanning and reselects the channel;

[0020] The wireless driver increases the RF transmission power;

[0021] The wireless driver switches the working mode from 802.11ac to 802.11n, and from 802.11n to 802.11g.

[0022] Optionally, step S4 specifically includes:

[0023] Create a DHCP lease reading polling thread;

[0024] Read the DHCP service lease file according to a preset reading period;

[0025] Extract the Mac address and IP address from the lease file and write them into the Mac_list linked list;

[0026] When the Mac address exists in the Mac_list linked list, increment the online duration statistical variable of the client corresponding to the Mac address by 1;

[0027] Read the CPU usage rate, memory usage rate and network connection count of the gateway. When the CPU usage rate, memory usage rate and network connection count of the gateway reach the preset gateway CPU usage rate threshold, memory usage rate threshold and network connection count threshold respectively;

[0028] Read the Mac_list linked list and select the Mac address corresponding to the client with the largest online duration statistical variable;

[0029] Use the QOS service to control the gateway to preferentially connect to the Mac address.

[0030] The present invention further includes an intelligent gateway device, including:

[0031] A setting unit for setting response variables corresponding to each DNS entry, a wireless workstation low signal statistical variable and a disconnection statistical variable of the client, and an online duration statistical variable of the client in the configuration data of the gateway;

[0032] A DNS perception and improvement module for counting the query times of each DNS entry by using the response variables of each DNS entry, and increasing the TTL value corresponding to the DNS entry when the query times of the DNS entry reach a preset query times threshold;

[0033] A wireless perception and improvement module for counting the number of times the wireless signal strength of each client is lower than a preset wireless signal strength threshold and the number of times each client is disconnected by using the wireless workstation low signal statistical variable and the disconnection statistical variable of the client, and adjusting the wireless channel and transmission rate of the client when the number of times the wireless signal strength of the client is lower than the preset wireless signal strength threshold reaches and the number of times the client is disconnected meets a preset wireless signal adjustment condition;

[0034] An online perception and improvement module, which is used to statistically calculate the online duration of a client by using the online duration statistical variable of the client, read the CPU usage rate, memory usage rate, and network connection number of the gateway, and when the CPU usage rate, memory usage rate, and network connection number of the gateway meet the preset priority conditions, control the gateway to preferentially connect to the client with a longer online duration.

[0035] Optionally, the DNS perception and improvement module is specifically used for:

[0036] When finding a corresponding DNS entry domain name match in the DNS cache structure, increment the corresponding response variable of the DNS entry by 1, and the value of the corresponding response variable of the DNS entry is equal to the query times of the DNS entry;

[0037] When the response variable of the DNS entry reaches the preset query times threshold, write the DNS entry into the preset high query frequency file, and at the same time increase the TTL value in the response packet of the DNS entry.

[0038] Optionally, the wireless perception and improvement module is specifically used for:

[0039] When the wireless workstation of the client sends a disassociation request, increment the disconnection statistical variable by 1;

[0040] When the wireless received signal strength of the wireless workstation of the client is lower than the set threshold, increment the low signal statistical variable by 1;

[0041] When the disconnection statistical variable of the wireless workstation of the client reaches the preset disconnection threshold and the low signal statistical variable reaches the preset low signal threshold, write the wireless workstation into the file with poor wireless signal quality, and at the same time adjust the wireless channel and transmission rate of the wireless workstation.

[0042] Optionally, the adjustment of the wireless channel and transmission rate of the wireless workstation specifically includes:

[0043] The wireless driver enables automatic channel scanning and reselects the channel;

[0044] The wireless driver increases the RF transmission power;

[0045] The wireless driver switches the working mode from 802.11ac to 802.11n, and from 802.11n to 802.11g.

[0046] Optionally, the online perception and improvement module is specifically used for:

[0047] Create a DHCP lease reading polling thread

[0048] Read the DHCP service lease file according to the preset reading period

[0049] Extract the Mac address and IP address from the lease file and write them into the Mac_list linked list

[0050] When the Mac address exists in the Mac_list linked list, increment the online duration statistical variable of the client corresponding to this Mac address by 1

[0051] Read the CPU usage rate, memory usage rate, and network connection count of the gateway. When the CPU usage rate, memory usage rate, and network connection count of the gateway reach the preset gateway CPU usage rate threshold, memory usage rate threshold, and network connection count threshold respectively;

[0052] Read the Mac_list linked list and select the Mac address corresponding to the client with the largest online duration statistical variable;

[0053] Use the QOS service to control the gateway to preferentially connect to this Mac address.

[0054] Advantages of the present invention: The present invention provides an intelligent gateway configuration method and an intelligent gateway device. The method includes the following steps: Step S1, set the response variables corresponding to each DNS entry, the low signal statistical variable and disconnection statistical variable of the client's wireless workstation, and the online duration statistical variable of the client in the configuration data of the gateway; Step S2, use the response variables of each DNS entry to count the query times of each DNS entry, and when the query times of the DNS entry reach the preset query times threshold, increase the TTL value corresponding to this DNS entry; Step S3, use the low signal statistical variable and disconnection statistical variable of the client's wireless workstation to count the number of times the wireless signal strength of each client is lower than the preset wireless signal strength threshold and the number of times each client is disconnected, and when the number of times the wireless signal strength of the client is lower than the preset wireless signal strength threshold and the number of times the client is disconnected meet the preset wireless signal adjustment conditions, adjust the wireless channel and transmission rate of this client; Step S4, use the online duration statistical variable of the client to count the online duration of the client, read the CPU usage rate, memory usage rate, and network connection count of the gateway. When the CPU usage rate, memory usage rate, and network connection count of the gateway meet the preset priority conditions, control the gateway to preferentially connect to the client with a longer online duration, which can actively improve the network performance, actively solve the disconnection and delay problems that occur when users use the Internet service of the gateway, and enhance the user's network usage experience. Description of the Drawings

[0055] In order to further understand the features and technical content of the present invention, please refer to the following detailed description and drawings of the present invention. However, the drawings are only for reference and illustration purposes and are not used to limit the present invention.

[0056] In the drawings,

[0057] Figure 1 It is the flowchart of the working process of the intelligent gateway configuration method of the present invention;

[0058] Figure 2 It is the schematic diagram of step S2 in the intelligent gateway configuration method of the present invention;

[0059] Figure 3 It is the schematic diagram of step S3 in the intelligent gateway configuration method of the present invention;

[0060] Figure 4 It is the schematic diagram of step S4 in the intelligent gateway configuration method of the present invention;

[0061] Figure 5 It is the schematic diagram of the intelligent gateway device of the present invention. Detailed implementation manners

[0062] To further elaborate on the technical means adopted by the present invention and its effects, the following provides a detailed description in combination with the preferred embodiments of the present invention and their accompanying drawings.

[0063] The following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative efforts fall within the scope of protection of the present application.

[0064] In the description of the present application, it should be understood that the terms "center", "longitudinal", "transverse", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", etc. indicate the orientation or positional relationship based on the orientation or positional relationship shown in the drawings. It is only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus cannot be construed as a limitation to the present application. In addition, the terms "first" and "second" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, features defined with "first" and "second" may explicitly or implicitly include one or more features. In the description of the present application, "a plurality" means two or more, unless otherwise specifically defined.

[0065] In this application, the term "exemplary" is used to mean "serving as an example, illustration, or instance". Any embodiment described as "exemplary" in this application is not necessarily to be construed as more preferred or advantageous than other embodiments. The following description is provided to enable any person skilled in the art to make and use this application. In the following description, details are set forth for the purpose of explanation. It should be understood that those of ordinary skill in the art can realize this application without using these specific details. In other instances, well-known structures and processes are not elaborated in detail to avoid obscuring the description of this application with unnecessary details. Therefore, this application is not intended to be limited to the embodiments shown, but is to be accorded the widest scope consistent with the principles and features disclosed in this application.

[0066] Please refer to Figures 1 to 4 , the present invention first provides an intelligent gateway configuration method, including the following steps:

[0067] Step S1: Set response variables corresponding to each Domain Name System (DNS) entry, low signal statistics variables and disconnection statistics variables of the client's wireless workstations, and online duration statistics variables of the client in the gateway's configuration data;

[0068] Specifically, as Figure 1 shown, in the intelligent gateway configuration method of the present invention, the client is connected to the Internet through the gateway. The client includes a wired client and a wireless client. The user can enable the active network improvement function of the gateway through a web page. When this function is turned on, the gateway will actively improve the network performance from three aspects: DNS entries, wireless network signal strength, and the online duration of the client, and actively solve the disconnection and latency problems that occur when the user uses the Internet service of the gateway, improving the user's network usage experience. The specific improvement methods will be described in detail later.

[0069] Step S2: Use the response variables of each DNS entry to count the query times of each DNS entry, and increase the TTL value corresponding to the DNS entry when the query times of the DNS entry reach a preset query times threshold.

[0070] Among them, step S2 mainly improves the network performance from the perspective of the query frequency (query times) of DNS entries, and is applicable to both wired clients and wireless clients. Specifically, it is to count the query times of DNS entries and increase the Time To Live (TTL) value of the DNS entry with more query times, so as to achieve the purpose of improving the network performance.

[0071] In detail, step S2 specifically includes:

[0072] When finding a corresponding DNS entry domain name match in the DNS cache structure, increment by 1 the corresponding response variable of the DNS entry, where the value of the corresponding response variable of the DNS entry is equal to the query count of the DNS entry;

[0073] When the response variable of a DNS entry reaches a preset query count threshold, write the DNS entry into a preset high query frequency file, and at the same time increase the TTL value in the response packet of the DNS entry.

[0074] Furthermore, as Figure 2 shown, in some embodiments of the present invention, methods for improving network performance from the perspective of the query frequency (query count) of DNS entries include:

[0075] Enable the DNSmasq tool and add the response variable answer_cnt of each DNS entry to the DNS cache structure;

[0076] When finding a domain name match in the DNS cache, increment by 1 the response variable answer_cnt of the corresponding DNS entry;

[0077] Determine whether the response variable answer_cnt of each DNS entry reaches the query count threshold;

[0078] If the query count threshold is reached, write the information of the DNS entry into the high query frequency file, i.e., the / var / DNS_high file, and display the information of the DNS entry on the gateway page. At the same time, increase the TTL value in the response packet of the DNS entry to 60 minutes.

[0079] Step S3: Use the wireless workstation low signal statistical variable and disconnection statistical variable of the client to count the number of times the wireless signal strength of each client is lower than a preset wireless signal strength threshold and the number of times each client disconnects. When the number of times the wireless signal strength of the client is lower than the preset wireless signal strength threshold reaches and the number of times the client disconnects meets a preset wireless signal adjustment condition, adjust the wireless channel and transmission rate of the client.

[0080] Among them, step S3 mainly improves network performance from the perspective of wireless network signal strength, only for wireless clients connected to the gateway through the wireless network, not for wired clients. Specifically, it is to count the number of times the wireless network signal strength is too low or the number of disconnections, and when the number reaches the limit, control the gateway to adjust the wireless channel and transmission rate of the client to enhance the wireless network for the client.

[0081] Specifically, step S3 specifically includes:

[0082] When the wireless workstation of the client sends a disassociation request, the disconnection statistical variable is incremented by 1.

[0083] When the wireless received signal strength of the wireless workstation of the client is lower than the set threshold, the low signal statistical variable is incremented by 1.

[0084] When the disconnection statistical variable of the wireless workstation of the client reaches the preset disconnection threshold and the low signal statistical variable reaches the preset low signal threshold, the wireless workstation is written into the file with poor wireless signal quality, and at the same time, the wireless channel and transmission rate of the wireless workstation are adjusted.

[0085] Furthermore, as Figure 3 shown, in some embodiments of the present invention, the method for improving network performance from the perspective of wireless network signal strength specifically includes:

[0086] Enable the Wireless Local Area Network (WLAN) driver.

[0087] Add the low signal statistical variable rssi_disconnect_cnt and the disconnection statistical variable cancel_disconnect_cnt to the wireless workstation structure.

[0088] When the wireless workstation of the client sends a disassociation request, cancel_disconnect_cnt is incremented by 1.

[0089] When the wireless received signal strength (RSSI) of the wireless workstation of the client is lower than the set threshold, rssi_disconnect_cnt is incremented by 1.

[0090] When the cancel_disconnect_cnt of the wireless workstation of the client reaches the disconnection threshold and rssi_disconnect_cnt reaches the low signal threshold;

[0091] The wireless workstation of the client is written into the file with poor wireless signal quality, that is, the / var / RSSI_low file, and at the same time, the wireless workstation of the client is displayed on the gateway page, and at the same time, the wireless channel and transmission rate of the wireless workstation are adjusted.

[0092] Specifically, the adjustment of the wireless channel and transmission rate of the wireless workstation specifically includes:

[0093] The wireless driver enables automatic channel scanning and reselects the channel.

[0094] The wireless driver increases the radio frequency transmission power.

[0095] Wireless driver switches working modes, from 802.11ac to 802.11n, and from 802.11n to 802.11g.

[0096] Step S4: Use the online duration statistical variable of the client to count the online duration of the client, read the CPU usage rate, memory usage rate, and network connection number of the gateway. When the CPU usage rate, memory usage rate, and network connection number of the gateway meet the preset priority conditions, control the gateway to preferentially connect to the client with a longer online duration.

[0097] Among them, step S4 mainly improves network performance from the perspective of the online duration of the client. For both wired and wireless clients, specifically, it counts the online duration of the client, and when the CPU usage rate, memory usage rate, and network connection number of the gateway reach the limit values, it controls the gateway to preferentially connect to the client with a longer online duration to ensure the network usage experience of the client with a longer online duration.

[0098] Specifically, as Figure 4 described, in some embodiments of the present invention, step S4 specifically includes:

[0099] Create a Dynamic Host Configuration Protocol (DHCP) lease reading polling thread

[0100] Read the DHCP service lease file according to a preset reading period

[0101] Extract the Media Access Control (Mac) address and Internet Protocol (IP) address from the lease file and write them into the Mac_list linked list

[0102] When the Mac address exists in the Mac_list linked list, the online duration statistical variable online_cnt of the client corresponding to the Mac address is incremented by 1

[0103] Read the Central Processing Unit (CPU) usage rate, memory usage rate, and network connection number of the gateway. When the CPU usage rate, memory usage rate, and network connection number of the gateway reach the preset gateway CPU usage rate threshold, memory usage rate threshold, and network connection number threshold respectively;

[0104] Read the Mac_list linked list and select the Mac address corresponding to the client with the largest online duration statistical variable;

[0105] Use the Quality of Service (QOS) service to control the gateway to preferentially connect to this Mac address.

[0106] Further, step S4 further includes, while using the Quality of Service (QOS) service to control the gateway to preferentially connect to this Mac address, writing this Mac address into the online duration statistics file, that is, the / var / online_high file, and displaying this Mac address on the gateway page.

[0107] In some embodiments of the present invention, for the QOS priority queue: in the priority queue PQ, there are four priority queues: high, medium, normal, and low. The data packets of the client are placed in different queues according to the implementation definition, and the router serves in the order of high, medium, normal, and low. Only when the high-priority queue is empty, will it serve other priority queues, and so on. In this way, it can ensure that high-priority clients are definitely served first.

[0108] Please refer to Figure 5 , the present invention also provides an intelligent gateway device, including:

[0109] A setting unit 100, configured to set response variables corresponding to each DNS entry, a low-signal statistics variable and a disconnection statistics variable of the client's wireless workstation, and an online duration statistics variable of the client in the configuration data of the gateway;

[0110] A DNS awareness and improvement module 200, configured to use the response variables of each DNS entry to count the query times of each DNS entry, and when the query times of the DNS entry reach a preset query times threshold, increase the TTL value corresponding to this DNS entry;

[0111] A wireless awareness and improvement module 300, configured to use the low-signal statistics variable and the disconnection statistics variable of the client's wireless workstation to count the number of times the wireless signal strength of each client is lower than a preset wireless signal strength threshold and the number of times each client disconnects, and when the number of times the wireless signal strength of the client is lower than the preset wireless signal strength threshold and the number of times the client disconnects meet a preset wireless signal adjustment condition, adjust the wireless channel and transmission rate of this client;

[0112] An online awareness and improvement module 400, configured to use the online duration statistics variable of the client to count the online duration of the client, read the CPU usage rate, memory usage rate, and network connection number of the gateway, and when the CPU usage rate, memory usage rate, and network connection number of the gateway meet a preset priority condition, control the gateway to preferentially connect to the client with a longer online duration.

[0113] Specifically, as Figure 1 shown, in the intelligent gateway configuration device of the present invention, the client is connected to the Internet through the gateway. The client includes a wired client and a wireless client. The user can enable the active Internet improvement function of the gateway through a web page. When this function is turned on, the gateway will actively improve the network performance from three aspects: DNS entries, wireless network signal strength, and the online duration of the client, and actively solve the problems of disconnection and delay that occur when the user uses the Internet service of the gateway, improving the user's network usage experience. The specific improvement method will be described in detail later.

[0114] Among them, the DNS perception and improvement module 200 mainly improves the network performance from the perspective of the query frequency (number of queries) of DNS entries. At the same time, for wired clients and wireless clients, specifically, it counts the number of queries of DNS entries and increases the Time To Live (TTL) value of the DNS entries with more queries, thereby achieving the purpose of improving network performance.

[0115] In detail, the specific working process of the DNS perception and improvement module 200 includes:

[0116] When finding a match for the domain name of the corresponding DNS entry in the DNS cache structure, increment the corresponding response variable of the DNS entry by 1. The value of the corresponding response variable of the DNS entry is equal to the number of queries of the DNS entry;

[0117] When the response variable of the DNS entry reaches the preset query count threshold, write the DNS entry into the preset high query frequency file, and at the same time increase the TTL value in the response packet of the DNS entry.

[0118] Further, as Figure 2 shown, in some embodiments of the present invention, the process of improving network performance from the perspective of the query frequency (number of queries) of DNS entries includes:

[0119] Start the DNSmasq tool and add the response variable answer_cnt of each DNS entry to the DNS cache structure;

[0120] When finding a match for the domain name in the DNS cache, increment the response variable answer_cnt of the corresponding DNS entry by 1;

[0121] Judge whether the response variable answer_cnt of each DNS entry reaches the query count threshold;

[0122] If the query count threshold is reached, the information of the DNS entry is written to the high query frequency file, i.e., the / var / DNS_high file, and the information of the DNS entry is displayed on the gateway page. At the same time, the TTL value in the response packet of the DNS entry is increased to 60 minutes.

[0123] Among them, the wireless sensing and improvement module 300 mainly improves the network performance from the perspective of the wireless network signal strength, only for wireless clients connected to the gateway through the wireless network, not for wired clients. Specifically, it counts the number of times when the wireless network signal strength is too low or the connection is dropped, and when the number reaches the limit, it controls the gateway to adjust the wireless channel and transmission rate of the client to enhance the wireless network for the client.

[0124] Specifically, the working process of the wireless sensing and improvement module 300 specifically includes:

[0125] When the wireless workstation of the client sends a disassociation request, the disconnection statistics variable is incremented by 1;

[0126] When the wireless received signal strength of the wireless workstation of the client is lower than the set threshold, the low signal statistics variable is incremented by 1;

[0127] When the disconnection statistics variable of the wireless workstation of the client reaches the preset disconnection threshold and the low signal statistics variable reaches the preset low signal threshold, the wireless workstation is written into the file with poor wireless signal quality, and at the same time, the wireless channel and transmission rate of the wireless workstation are adjusted.

[0128] Further, as Figure 3 shown, in some embodiments of the present invention, the method for improving the network performance from the perspective of the wireless network signal strength specifically includes:

[0129] Enable the Wireless Local Area Network (WLAN) driver;

[0130] Add the low signal statistics variable rssi_disconnect_cnt and the disconnection statistics variable cancel_disconnect_cnt to the wireless workstation structure;

[0131] When the wireless workstation of the client sends a disassociation request, cancel_disconnect_cnt is incremented by 1;

[0132] When the wireless received signal strength (RSSI) of the wireless workstation of the client is lower than the set threshold, rssi_disconnect_cnt is incremented by 1;

[0133] When the cancel_disconnect_cnt of the wireless workstation of the client reaches the disconnection threshold and the rssi_disconnect_cnt reaches the low signal threshold;

[0134] Write the wireless workstation of the client into the file with poor wireless signal quality, that is, the / var / RSSI_low file. At the same time, the wireless workstation of the client is displayed on the gateway page, and the wireless channel and transmission rate of the wireless workstation are adjusted.

[0135] Specifically, the adjustment of the wireless channel and transmission rate of the wireless workstation specifically includes:

[0136] The wireless driver enables automatic channel scanning and reselects the channel;

[0137] The wireless driver increases the radio frequency transmission power;

[0138] The wireless driver switches the working mode from 802.11ac to 802.11n, and from 802.11n to 802.11g.

[0139] Among them, the online perception and improvement module 400 mainly improves the network performance from the perspective of the online duration of the client. At the same time, for wired clients and wireless clients, specifically, it is to count the online duration of the client, and when the CPU usage rate, memory usage rate and network connection number of the gateway reach the limit values, control the gateway to give priority to connecting the client with a longer online duration to ensure the network usage experience of the client with a longer online duration.

[0140] Specifically, as Figure 4 described, in some embodiments of the present invention, the method for improving the network performance from the perspective of the online duration of the client specifically includes:

[0141] Create a Dynamic Host Configuration Protocol (DHCP) lease reading polling thread

[0142] Read the DHCP service lease file according to a preset reading period

[0143] Extract the Media Access Control (Mac) address and Internet Protocol (IP) address from the lease file and write them into the Mac_list linked list

[0144] When the Mac address exists in the Mac_list linked list, the online duration statistical variable online_cnt of the client corresponding to the Mac address is incremented by 1

[0145] Read the usage rate of the Central Processing Unit (CPU), memory usage rate, and the number of network connections of the read gateway. When the CPU usage rate, memory usage rate, and the number of network connections of the gateway reach the preset gateway CPU usage rate threshold, memory usage rate threshold, and the number of network connections threshold respectively;

[0146] Read the Mac_list linked list and select the Mac address corresponding to the client with the largest online duration statistical variable;

[0147] Use the Quality of Service (QOS) service to control the gateway to preferentially connect to this Mac address.

[0148] Further, the step S4 further includes, while using the Quality of Service (QOS) service to control the gateway to preferentially connect to this Mac address, writing this Mac address into the online duration statistical file, that is, the / var / online_high file, and displaying this Mac address on the gateway page.

[0149] In some embodiments of the present invention, for the QOS priority queue: in the priority queue PQ, there are four priority queues: high, medium, normal, and low. The data packets of the client are placed in different queues according to the implementation definition, and the router serves in the order of high, medium, normal, and low. Only when the high-priority queue is empty, will it serve other priority queues, and so on. In this way, it can ensure that high-priority clients are definitely served first.

[0150] As described above, for those of ordinary skill in the art, various corresponding changes and deformations can be made according to the technical solutions and technical concepts of the present invention, and all these changes and deformations should fall within the protection scope of the claims of the present invention.

Claims

1. A method for configuring an intelligent gateway, characterized in that, It includes the following steps: Step S1: Set response variables corresponding to each DNS entry, low signal statistics variables and disconnection statistics variables of the client's wireless workstation, and online duration statistics variables of the client in the configuration data of the gateway; Step S2: Use the response variables of each DNS entry to count the query times of each DNS entry, and when the query times of the DNS entry reach the preset query times threshold, increase the TTL value corresponding to the DNS entry; Step S3: Use the low signal statistics variables and disconnection statistics variables of the client's wireless workstation to count the number of times the wireless signal strength of each client is lower than the preset wireless signal strength threshold and the number of times each client is disconnected, and when the number of times the wireless signal strength of the client is lower than the preset wireless signal strength threshold and the number of times the client is disconnected meet the preset wireless signal adjustment conditions, adjust the wireless channel and transmission rate of the client; Step S4: Use the online duration statistics variable of the client to count the online duration of the client, read the CPU usage rate, memory usage rate and network connection number of the gateway, and when the CPU usage rate, memory usage rate and network connection number of the gateway meet the preset priority conditions, control the gateway to preferentially connect to the client with a longer online duration; The specific steps of step S4 include: Create a DHCP lease reading polling thread; Read the DHCP service lease file according to the preset reading period; Extract the Mac address and IP address in the lease file and write them into the Mac_list linked list; When the Mac address exists in the Mac_list linked list, add 1 to the online duration statistics variable of the client corresponding to the Mac address; Read the CPU usage rate, memory usage rate and network connection number of the gateway. When the CPU usage rate, memory usage rate and network connection number of the gateway reach the preset gateway CPU usage rate threshold, memory usage rate threshold and network connection number threshold respectively, Read the Mac_list linked list and select the Mac address corresponding to the client with the largest online duration statistics variable; Use the QOS service to control the gateway to preferentially connect to the Mac address.

2. The intelligent gateway configuration method according to claim 1, characterized in that, The specific steps of step S2 include: When finding a match for the corresponding DNS entry domain name in the DNS cache structure, add 1 to the response variable corresponding to the DNS entry, and the value of the response variable corresponding to the DNS entry is equal to the query times of the DNS entry; When the response variable of the DNS entry reaches the preset query times threshold, write the DNS entry into the preset high query frequency file, and at the same time increase the TTL value in the response message of the DNS entry.

3. The intelligent gateway configuration method according to claim 1, wherein The specific steps of step S3 include: Add 1 to the disconnection statistics variable when the wireless workstation of the client sends a disassociation request; Add 1 to the low signal statistics variable when the wireless received signal strength of the wireless workstation of the client is lower than the set threshold; When the disconnection statistics variable of the wireless workstation of the client reaches the preset disconnection threshold and the low signal statistics variable reaches the preset low signal threshold, write the wireless workstation into the file with poor wireless signal quality, and at the same time adjust the wireless channel and transmission rate of the wireless workstation.

4. The intelligent gateway configuration method according to claim 3, wherein The simultaneous adjustment of the wireless channel and transmission rate of the wireless workstation specifically includes: The wireless driver enables automatic channel scanning and reselects the channel; The wireless driver increases the RF transmission power; The wireless driver switches the working mode from 802.11ac to 802.11n, or from 802.11n to 802.11g.

5. An intelligent gateway device, characterized in that, It includes: A setting unit for setting response variables corresponding to each DNS entry, low-signal statistics variables and disconnection statistics variables of the wireless workstation of the client, and online duration statistics variables of the client in the configuration data of the gateway; A DNS perception and improvement module for counting the query times of each DNS entry by using the response variables of each DNS entry, and increasing the TTL value corresponding to the DNS entry when the query times of the DNS entry reach a preset query times threshold; A wireless perception and improvement module for counting the number of times the wireless signal strength of each client is lower than a preset wireless signal strength threshold and the number of times each client disconnects by using the low-signal statistics variables and disconnection statistics variables of the wireless workstation of the client, and adjusting the wireless channel and transmission rate of the client when the number of times the wireless signal strength of the client is lower than the preset wireless signal strength threshold and the number of times the client disconnects meet a preset wireless signal adjustment condition; An online perception and improvement module for counting the online duration of the client by using the online duration statistics variable of the client, reading the CPU usage rate, memory usage rate and network connection number of the gateway, and controlling the gateway to preferentially connect to the client with a larger online duration when the CPU usage rate, memory usage rate and network connection number of the gateway meet a preset priority condition; The online perception and improvement module specifically is used for: Creating a DHCP lease reading polling thread; Reading the DHCP service lease file according to a preset reading period; Extracting the Mac address and IP address in the lease file and writing them into the Mac_list linked list; When the Mac address exists in the Mac_list linked list, the online duration statistics variable of the client corresponding to the Mac address is incremented by 1; Reading the CPU usage rate, memory usage rate and network connection number of the gateway, when the CPU usage rate, memory usage rate and network connection number of the gateway reach a preset gateway CPU usage rate threshold, memory usage rate threshold and network connection number threshold respectively, Reading the Mac_list linked list and selecting the Mac address corresponding to the client with the largest online duration statistics variable; Using the QOS service to control the gateway to preferentially connect to the Mac address.

6. The intelligent gateway device according to claim 5, wherein The DNS perception and improvement module specifically is used for: When finding a matching DNS entry domain name in the DNS cache structure, incrementing the response variable corresponding to the DNS entry by 1, and the value of the response variable corresponding to the DNS entry is equal to the query times of the DNS entry; When the response variable of the DNS entry reaches a preset query times threshold, writing the DNS entry into a preset high-query-frequency file, and at the same time increasing the TTL value in the response packet of the DNS entry.

7. The intelligent gateway device according to claim 5, characterized in that, The wireless sensing and improvement module is specifically used for: when the wireless workstation of the client sends a disassociation request, incrementing the disconnection statistics variable by 1; when the wireless received signal strength of the wireless workstation of the client is lower than the set threshold, incrementing the low signal statistics variable by 1; when the disconnection statistics variable of the wireless workstation of the client reaches the preset disconnection threshold and the low signal statistics variable reaches the preset low signal threshold, writing the wireless workstation into the file with poor wireless signal quality, and at the same time adjusting the wireless channel and transmission rate of the wireless workstation.

8. The intelligent gateway device according to claim 7, wherein, The simultaneous adjustment of the wireless channel and transmission rate of the wireless workstation specifically includes: the wireless driver enables automatic channel scanning and reselects the channel; the wireless driver increases the RF transmit power; the wireless driver switches the working mode from 802.11ac to 802.11n, and from 802.11n to 802.11g.

Citation Information

Patent Citations

  • Method of switching mobile communication channels, mobile communication system and mobile terminal

    CN105704773A

  • 5G terminal cloud management and control method with Wi-Fi function

    CN112260984A

  • Load balancing traffic via dynamic DNS record TTLs

    US10778757B1