Intelligent router and memory detection prompting method
By detecting memory status and displaying a prompt page in the smart router, users can control memory cleanup, which solves the stability and performance issues caused by memory cleanup and improves the user experience.
Patent Information
- Application Number
- CN202410713639.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-04
- Publication Date
- 2025-12-05
AI Technical Summary
The memory cleanup process of smart routers may result in performance loss and stability risks, leading to network latency or connection failures and affecting user experience.
By detecting memory status and sending network packets to the terminal device when overloaded, a target prompt page is displayed, allowing users to control the memory cleanup process and avoiding the stability reduction caused by direct cleanup.
It improves the stability and user experience of smart routers, and reduces network latency and connection failures through user-controlled memory cleanup.
Smart Images

Figure CN121077939A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of intelligent routers, and in particular to an intelligent router and a memory detection prompting method. BACKGROUND
[0002] A router is a key node in network communication, used to forward data packets between a local area network (LAN) and a wide area network (WAN), and to realize communication between different networks. The router can read the header information of the data packet, determine the best transmission path according to the routing table, and forward the data packet from the source address to the target address. Taking an intelligent router as an example, the intelligent router not only has network access and forwarding functions, but also is configured with powerful data processing capabilities and intelligent control functions, such as Wi-Fi access, DHCP service, NAT address conversion, remote management, and smart home control, to meet the individual needs of users.
[0003] During the running process of the intelligent router, a certain number of data packets need to be cached for quick response, that is, the memory of the intelligent router can be used to store runtime data, code, and intermediate results, such as routing tables, ARP (Address Resolution Protocol) caches, NAT (Network Address Translation) tables, session tables, and system processes and services, to support the running of the intelligent router. Therefore, in order to enable the intelligent router to run stably, the intelligent router needs to perform memory detection regularly, and automatically perform memory cleaning, such as restarting processes or restarting the system, when the memory is overloaded.
[0004] However, the process of memory cleaning of the intelligent router has certain performance loss and stability risk, such as memory cleaning preemption of system resources, data movement causing access delay, and the like. In this way, when the user uses the network provided by the router, there may be intermittent network delay or network connection failure, resulting in reduced stability of the intelligent router, thereby affecting the user's online experience. SUMMARY
[0005] The present application provides an intelligent router and a memory detection prompting method to solve the problem of reduced stability of the intelligent router caused by memory cleaning.
[0006] In a first aspect, some embodiments of the present application provide an intelligent router, comprising a network interface, a memory, and a controller. The network interface is configured to establish a communication connection with a terminal device. The memory is configured to store running information data. The controller is configured to perform the following program steps: In response to an access event of the terminal device, detecting a memory state, the memory state being set based on the running information data. if the memory state is a target state, sending a network data packet to the terminal device, so that the terminal device displays a target prompt page in response to the network data packet; the target state is used to represent that the running information data is overloaded, and the network data packet is used to instruct the terminal device to access the target prompt page, and the target prompt page is used to prompt to clear the running information data; receiving a request data packet sent by the terminal device based on the target prompt page; performing a corresponding response program according to the request data packet, and the response program is used to clear the running information data and / or modify the memory state to a non-target state.
[0007] In a second aspect, some embodiments of the present application further provide a memory detection prompting method, which can be applied to the intelligent router provided in the first aspect, and the method comprises the following steps: detecting a memory state in response to an access event of a terminal device, and the memory state is set based on running information data; if the memory state is a target state, sending a network data packet to the terminal device, so that the terminal device displays a target prompt page in response to the network data packet; the target state is used to represent that the running information data is overloaded, and the network data packet is used to instruct the terminal device to access the target prompt page, and the target prompt page is used to prompt to clear the running information data; receiving a request data packet sent by the terminal device based on the target prompt page; performing a corresponding response program according to the request data packet, and the response program is used to clear the running information data and / or modify the memory state to a non-target state.
[0008] According to the above technical solutions, the intelligent router and the memory detection prompting method provided by some embodiments of the present application can detect a memory state set based on running information data in response to an access event of a terminal device. If the memory state is a target state, a network data packet is sent to the terminal device, so that the terminal device displays a target prompt page in response to the network data packet. The target state is used to represent that the running information data is overloaded, the network data packet is used to instruct the terminal device to access the target prompt page, and the target prompt page is used to prompt to clear the running information data. Then, a request data packet sent by the terminal device based on the target prompt page is received, and a corresponding response program is performed according to the request data packet. The response program is used to clear the running information data and / or modify the memory state to a non-target state. The method can inform a user of an overload condition of the running information data in the memory through the target prompt page, so that the user can control the memory cleaning of the intelligent router, thereby improving the stability of the intelligent router and enhancing the user experience. Attached Figure Description
[0009] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0010] Figure 1 This application provides schematic diagrams illustrating the use scenarios of smart routers according to some embodiments. Figure 2 A schematic diagram of the hardware configuration of a smart router provided in some embodiments of this application; Figure 3 A schematic diagram illustrating the software configuration of a smart router provided in some embodiments of this application; Figure 4 Example flowcharts of memory cleanup provided for some embodiments of this application; Figure 5 A flowchart illustrating a memory detection prompting method provided in some embodiments of this application; Figure 6 A schematic diagram illustrating the memory detection process provided in some embodiments of this application; Figure 7 A flowchart illustrating the redirection probe message provided in some embodiments of this application; Figure 8 A flowchart illustrating the capture of probe messages provided for some embodiments of this application; Figure 9 This application provides a schematic diagram illustrating the effect of a target prompt page in some embodiments. Figure 10 This is a schematic diagram illustrating the effect of another target prompt page provided in some embodiments of this application; Figure 11 This is a flowchart illustrating the execution response procedure provided in some embodiments of this application. Detailed Implementation
[0011] The embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described below do not represent all embodiments consistent with this application. They are merely examples of systems and methods consistent with some aspects of this application as detailed in the claims.
[0012] It should be noted that the brief description of the terms in this application is only for the convenience of understanding the implementation described next, and is not intended to limit the implementation of the application. Unless otherwise specified, these terms should be understood according to their ordinary and general meanings.
[0013] The terms "first", "second", "third" and the like in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar or similar objects or entities, and do not necessarily mean to limit the specific order or sequence, unless otherwise noted. It should be understood that the terms used in this way can be interchanged under appropriate circumstances.
[0014] The terms "include" and "have" and any variations thereof are intended to cover but not exclusive inclusion, for example, a product or device containing a series of components is not necessarily limited to all components clearly listed, but can include other components not clearly listed or inherent to these products or devices.
[0015] The term "module" refers to any known or later developed hardware, software, firmware, artificial intelligence, fuzzy logic or combination of hardware or / and software code capable of performing functions related to the element.
[0016] In the embodiments of the present application, the intelligent router 200 generally refers to a device with network communication and data transmission functions. For example, the intelligent router 200 can be a core router, a convergence router or an access router, etc.
[0017] Among them, the core router is located in the core layer of the network, which can provide high-speed data forwarding and routing functions, and is suitable for large enterprises or data centers and other scenarios; the convergence router is located in the convergence layer of the network, which can be used for data exchange and routing between different networks, and at the same time provide control and management of network traffic, suitable for small and medium-sized enterprises or campus networks and other scenarios; the access router is located in the access layer of the network, which is used to provide access function of terminal user, suitable for home or small office and other scenarios.
[0018] Figure 1 The use scenario diagram of the intelligent router 200 provided by some embodiments of the present application is shown in the figure. Figure 1As shown in the figure, the smart router 200 can be connected to the upper device 100 and the lower device 300 to establish a communication connection, and form a network group. The smart router 200 as the center node of the network group can realize routing and forwarding, network isolation, NAT (Network Address Translation), packet filtering and firewall, DHCP (Dynamic Host Configuration Protocol) service, AP (Access Point), load balancing, VPN support, remote management and configuration, and other functions, thereby ensuring the stability, security, flexibility and scalability of the network.
[0019] The upper device 100 can also be referred to as an upstream device. The upper device 100 can be a gateway, an upper router, or the like, and is used to access the Internet. The gateway can be a broadband optical modem, a DSL modem, an optical network terminal (ONT / ONU), or the like. The upper device 100 can be used to provide broadband access services such as DSL (Digital Subscriber Line), optical fiber, or other high-speed Internet access services, so that users can access the Internet and enjoy online services such as web browsing, video streaming, online gaming, and the like.
[0020] The lower device 300 can also be referred to as a downstream device. The lower device 300 can be a network device, a computer, a mobile phone, a tablet, a printer, a smart television, or the like, and is used to access the Internet provided by the smart router 200 based on the upper device 100 and use various services provided by the smart router 200. That is, after the lower device 300 establishes a communication connection with the smart router 200, the lower device 300 can access the network services provided by the smart router 200, such as DHCP service, DNS service, NAT, and the like. These services can enable the lower device 300 to access the Internet and access the Internet resources provided by the smart router 200 based on the upper device 100.
[0021] Figure 2 For some embodiments of the present application Figure 1 A hardware configuration block diagram of the smart router 200.
[0022] In some embodiments, the smart router 200 can include at least one of a first interface 210, a second interface 220, a wireless chip 230, a filter, a diplexer, a flash memory, a memory 240, a controller 250, a mainboard 260, and a power manager.
[0023] In some embodiments, the first interface 210 is a WAN port (Wide Area Network port) for accessing the Internet. For example, the first interface 210 can be an RJ-45 (Ethernet port) or an SFP (fiber port), etc. The first interface 210 can be connected to a broadband optical modem or other broadband access equipment. That is, the smart router 200 can establish a communication connection with the upper device 100 through the first interface 210. The first interface 210 can support multiple Internet protocols, such as DHCP, point-to-point protocol, static IP address configuration, IPv4, IPv6, etc., so as to communicate and configure the network between the smart router 200 and the ISP (Internet Service Provider) or other wide area network devices through the above protocols.
[0024] In some embodiments, the second interface 220 is a LAN port (Local Area Network port) for establishing a wired communication connection with internal network devices, so that the internal network devices can communicate with each other and access the Internet. For example, the second interface 210 can be an RJ-45 (Ethernet port), and the second interface 220 can be connected to terminal devices such as computers, printers, and mobile phones through Ethernet cables. That is, the smart router 200 can establish a wired communication connection with the lower device 300 through the second interface 220, so that the lower device 300 can communicate with each other and access the Internet in network networking.
[0025] In some embodiments, the second interface 220 can be an AP (Access Point) for establishing a wireless communication connection with internal network devices, so that the internal network devices can communicate with each other and access the Internet. For example, the AP can provide an access point for a wireless network through the access LAN port. That is, the smart router 200 can also establish a wireless communication connection with the lower device 300 through the second interface 220, so that the lower device 300 can communicate with each other and access the Internet in network networking.
[0026] In some embodiments, the wireless chip (RF) 230 is a chip based on wireless local area network technology, which has functions of signal transmission, data processing, radio frequency transmission and reception, etc. The wireless chip 230 supports multiple wireless network protocols, such as 802.11a / b / g / n / ac, etc., so that users can select different wireless networks for connection.
[0027] In some embodiments, the filter is used to filter out noise in the wireless signal to improve signal quality. The filter can be a passive filter composed of passive elements such as resistors, inductors, and capacitors, or an active filter composed of passive elements and active devices such as integrated operational amplifiers, etc.
[0028] In some embodiments, a diplexer is used to separate the transmitted and received wireless signals, and the working mode of the diplexer can be half-duplex or full-duplex.
[0029] In some embodiments, a flash memory is used to store the operating system, configuration file and other key data of the smart router 200, such as NAND flash or NOR flash chips; the memory 240 is used to provide data storage and exchange space for the smart router 200 during operation, to ensure efficient operation of the smart router 200, such as at least one of DRAM (Dynamic Random-Access Memory) and SRAM (Static Random-Access Memory).
[0030] In some embodiments, the controller 250 at least includes a CPU (Central Processing Unit) and an interface for input / output. The controller 250 controls the operation of the smart router 200 through various software control programs stored in the flash memory and the memory 240, that is, the controller 250 can control the overall operation of the smart router 200.
[0031] In some embodiments, the controller 250 can also include at least one of a FEM (Front-End Module), a PHY chip (Physical Layer Chip) and a switch chip. Among them, the FEM can cooperate with the wireless chip 230 to perform amplification, filtering and other processing of wireless signals; the PHY chip is used for physical layer processing of data packets, such as modulation and demodulation, encoding and decoding, etc.; the switch chip is used for forwarding and routing selection of data packets.
[0032] In some embodiments, the power manager is used to manage the power supply of the smart router 200.
[0033] In some embodiments, the smart router 200 can run the operating system stored in the flash memory through the controller 250. The operating system is a program used to manage and control hardware resources and software resources in the smart router 200, and can control and manage various functions and behaviors of the smart router 200.
[0034] It should be noted that the operating system can be a native operating system based on a specific operating platform, a third-party operating system deeply customized based on a specific operating platform, or an independent operating system specially developed for the smart router 200.
[0035] An operating system can be divided into different modules or levels based on the functions it implements, for example... Figure 3 As shown, in some embodiments, the operating system of the smart router 200 is divided into four layers, from top to bottom: User Interface Layer, Network Services Layer, System Services Layer, and Kernel and Driver Layer.
[0036] In some embodiments, the user interface layer is the part of the intelligent router 200 operating system that directly interacts with the user. It provides various interfaces for users to configure, manage, and monitor the router, such as a command-line interface (CLI), a graphical user interface (GUI), or a web management interface. Through the user interface layer, users can perform various tasks, such as configuring routing protocols, setting access control lists, and viewing routing tables.
[0037] In some embodiments, the network service layer is the core of the intelligent router 200's operating system, used to implement various network services. The network service layer contains various network protocol stacks required by the intelligent router 200, such as TCP / IP, BGP, OSPF, etc., and corresponding processing logic. The network service layer can also provide network functions such as routing decisions, packet forwarding, NAT, and firewalls. Through the network service layer, the intelligent router 200 can process data packets from different networks, enabling interconnection and communication between networks.
[0038] In some embodiments, the system service layer provides necessary underlying system services to the network service layer. The system service layer can handle tasks such as memory management, process scheduling, and file system access, ensuring the stable and efficient operation of the intelligent router 200. The system service layer can also provide interfaces for interaction with other system components, such as hardware drivers, enabling the network service layer to fully utilize hardware resources.
[0039] In some embodiments, the kernel and driver layer is the lowest level of the operating system of the smart router 200, used to directly manage hardware resources. The kernel and driver layer can handle tasks such as interrupt handling, memory management, and process scheduling, and provide an interface for interaction with the hardware. The kernel and driver layer can contain various hardware drivers, such as network interface card drivers and flash memory drivers, enabling the smart router 200 to directly control and manage hardware resources. Through the kernel and driver layer, the smart router 200 can efficiently process network packets and communicate with other network devices.
[0040] It should be noted that the above examples are only a simple division of the operating system functions, and do not constitute a limitation on the specific operating system form of the intelligent router 200 in the embodiments of the present application. According to the function of the intelligent router 200, the type of the operating system, and other factors, the number and specific type of levels contained in the operating system can be in other forms.
[0041] Based on the above intelligent router 200, in some embodiments, the intelligent router 200 needs to allocate appropriate memory resources to each during operation, and frequent allocation and release of memory resources will cause the intelligent router 200 to generate memory fragmentation, resulting in a decrease in the utilization rate of the memory 240. In addition, the operation of the intelligent router 200 also needs to cache a certain amount of data packets through the memory 240, so that the intelligent router 200 can respond quickly. Among them, the data packets cached by the intelligent router 200 can include but are not limited to runtime data, code and intermediate results, such as routing tables, ARP (Address Resolution Protocol, Address Resolution Protocol) cache, NAT (Network Address Translation, Network Address Translation) table, session table, and system processes and services, etc.
[0042] For ease of description, the memory fragmentation and the data packets cached by the intelligent router 200 are collectively represented as running information data in the embodiments of the present application. The running information data will occupy the storage space of the memory 240 in the intelligent router 200. When the remaining storage space of the memory 240 is too small, that is, the running information data stored by the intelligent router 200 is overloaded, the performance of the intelligent router 200 will be affected, such as performance degradation, unstable network equipment, excessive heat caused by high load operation, and security risks of data leakage, etc.
[0043] Therefore, as shown in Figure 4 In some embodiments, the intelligent router 200 can detect the data volume of the running information data to determine whether the intelligent router 200 is overloaded. For example, the intelligent router 200 can determine whether the intelligent router 200 is overloaded through memory information reading, memory threshold setting, and memory leakage judgment, etc. When it is determined that the intelligent router 200 is overloaded due to running information data, the running information data is automatically cleaned up to ensure efficient operation of the intelligent router 200.
[0044] In some embodiments, the memory information reading is that the smart router 200 reads the memory usage in real time through a memory statistics interface provided by an operating system, such as / proc / meminfo and the like, including total memory, used memory, remaining memory and the like running information data. The threshold setting is that the smart router 200 presets one or more memory thresholds, such as a memory occupancy alarm overload threshold and a monitoring alarm recovery threshold and the like, according to hardware configuration, business requirements and performance requirements. The memory leakage judgment is that the smart router 200 judges whether there is memory leakage by comparing the real-time read memory information with the preset memory threshold. When the memory occupancy rate exceeds the memory threshold, it is determined that the smart router 200 has memory leakage.
[0045] In some embodiments, after the smart router 200 judges that the running information data is overloaded or has memory leakage, the corresponding operating system interface can be called to clear the running information data, that is, to clean up the memory of the smart router 200. The way to clear the running information data includes at least one of restarting the process, releasing useless memory resources, deleting cached data packets, or restarting the system.
[0046] However, when the smart router 200 clears the running information data, it will cause certain performance loss and stability risk, such as system resource preemption caused by clearing the running information data, access delay caused by moving or clearing the cache data, and the like. In this way, if the user is using the network provided by the smart router 200 through other terminal devices when the smart router 200 clears the running information data, the smart router 200 may have network latency or network connection failure problems, resulting in reduced stability of the smart router 200.
[0047] Therefore, some embodiments of the present application provide a smart router 200, which can notify the user through a target prompt page when the running information data is overloaded, so that the user can control the memory cleaning process of the smart router 200 through the target prompt page, thereby ensuring the stability of the smart router 200. As shown in the figure, the smart router 200 can include a network interface 201, a memory 240 and a controller 250. Figure 5
[0048] The network interface 201 can be a second interface 220, and the network interface 201 is configured to establish a communication connection with the terminal device 301, that is, the terminal device 301 can be a subordinate device 300 in communication connection with the smart router 200 through the second interface 220. For example, the terminal device 301 can establish a wired communication connection with the smart router 200 through a LAN port, or can establish a wireless communication connection with the smart router 200 through an AP.
[0049] It should be noted that the terminal device 301 described in the embodiments of the present application refers to all devices with network access function, which can be a mobile phone, a computer, a tablet computer, a computer, etc., and the present application does not limit this.
[0050] As Figure 5 , the memory 240 is configured to store running information data, such as a routing table, an ARP cache, a NAT table, a session table, system processes and services, and memory fragmentation, etc.; the controller 250 is configured to execute the following program steps: S5001: In response to an access event of a terminal device, detecting a memory state.
[0051] The intelligent router 200 detects the current memory state of the intelligent router 200 after detecting the access event of the terminal device 301. Among them, the memory state can be set based on the running information data, that is, the intelligent router 200 can set the memory state according to the data amount of the running information data, such as using memory information reading, memory threshold setting, and memory leakage judgment to monitor the running information data and set the memory state based on the running information data.
[0052] In order to accurately judge the memory state, in some embodiments, the intelligent router 200 can detect the data amount of the running information data after starting. That is, as Figure 6 shown, the intelligent router 200 can start a memory detection process in response to the start-up instruction of the intelligent router, and detect the data amount of the running information data through the memory detection process. Then read the preset memory threshold, such as the memory threshold can include the memory occupation rate alarm overload threshold and / or the monitoring alarm recovery threshold, etc. If the data amount is greater than or equal to the memory threshold, the memory state is marked as a target state; and if the data amount is less than the memory threshold, the memory state is marked as a non-target state. Among them, the target state is used to represent that the running information data is overloaded, and the non-target state is used to represent that the running information data is not overloaded.
[0053] For example, when the intelligent router 200 is powered on, the operating system or firmware of the intelligent router 200 can trigger the start of a memory detection process, and the memory detection process can be a pre-set program or script. After the memory detection process is started, it will start scanning and analyzing the running information data in the router memory 240, and calculating the memory space occupied by the running information data, that is, the data amount. Then, the memory detection process reads the preset memory threshold, and compares the memory threshold and the data amount. If the data amount is greater than or equal to the memory threshold, the memory state is marked as a target state: otherwise, the memory state is marked as a non-target state. Among them, the target state is used to represent that the running information data of the intelligent router 200 is overloaded, that is, the state of the memory alarm.
[0054] In some embodiments, the smart router 200 is configured with a flag bit for characterizing the memory state. When setting the memory state, the smart router 200 can modify the flag value of the flag bit to mark the memory state as a target state or a non-target state. The flag value can be a combination of one or more of numbers, English characters, or Chinese characters. For example, when the flag value is 0, the memory state is characterized as a non-target state; when the flag value is 1, the memory state is characterized as a target state.
[0055] In some embodiments, the memory threshold of the smart router 200 can include a maximum memory threshold for characterizing the maximum usage of the memory 240. When the data amount of the running information data is greater than or equal to the maximum memory threshold, the smart router 200 is at risk of memory leakage. Therefore, in order to ensure the security of the smart router 200, if the smart router 200 detects that the data amount of the running information data is greater than or equal to the maximum memory threshold, it automatically executes a program to clear the running information data to avoid security problems such as memory leakage of the smart router 200. Then, set the memory state to a non-target state to release the overload state of the running information data.
[0056] In some embodiments, the smart router 200 can also set the network interface 201 to listen to the access event of the subordinate device 300 generated based on the network interface 210. Then, detect the device type of the subordinate device 300. If the device type is the device type of the terminal device 301, execute the steps of S5001; otherwise, do not process, so that the smart router 200 can timely perceive the access of the terminal device 301.
[0057] S5002: If the memory state is a target state, send a network data packet to the terminal device to make the terminal device display a target prompt page in response to the network data packet.
[0058] When the terminal device 301 accesses, the smart router 200 detects the memory state in which the current smart router 200 is located. If the memory state is a target state, a network data packet is sent to the terminal device 301 to make the terminal device 301 display a target prompt page in response to the network data packet.
[0059] The network data packet is used to instruct the terminal device 301 to access the target prompt page, and the target prompt page is used to prompt the user to clear the running information data. For example, the target prompt page can be a Web setting page of the smart router 200, and the user can be prompted through the Web setting page whether to clear the running information data.
[0060] In the embodiments of the present application, the intelligent router 200 can send the network data packet for accessing the target prompt page to the terminal device 301 in different ways, and the network data packet can also be a data packet in different formats.
[0061] That is, in some embodiments, the network data packet can be an HTTP data packet, a custom protocol data packet, a WebSocket data packet, or a data packet of other network protocols such as TCP, UDP, MQTT, etc. The format of the data packet can be determined according to the network protocol used by the terminal device 301 and the intelligent router 200, so as to ensure that the network data packet can be correctly parsed by the terminal device 301.
[0062] In some embodiments, the network data packet sent by the intelligent router 200 can include at least one of the URL (Uniform Resource Locator, Uniform Resource Locator) of the target prompt page, the specific page identifier of the target prompt page, and other forms of guidance information.
[0063] In some embodiments, the network data packet can also include verification information to facilitate the terminal device 301 to verify the integrity of the network data packet after receiving the network data packet. For example, the verification information can be checksum, cyclic redundancy check, etc.
[0064] As shown in Figure 7 In some embodiments, when the intelligent router 200 sends the network data packet to the terminal device 301, it can also listen to the network interface 201 and capture the probe packet sent by the terminal device 301 received by the network interface. The probe packet can be the first packet of the network layer four and above connection between the terminal device 301 and the intelligent router 200, which is used to confirm whether the network node provided by the intelligent router 200 can access the Internet, such as HTTP GET request.
[0065] After capturing the probe packet, the response packet of the probe packet is replaced with a redirection packet. The redirection packet is used to specify the access address of the target prompt page, and the response header of the redirection packet includes the uniform resource locator of the target prompt page. Then, the redirection packet is sent to the terminal device 301 to send the network data packet to the terminal device 301. That is, in the present embodiment, the network data packet at least contains the redirection packet for specifying the access address of the target prompt page.
[0066] That is, when the memory state of the intelligent router 200 is the target state representing the running information data overload, the intelligent router 200 can listen to the network interface 201, capture the probe packet sent by the terminal device 301, and then replace the response packet of the probe packet with the redirection packet. That is, the intelligent router 200 can redirect the captured probe packet to the target prompt page, so that the terminal device 301 displays the target prompt page.
[0067] As shown in Figure 8 In some embodiments, in order to accurately identify the probe packet, the intelligent router 200 can also extract the first physical address of the terminal device 301 when capturing the probe packet sent by the terminal device 301. When listening to the base packet received by the network interface 201, the intelligent router 200 also parses the second physical address of the base packet. If the second physical address is the same as the first physical address, the key field of the base packet is read, and the probe packet is captured according to the key field.
[0068] That is, because there are many types of packets, the packet listened to by the network interface 201 can be a packet sent by other devices, or a packet sent by the terminal device 301 for other functions. Therefore, the intelligent router 200 can identify the packet through the physical address of the terminal device 301 and the key field in the packet, so as to accurately capture the probe packet that can be used to implement the function of displaying the target prompt page.
[0069] In some embodiments, the intelligent router 200 can also be configured with a notification list for storing the physical address of the terminal device 301 as the template address. For example, the notification list of the intelligent router 200 can record the MAC address of the terminal device 301, and the intelligent router 200 can traverse the recorded MAC addresses in the notification list after extracting the MAC of the base packet, to determine whether the current packet is a packet sent by the terminal device 301.
[0070] As shown in Figure 8 In some embodiments, for the process of capturing the probe packet by the intelligent router 200 according to the key field, the intelligent router 200 can compare the key field with the preset template field. If the key field is not the same as the template field, the base packet is released to continue the original path transmission; otherwise, if the key field is the same as the template field, the base packet is recorded to the buffer area of the memory 240 to capture the probe packet sent by the terminal device 301.
[0071] For example, when the terminal device 301 is a mobile phone configured with an Android system or an iOS system, the template fields stored in the smart router 200 can be hotspot-detect and generate_204, etc. When the smart router 200 parses the basic packet and finds that the basic packet includes the fields hotspot-detect or generate_204, it records the basic packet into the buffer of memory 240, thereby capturing the probe packet.
[0072] It should be noted that the key fields of the probe messages described above are merely illustrative examples and are not intended to limit the scope of the application. This application can also capture messages with other key fields and perform subsequent redirection processing on them. This application does not impose any limitations on this.
[0073] Clearly, after the intelligent router 200 replaces the response message of the probe message with a redirect message, it will send the redirect message to the terminal device 301. That is, the intelligent router 200 will send the network data packet used to access the target prompt page to the terminal device 301. Correspondingly, in some embodiments, after receiving the redirect message, the terminal device 301 will parse the Uniform Resource Locator (URL) in the response header of the redirect message. Specifically, the terminal device 301 will parse the Location header field in the redirect message to obtain the URL of the target prompt page and automatically access the target prompt page pointed to by the URL.
[0074] In some embodiments, the network data packets may also be preset data packets of the smart router 200. When the smart router 200 listens for the access event of the terminal device 301 and detects that the memory state is the target state, it automatically sends the preset data packets to the terminal device 301 so that the terminal device 301 can display the target prompt page in response to the data packets.
[0075] In some embodiments, the terminal device 301 is configured with a display function. That is, the terminal device 301 may have a built-in display screen for display, or be connected to a display screen for implementing the display function. After accessing the target prompt page, the terminal device 301 can display the target prompt page through the built-in or connected display screen.
[0076] In some embodiments, the target display page provided by the smart router 200 includes at least a first control and a second control. The first control is used to instruct the execution of a first response procedure to clean up runtime information data, and the second control is used to instruct the execution of a second response procedure to modify the memory state to a non-target state.
[0077] For example, such as Figure 9 As shown, Figure 9 This describes the display effect of a target prompt page. Figure 9In the first control 901, the intelligent router 200 is used to instruct the intelligent router 200 to clean up the running information data. The second control 902 is used to instruct the intelligent router 200 not to clean up the running information data at present, and temporarily set the memory state to non-target state, that is, to relieve the overload state of the running information data.
[0078] For example, such as Figure 10 As shown, Figure 10 This describes the display effect of a different target prompt page. Figure 10 In the configuration, the first control 101 is also used to instruct the smart router 200 to clean up the running information data, and the second control 102 is also used to instruct that the running information data should not be cleaned up at present, and the memory state should be temporarily set to a non-target state. Since the smart router 200 sends network data packets to the terminal device 301 to access the target prompt page according to the memory state, after the memory state is changed to a non-target state, the smart router 200 will no longer send network data packets to the terminal device 301 during this use, and the terminal device 301 will no longer display the target prompt page.
[0079] In some embodiments, the target display page provided by the smart router 200 may further include a third control. This third control is used to set the execution time for clearing operational information data. That is, the user can use the third control to set the time point or time period at which the smart router 200 clears the operational information data. For example, as... Figure 9 As shown, the third control 903 can be used to instruct the smart router 200 not to process the running information data at present; after a specific delay, or at a specific time point or time period, the first response program for cleaning up the running information data will be executed.
[0080] In some embodiments, after a user performs a selection operation on a third control, the target prompt page may also display a corresponding sub-control. The sub-control is used to set the execution time for clearing running information data. For example, the sub-control may provide a specific time point or time period for the user to select; alternatively, the sub-control may also provide the function of inputting a time point or time period to set the execution time for clearing running information data.
[0081] In some embodiments, the target notification page may further include notification information describing the memory status. When the smart router 200 has multiple memory thresholds set, the content of the notification information can be different. For example, the notification information may include the usage rate of memory 240, the remaining used space of memory 204, the amount of running information data, and potential problems caused by running information data overload.
[0082] It should be noted that the first control, the second control, the third control and the sub-control are all controllable views. The target prompt page provided by the embodiments of the present application can include display contents in various forms, and the target prompt page can provide controllable controls in various forms. The present application does not limit this.
[0083] S5003: receiving a request data packet sent by the terminal device based on the target prompt page.
[0084] After the intelligent router 200 sends the network data packet to the terminal device 301, the terminal device 301 accesses and displays the target prompt page. At this time, the user can control in the target prompt page through the terminal device 301, such as performing a selection operation on the first control, the second control or the third control, and then sending a corresponding request data packet to the intelligent router 200. The request data packet is used to instruct the intelligent router 200 to execute a corresponding response program.
[0085] In some embodiments, the first control of the target prompt page can generate a first request data packet, the second control can generate a second request data packet, and the third control can generate a third request data packet. The first request data packet, the second request data packet and the third request data packet respectively include a request line, a request header and a request body, and the request line, the request header and the request body in each request data packet are different. The intelligent router 200 can execute different response programs by analyzing the request line, the request header and the request body in the request data packet.
[0086] S5004: executing a corresponding response program according to the request data packet, the response program being used to clear the running information data and / or modify the memory state to a non-target state.
[0087] After the intelligent router 200 receives the request data packet sent by the terminal device 301 based on the target prompt page, the intelligent router 200 can analyze the request data packet and execute a corresponding response program according to the request data packet. The response program is used to clear the running information data, or is used to modify the memory state to a non-target state, or is used to clear the running information data and modify the memory state to a non-target state.
[0088] As Figure 11As shown, in some embodiments, the smart router 200 can receive a first request data packet through the network interface 201. The first request data packet includes at least a first request line, a first request header, and a first request body generated based on the first control. The first request line, first request header, and first request body are then parsed, and the first request data is routed to a first response program according to these components. The first response program is then executed to clear the runtime information data in memory. The memory state is then set to a non-target state.
[0089] In other words, when the smart router 200 receives the request data packet sent by the terminal device 301 based on the first control in the target prompt page, it will immediately execute the response program to clear the running information data and clear the running information data. That is, it will immediately perform memory cleanup, remove the target state used to indicate that the running information data is overloaded, and change the memory state of the smart router 200 to a non-target state.
[0090] like Figure 11 As shown, in some embodiments, the smart router 200 can receive a second request data packet through the network interface 201. The second request data packet includes at least a second request line, a second request header, and a second request body generated based on the second control. The second request line, second request header, and second request body are then parsed, and the second request data is routed to a second response procedure according to these components. The second response procedure is then executed to set the memory state to a non-target state and retain the runtime information data.
[0091] In other words, when the smart router 200 receives the request data packet sent by the terminal device 301 based on the second control in the target prompt page, it executes a response program to set the memory state to a non-target state, thereby removing the target state that indicates overload of running information data and modifying the memory state of the smart router 200 to a non-target state. At this time, the smart router 200 will not prompt the user again and will execute the above steps S5001-S5004 again on the next startup.
[0092] like Figure 11As shown, in some embodiments, the intelligent router 200 also receives a third request data packet through the network interface 201. The third request data packet includes at least a third request line, a third request header and a third request body generated based on a third control. The third request line, the third request header and the third request body are parsed again, and the third request data is routed to a third response program according to the third request line, the third request header and the third request body, and the third response program is executed. The third response program is used to call the first response program according to the execution time. When the execution time is reached, the first response program is executed to clear the running information data in the memory. The memory state is set to a non-target state.
[0093] That is, when the intelligent router 200 receives the request data packet sent by the terminal device 301 based on the third control in the target prompt page, the third response program is executed, and the third response program indicates the execution time. When the execution time is reached, the third response program calls the first response program, so that the intelligent router 200 automatically executes the first response program to clear the running information data. The target state for indicating that the running information data is overloaded is released, and the memory state of the intelligent router 200 is modified to a non-target state, thereby realizing the function of clearing the running information data at a fixed time.
[0094] In some embodiments, the intelligent router 200 can start a timer or a task for tracking the execution time through the execution time indicated by the third response program, so that the first response program can be automatically executed to clear the running information data cached in the memory 240 when the execution time is reached.
[0095] In some embodiments, the intelligent router 200 can sequentially parse the fields of the request data packet in the order of the request line, the request header and the request body, so as to identify the purpose of the request data packet and accurately route the request data packet to the corresponding response program for processing.
[0096] Based on the above intelligent router 200, some embodiments of the present application further provide a memory detection prompt method, which can be applied to the intelligent router 200 provided in the above embodiments. As shown, Figure 5 The method includes the following steps: S5001: In response to an access event of a terminal device, a memory state is detected, and the memory state is set based on running information data; S5002: If the memory state is a target state, a network data packet is sent to the terminal device to make the terminal device display a target prompt page in response to the network data packet; the target state is used to indicate that the running information data is overloaded, and the network data packet is used to instruct the terminal device to access the target prompt page, and the target prompt page is used to prompt to clear the running information data; S5003: receiving a request data packet sent by the terminal device based on the target prompt page; S5004: executing a corresponding response program according to the request data packet, the response program being used for clearing the running information data and / or modifying the memory state to a non-target state.
[0097] According to the above technical solutions, the intelligent router and the memory detection prompt method provided by some embodiments of the present application can detect the memory state set based on the running information data in response to an access event of the terminal device. If the memory state is a target state, a network data packet is sent to the terminal device to make the terminal device display a target prompt page in response to the network data packet. The target state is used to represent that the running information data is overloaded, the network data packet is used to instruct the terminal device to access the target prompt page, and the target prompt page is used to prompt to clear the running information data. Then, a request data packet sent by the terminal device based on the target prompt page is received, and a corresponding response program is executed according to the request data packet. The response program is used to clear the running information data and / or modify the memory state to a non-target state. The method can inform the user of the overload of the running information data in the memory through the target prompt page, so that the user can control the memory cleaning of the intelligent router 200, thereby improving the stability of the intelligent router 200 and improving the user experience.
[0098] The same or similar parts among the various embodiments in the specification can be referred to each other, which will not be described here.
[0099] Those skilled in the art can clearly understand that the technology in the embodiments of the present application can be realized by means of software and necessary general hardware platforms. Based on such understanding, the technical solutions in the embodiments of the present application or the part that contributes to the prior art can be embodied in the form of a software product, which can be stored in a storage medium, such as a ROM / RAM, a magnetic disk, an optical disk, etc., and includes a plurality of instructions to make a computer device (which can be a personal computer, a server, or a network device, etc.) execute the method of the various embodiments or some parts of the embodiments of the present application.
[0100] Finally, it should be pointed out that: the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacement for some or all of the technical features; and such modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application.
[0101] For the sake of explanation, the foregoing descriptions have been presented in terms of specific embodiments. However, it is to be appreciated that specific embodiments described herein are not intended to limit the scope of the present application, which is defined with reference to the following claims. Various modifications and changes can be made thereto by those skilled in the art which fall within the scope of the present application as defined by the following claims. The embodiments were chosen and described in order to explain the principles of the application and the practical application and to enable others skilled in the art to understand for implementing various embodiments and with various modifications as are suited to the particular use contemplated.
Claims
1. A smart router, characterized in that, include: The network interface is configured to establish a communication connection with the terminal device; Memory is configured to store runtime information data; The controller is configured as follows: In response to an access event from the terminal device, the memory status is detected, and the memory status is set based on runtime information data; If the memory state is the target state, a network data packet is sent to the terminal device so that the terminal device displays the target prompt page in response to the network data packet; The target state is used to characterize the overload of the operation information data, and the network data packet is used to instruct the terminal device to access the target prompt page, which is used to prompt the clearing of the operation information data. Receive the request data packet sent by the terminal device based on the target prompt page; Execute the corresponding response program according to the request data packet. The response program is used to clear the runtime information data and / or modify the memory state to a non-target state.
2. The smart router according to claim 1, characterized in that, The controller is configured to send network data packets to the terminal device. Listen to the network interface; Capture the probe packets sent by the terminal device received by the network interface; The response message of the probe message is replaced with a redirect message, which is used to specify the access address of the target prompt page. The response header of the redirect message includes the Uniform Resource Locator of the target prompt page. The redirection message is sent to the terminal device to send the network data packet to the terminal device.
3. The intelligent router according to claim 2, characterized in that, The controller is configured to capture probe packets sent by the terminal device and received via the network interface. Extract the first physical address of the terminal device; When a basic packet received by the network interface is detected, the second physical address of the basic packet is parsed. If the second physical address is the same as the first physical address, read the key fields of the base message, and capture the probe message based on the key fields.
4. The intelligent router according to claim 3, characterized in that, The controller is configured to capture the probe message based on the key field. Compare the key fields with the preset template fields; If the key field is different from the template field, allow the basic message to proceed. If the key field is the same as the template field, the basic message is recorded in the memory buffer to capture the probe message.
5. The intelligent router according to claim 1, characterized in that, The target prompt page includes at least a first control and a second control. The first control is used to instruct the execution of a first response program to clean up the running information data, and the second control is used to instruct the execution of a second response program to modify the memory state to a non-target state.
6. The intelligent router according to claim 5, characterized in that, The controller is configured to: The network interface receives a first request data packet, the first request data packet including at least a first request line, a first request header and a first request body generated based on the first control; Parse the first request line, the first request header, and the first request body; The first request data is routed to the first response procedure according to the first request line, the first request header, and the first request body; Execute the first response procedure to clear the runtime information data in the memory; Set the memory state to the non-target state.
7. The intelligent router according to claim 5, characterized in that, The controller is configured to: The second request data packet is received through the network interface. The second request data packet includes at least a second request line, a second request header, and a second request body generated based on the second control. Parse the second request line, the second request header, and the second request body; The second request data is routed to the second response procedure according to the second request line, the second request header, and the second request body; The second response procedure is executed to set the memory state to the non-target state and retain the runtime information data.
8. The intelligent router according to claim 5, characterized in that, The target prompt page also includes a third control, which is used to set the execution time for clearing the running information data; the controller is further configured to: The network interface receives a third request data packet, which includes at least a third request line, a third request header, and a third request body generated based on the third control. Parse the third request line, third request header, and third request body; According to the third request line, the third request header and the third request body, the third request data is routed to the third response program and the third response program is executed. The third response program is used to call the first response program according to the execution time. When the execution time is reached, the first response program is executed to clear the runtime information data in the memory; Set the memory state to the non-target state.
9. The intelligent router according to claim 1, characterized in that, The controller is configured to: In response to the power-on command of the smart router, a memory detection process is initiated, and the amount of data in the running information data is detected through the memory detection process; Read the preset memory threshold; If the amount of data is greater than or equal to the memory threshold, the memory state is marked as the target state; If the amount of data is less than the memory threshold, the memory state is marked as the non-target state.
10. A method for providing a memory detection prompt, characterized in that, include: In response to an access event from a terminal device, the memory status is detected, and the memory status is set based on runtime information data; If the memory state is the target state, a network data packet is sent to the terminal device so that the terminal device displays the target prompt page in response to the network data packet; The target state is used to characterize the overload of the operation information data, and the network data packet is used to instruct the terminal device to access the target prompt page, which is used to prompt the clearing of the operation information data. Receive the request data packet sent by the terminal device based on the target prompt page; Execute the corresponding response program according to the request data packet. The response program is used to clear the runtime information data and / or modify the memory state to a non-target state.
