A terminal communication recovery method, apparatus, device and readable storage medium
By retaining and marking offline terminal information entries on wireless access point devices and restoring their status based on the uplink message type, the problem of communication interruption caused by terminals mistakenly judging as offline in WLAN networks is solved, improving network stability and user experience.
Patent Information
- Application Number
- CN202411513765.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-28
- Publication Date
- 2025-10-10
- Estimated Expiration
- 2044-10-28
AI Technical Summary
In a centrally managed WLAN network, communication interruptions caused by terminal devices being mistakenly identified as offline occur. Existing technologies lack an effective mechanism for quickly restoring communication, impacting user experience and network stability.
The wireless access point retains the offline terminal information table entry and marks it as invalid. It restores its valid status by processing the uplink message type to avoid discarding downlink messages until the terminal is confirmed to be online.
It enables the terminal communication status to be quickly restored without manual user intervention, improves the network automation and user experience, and reduces the risk of communication interruption.
Smart Images

Figure CN119421187B_ABST
Abstract
Description
Technical Field
[0001] This specification relates to the field of communication technology, and in particular to a terminal communication recovery method, device, equipment, and readable storage medium. Background Art
[0002] With the rapid development of wireless local area network (WLAN) technology, more and more devices are connecting to the internet wirelessly, making wireless networks an integral part of daily life. The current mainstream WLAN network architecture uses a centralized management model: the AC (Access Controller) + Fit Access Point (FIT AP) model. In this model, the Fit AP primarily manages radio frequency management and user access, while the AC handles more complex network management and policy enforcement.
[0003] like Figure 4 In actual application environments, WLAN networks are faced with a variety of terminal device connections, and these devices may have problems connecting to the AP (Access Point) for various reasons. There are two common situations: one is that the terminal is actually offline, but the network device still thinks it is online; the other is that the terminal is still online, but the network device mistakenly thinks it is offline. The former problem is relatively easy to solve, and there are usually multiple ways to deal with it. However, the latter is a more difficult problem, especially when the terminal has no business activities and enters the dormant state, or when the terminal temporarily leaves the AP coverage area during movement and then returns. At this time, the AP may mistakenly believe that the terminal has left the network.
[0004] When an AP mistakenly identifies a terminal as offline, it typically deletes its associated information. Consequently, any data packets destined for that terminal are not forwarded, and uplink data from the terminal may be discarded. While some terminals attempt to reconnect after detecting a connection problem, many do not automatically do so, resulting in prolonged communication interruptions and severely impacting the user experience.
[0005] Manually reconnecting can solve this problem, but doing so is not only inconvenient for the user, but in some cases, it may cause long periods of disconnection if the user is unaware of the network connection problem.
[0006] In view of the above problems, a new method is urgently needed to handle terminals that are mistakenly considered offline but are actually still online, so as to ensure that they can quickly resume normal communication without user intervention. Summary of the Invention
[0007] In view of this, the present specification provides a terminal communication recovery method, device, electronic device, and readable storage medium to improve the above-mentioned problem of terminal communication interruption.
[0008] The specific technical solutions are as follows:
[0009] The present specification provides a terminal communication recovery method, which is applied to a wireless access point device. The method includes: in response to an event in which a target terminal device is determined to be an offline device, retaining an information table item associated with the target terminal device, and configuring the device status of the target terminal device to be an invalid state in the information table item; if a downlink message to be forwarded to the target terminal device is received, discarding the downlink message according to the invalid state of the target terminal device, and if an uplink message is received from the target terminal device, processing the uplink message according to the type of the uplink message; and in response to an event in which a result of processing the uplink message meets a preset rule, configuring the device status of the target terminal device to be a valid state in the information table item.
[0010] As a technical solution, in response to an event in which a target terminal device is determined to be an offline device, an information table entry associated with the target terminal device is retained, and a device status of the target terminal device is configured as an invalid state in the information table entry, including: if it is detected that the target terminal device meets preset characteristics, the target terminal device is determined to be an offline device, and in response to the event in which the target terminal device is determined to be an offline device, an information table entry associated with the target terminal device is retained, and the device status of the target terminal device is configured as an invalid state in the information table entry; the preset characteristics include: loss of specific messages when the target terminal state switches between sleep and non-sleep, and / or the terminal re-enters the working range of the local wireless access point after leaving the working range of the local wireless access point.
[0011] As a technical solution, in response to an event in which a target terminal device is determined to be an offline device, an information table entry associated with the target terminal device is retained, and the device status of the target terminal device is configured as an invalid state in the information table entry, including: receiving an offline message sent by the target terminal device, judging that the target terminal device is an offline device based on the offline message sent by the target terminal device, and in response to the event in which the target terminal device is determined to be an offline device, retaining the information table entry associated with the target terminal device, and configuring the device status of the target terminal device as an invalid state in the information table entry.
[0012] As a technical solution, in response to the event that the result of processing the uplink message complies with the preset rules, the device status of the target terminal device is configured as a valid state in the information table item, including: if the uplink message sent by the target terminal device is a data message, then after processing the data message, the device status of the target terminal device is configured as a valid state in the information table item.
[0013] As a technical solution, in response to the event that the result of processing the uplink message complies with preset rules, the device status of the target terminal device is configured as a valid state in the information table item, including: if the uplink message sent by the target terminal device is a management message, then after processing the management message, a protection message is sent to the target terminal device; if a response message sent by the target terminal device in response to the protection message is received, then the device status of the target terminal device is configured as a valid state in the information table item.
[0014] As a technical solution, in response to an event in which the target terminal device is determined to be an offline device, the information table item associated with the target terminal device is retained, and the device status of the target terminal device is configured as an invalid state in the information table item, including: in response to an event in which the device status of the target terminal device in the information table item is configured as an invalid state, starting a keep-alive timer associated with the target terminal device, and if the device status of the target terminal device in the information table item is not configured as a valid state within a preset time period, deleting the information table item associated with the target terminal device.
[0015] This specification also provides a terminal communication recovery device, which is applied to a wireless access point device, and the device includes: a first unit, which is used to retain an information table item associated with the target terminal device in response to an event of determining that the target terminal device is an offline device, and configure the device status of the target terminal device as an invalid state in the information table item; a second unit, which is used to discard the downlink message to be forwarded to the target terminal device according to the invalid state of the target terminal device after receiving the downlink message to be forwarded to the target terminal device, and to process the uplink message according to the type of the uplink message after receiving the uplink message sent by the target terminal device; and a third unit, which is used to configure the device status of the target terminal device as a valid state in the information table item in response to an event that the result of processing the uplink message meets a preset rule.
[0016] As a technical solution, in response to an event in which a target terminal device is determined to be an offline device, an information table entry associated with the target terminal device is retained, and a device status of the target terminal device is configured as an invalid state in the information table entry, including: if it is detected that the target terminal device meets preset characteristics, the target terminal device is determined to be an offline device, and in response to the event in which the target terminal device is determined to be an offline device, an information table entry associated with the target terminal device is retained, and the device status of the target terminal device is configured as an invalid state in the information table entry; the preset characteristics include: loss of specific messages when the target terminal state switches between sleep and non-sleep, and / or the terminal re-enters the working range of the local wireless access point after leaving the working range of the local wireless access point.
[0017] As a technical solution, in response to an event in which a target terminal device is determined to be an offline device, an information table entry associated with the target terminal device is retained, and the device status of the target terminal device is configured as an invalid state in the information table entry, including: receiving an offline message sent by the target terminal device, judging that the target terminal device is an offline device based on the offline message sent by the target terminal device, and in response to the event in which the target terminal device is determined to be an offline device, retaining the information table entry associated with the target terminal device, and configuring the device status of the target terminal device as an invalid state in the information table entry.
[0018] As a technical solution, in response to the event that the result of processing the uplink message complies with the preset rules, the device status of the target terminal device is configured as a valid state in the information table item, including: if the uplink message sent by the target terminal device is a data message, then after processing the data message, the device status of the target terminal device is configured as a valid state in the information table item.
[0019] As a technical solution, in response to the event that the result of processing the uplink message complies with preset rules, the device status of the target terminal device is configured as a valid state in the information table item, including: if the uplink message sent by the target terminal device is a management message, then after processing the management message, a protection message is sent to the target terminal device; if a response message sent by the target terminal device in response to the protection message is received, then the device status of the target terminal device is configured as a valid state in the information table item.
[0020] As a technical solution, in response to an event in which the target terminal device is determined to be an offline device, the information table item associated with the target terminal device is retained, and the device status of the target terminal device is configured as an invalid state in the information table item, including: in response to an event in which the device status of the target terminal device in the information table item is configured as an invalid state, starting a keep-alive timer associated with the target terminal device, and if the device status of the target terminal device in the information table item is not configured as a valid state within a preset time period, deleting the information table item associated with the target terminal device.
[0021] This specification also provides an electronic device, including a processor and a readable storage medium, wherein the readable storage medium stores machine-executable instructions that can be executed by the processor, and the processor executes the machine-executable instructions to implement the aforementioned terminal communication recovery method.
[0022] This specification also provides a readable storage medium, which stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the aforementioned terminal communication recovery method.
[0023] The above technical solutions provided in this specification bring at least the following beneficial effects:
[0024] By retaining the information table entries of offline terminals on the wireless access point device and marking them as invalid instead of directly deleting them, when uplink messages from such terminals are received, they are processed according to the message type and restored to their valid state, thus avoiding the inconvenience of users manually reconnecting and improving the terminal's automatic recovery capability and user experience in network anomalies. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the implementation methods of this specification or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the implementation methods of this specification or the description of the prior art. Obviously, the drawings described below are only some implementation methods recorded in this specification. For ordinary technicians in this field, other drawings can also be obtained based on these drawings of the implementation methods of this specification.
[0026] Figure 1 is a flowchart of a terminal communication recovery method in one embodiment of this specification;
[0027] Figure 2 is a structural diagram of a terminal communication recovery device in one embodiment of this specification;
[0028] Figure 3 is a hardware structure diagram of an electronic device in one embodiment of this specification;
[0029] Figure 4 This is a typical networking diagram involved in this manual.
[0030] Reference numerals: first module 21 , second module 22 , third module 23 . DETAILED DESCRIPTION
[0031] The terms used in the embodiments of this specification are only for the purpose of describing specific embodiments and are not intended to limit this specification. The singular forms "a," "the," and "the" used in this specification and claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" as used herein refers to any or all possible combinations of one or more of the associated listed items.
[0032] It should be understood that although the terms first, second, third, etc. may be used in the embodiments of this specification to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this specification, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the word "if" may also be interpreted as "when...", "when...", or "in response to determining."
[0033] In an AC+FITAP WLAN network, the FITAP provides the radio interface and user access services, while the AC manages all FITAPs within the network and provides all services beyond access. This network architecture effectively supports large-scale wireless user access, but it also presents some challenges, particularly in terminal state management.
[0034] In actual network operations, terminal status misjudgment can occur for various reasons. For example, when a terminal device frequently enters sleep mode due to power management policies, some packets may be lost on the network, causing the AP to mistakenly believe the terminal is offline. Additionally, when a terminal temporarily leaves the AP's operating range and then returns, the AP may mistakenly determine that the terminal is offline when, in fact, it is still online. These situations can lead to communication interruptions between the terminal and the network, affecting the user's network experience.
[0035] When an AP determines a terminal is offline, it typically deletes its information, resulting in the loss of downlink packets and the discarding of uplink data packets. The terminal must reconnect to restore communication, but most devices don't automatically reconnect, requiring manual user intervention, resulting in a poor user experience. Furthermore, if a terminal fails to automatically reconnect for an extended period, communication may be interrupted, disrupting the user's work and daily life.
[0036] One technical solution is manual reconnection. While this method can restore communication, it requires active user intervention, which increases the user burden and reduces the degree of network automation. Furthermore, manual reconnection can cause a period of communication interruption, impacting user workflow and network experience.
[0037] Another solution is to wait for the terminal to automatically reconnect, but this usually takes a long time and the reconnection success rate cannot be guaranteed. During this period, users may experience continuous communication interruptions, seriously affecting user experience and network reliability.
[0038] Therefore, the problem with the above technical solution is that when the AP mistakenly determines that a terminal is offline, there is no effective mechanism to quickly restore the terminal's communication status, avoiding manual user intervention and reducing the risk of communication interruption. This not only affects the user's network experience but also poses challenges to network stability and reliability.
[0039] This specification aims to address the aforementioned issues in the prior art by providing a method and implementation for rapidly restoring communication on an invalid terminal, thereby improving the stability and user experience of WLAN networks. This technical solution allows for rapid restoration of communication status when a terminal is mistakenly identified as offline, eliminating the need for manual reconnection by the user and thus improving network automation and reliability.
[0040] The specific technical solution is described below.
[0041] In one embodiment, the present specification provides a terminal communication recovery method, which is applied to a wireless access point device, the method including: in response to an event in which a target terminal device is determined to be an offline device, retaining an information table entry associated with the target terminal device, and configuring the device status of the target terminal device to be an invalid state in the information table entry; if a downlink message to be forwarded to the target terminal device is received, discarding the downlink message according to the invalid state of the target terminal device, and if an uplink message is received from the target terminal device, processing the uplink message according to the type of the uplink message; in response to an event in which the result of processing the uplink message meets a preset rule, configuring the device status of the target terminal device to be a valid state in the information table entry.
[0042] Specifically, if Figure 1 , including the following steps:
[0043] Step S11 , in response to an event that the target terminal device is determined to be an offline device, retaining an information entry associated with the target terminal device, and configuring the device status of the target terminal device to be an invalid state in the information entry.
[0044] When an AP determines that a target terminal device is offline through some mechanism (such as signal detection or packet loss), rather than immediately deleting the information table entries associated with the terminal device, the AP retains these information entries and configures the device status of the target terminal device to "Invalid" (Inv) in the information table entries. This step is a key innovation because it avoids direct deletion of terminal information, making it possible for the terminal device to quickly resume communication.
[0045] If a wireless client enters sleep mode due to power management policy, the AP may mistakenly determine that the client is offline if it does not receive any messages from the client for a period of time. In the method of the present invention, the AP does not delete the client's information, but instead marks it as "inactive" and waits for the client to reactivate.
[0046] Step S12: If a downlink message to be forwarded to the target terminal device is received, the downlink message is discarded according to the invalid state of the target terminal device; if an uplink message sent by the target terminal device is received, the uplink message is processed according to the type of the uplink message.
[0047] While the target terminal device is in the "inactive state", the AP will perform the following operations:
[0048] Downlink message processing: If the AP receives a downlink message that needs to be forwarded to the target terminal device, because the target terminal device is in the "invalid state", the AP will discard these downlink messages based on this state. This is done to avoid sending data to the terminal that has been considered offline, thereby saving network resources;
[0049] Uplink message processing: If the AP receives an uplink message sent by the target terminal device, the AP will process it according to the type of uplink message. This may include data messages, management messages, etc. For data messages, the AP will check whether the MAC address and IP address of the message are consistent with those when the terminal was previously online. If they are consistent, the AP will process the message. If the message is encrypted and uses the encryption information when the terminal is online, the AP will set the terminal status to "valid state" (V) after processing the message. If the message is not encrypted, the AP will directly change the terminal status to "valid state" after processing the message.
[0050] Step S13: In response to an event that the result of processing the uplink message complies with a preset rule, the device status of the target terminal device is configured as a valid state in the information table entry.
[0051] When the client wakes up from sleep and tries to send data, the AP will receive the uplink data packet. The AP will check the encryption status of the packet and the terminal's MAC and IP address. If everything is normal, the AP will process the packet and restore the client's status to "valid state".
[0052] If, after processing the uplink message, the results meet preset rules (for example, the message format is correct, the encryption information matches, and the terminal responds normally), the AP will configure the device status of the target terminal device to "valid" (V) in the information table entry. This step officially marks the restoration of terminal communication.
[0053] If the management message sent by the client is correctly processed by the AP and the client responds normally to the protection message from the AP, the AP will confirm that the client is back online and update the client status to "valid".
[0054] This terminal communication recovery method allows the terminal's communication status to be quickly restored even when the AP mistakenly identifies an online terminal as offline, without requiring manual user intervention. This significantly improves network stability and user experience. This method is applicable not only to misjudgments caused by sleep or mobility, but also to other situations that may lead to misjudgment of terminal status, demonstrating its broad applicability and practicality.
[0055] When an AP detects that a target terminal device (STA) is offline, it does not immediately delete the terminal's information record. Instead, it retains the terminal's information entry and marks the terminal's device status as invalid (Inv) in the information entry. This invalid status means that the AP is not sure whether the terminal has actually left the network coverage area. For example, suppose a user is using a laptop to connect to a wireless network, but there is no network activity. The AP mistakenly believes that the laptop has left the network range. In this case, the AP will change the laptop's status to Inv instead of directly deleting the record.
[0056] Once the AP is in this state, if it receives downlink data packets intended for forwarding to the target terminal, it will discard these packets without processing, based on the terminal's invalid state, as the AP assumes the terminal is unable to receive the data. Conversely, if the AP receives uplink messages from the target terminal, whether data or management messages, it will process them based on the message type. For example, suppose the aforementioned laptop begins sending an email (an uplink data message) after being marked in the Inv state. The AP will check whether the message's source MAC address and IP address match those previously recorded. If they do, the message will be processed. If the message is encrypted and uses previously valid encryption information, the AP will re-mark the terminal's state as Valid (V) after processing the message. If the message is unencrypted, it will be processed directly and its state will be changed to V. If it is a management message, such as an authentication request, the AP will process it normally and send a protected message to the terminal. If a valid response is received from the terminal, the AP will change the terminal's state back to V. If a valid response is not received, the AP will not process it further.
[0057] When the result of processing an uplink message meets the preset rules—that is, when the AP determines that the terminal is indeed online and communicating effectively—the AP reconfigures the target terminal's device status in the information table entry to Valid (V), allowing the terminal to continue using network services normally. For example, continuing with the laptop example, if the AP receives an email from the laptop, successfully processes the email, and receives a correct response from the laptop, the AP will change the laptop's status from Inv to V, resuming normal service.
[0058] To prevent terminals that remain inactive for extended periods from occupying system resources, the AP initiates a maintenance period (T) with a default duration of 3600 seconds (one hour) when the terminal's status changes from active (V) to inactive (Inv). If the terminal remains in inactive (Inv) during this period, the AP deletes the terminal's information entry after the period ends. Users can also choose to enable periodic keepalive detection, which causes the AP to periodically send probe messages to the terminal within period T. If the terminal responds correctly, its status is changed to active (V). Otherwise, the terminal's information record is deleted.
[0059] Through this method, even if the terminal temporarily loses effective contact with the AP for various reasons, it can automatically restore communication without user intervention, improving the terminal's self-recovery ability in network abnormalities, thereby greatly improving the user experience.
[0060] In one embodiment, in response to an event in which the target terminal device is determined to be an offline device, an information table entry associated with the target terminal device is retained, and a device status of the target terminal device is configured as an invalid state in the information table entry, including: if it is detected that the target terminal device meets a preset feature, the target terminal device is determined to be an offline device, in response to the event in which the target terminal device is determined to be an offline device, an information table entry associated with the target terminal device is retained, and the device status of the target terminal device is configured as an invalid state in the information table entry; the preset features include: loss of specific messages when the target terminal state switches between sleep and non-sleep, and / or the terminal re-enters the working range of the local wireless access point after leaving the working range of the local wireless access point.
[0061] In one embodiment, in response to an event in which the target terminal device is determined to be an offline device, the information table entry associated with the target terminal device is retained, and the device status of the target terminal device is configured as an invalid state in the information table entry, including: receiving an offline message sent by the target terminal device, judging that the target terminal device is an offline device based on the offline message sent by the target terminal device, and in response to the event in which the target terminal device is determined to be an offline device, retaining the information table entry associated with the target terminal device, and configuring the device status of the target terminal device as an invalid state in the information table entry.
[0062] In one embodiment, in response to the event that the result of processing the uplink message complies with a preset rule, the device status of the target terminal device is configured as a valid state in the information table item, including: if the uplink message sent by the target terminal device is a data message, then after processing the data message, the device status of the target terminal device is configured as a valid state in the information table item.
[0063] In one embodiment, in response to the event that the result of processing the uplink message meets the preset rules, the device status of the target terminal device is configured as a valid state in the information table item, including: if the uplink message sent by the target terminal device is a management message, then after processing the management message, a protection message is sent to the target terminal device, and if a response message sent by the target terminal device in response to the protection message is received, then the device status of the target terminal device is configured as a valid state in the information table item.
[0064] In one embodiment, in response to an event in which the target terminal device is determined to be an offline device, the information table item associated with the target terminal device is retained, and the device status of the target terminal device is configured as an invalid state in the information table item, including: in response to an event in which the device status of the target terminal device in the information table item is configured as an invalid state, starting a keep-alive timer associated with the target terminal device, and if the device status of the target terminal device in the information table item is not configured as a valid state within a preset time period, deleting the information table item associated with the target terminal device.
[0065] In one embodiment, Figure 2 This specification also provides a terminal communication recovery device, which is applied to a wireless access point device, and the device includes: a first unit, which is used to retain an information table item associated with the target terminal device in response to an event of determining that the target terminal device is an offline device, and configure the device status of the target terminal device as an invalid state in the information table item; a second unit, which is used to discard the downlink message to be forwarded to the target terminal device according to the invalid state of the target terminal device after receiving the downlink message to be forwarded to the target terminal device, and to process the uplink message according to the type of the uplink message after receiving the uplink message sent by the target terminal device; a third unit, which is used to configure the device status of the target terminal device as a valid state in the information table item in response to an event that the result of processing the uplink message meets a preset rule.
[0066] In an embodiment, the step of reserving the information table item associated with the target terminal device and configuring the device state of the target terminal device as the invalid state in the information table item in response to the event of judging that the target terminal device is an offline device comprises: judging that the target terminal device is an offline device if the target terminal device meets preset characteristics; and reserving the information table item associated with the target terminal device and configuring the device state of the target terminal device as the invalid state in the information table item in response to the event of judging that the target terminal device is an offline device. The preset characteristics comprise: losing a specific message when the target terminal state switches between dormancy and non-dormancy, and / or re-entering the working range of the local wireless access point after leaving the working range of the local wireless access point.
[0067] In an embodiment, the step of reserving the information table item associated with the target terminal device and configuring the device state of the target terminal device as the invalid state in the information table item in response to the event of judging that the target terminal device is an offline device comprises: receiving an offline message sent by the target terminal device; judging that the target terminal device is an offline device according to the offline message sent by the target terminal device; and reserving the information table item associated with the target terminal device and configuring the device state of the target terminal device as the invalid state in the information table item in response to the event of judging that the target terminal device is an offline device.
[0068] In an embodiment, the step of configuring the device state of the target terminal device as the valid state in the information table item in response to the event of processing the uplink message result meeting the preset rule comprises: if the uplink message sent by the target terminal device is a data message, configuring the device state of the target terminal device as the valid state in the information table item after processing the data message.
[0069] In an embodiment, the step of configuring the device state of the target terminal device as the valid state in the information table item in response to the event of processing the uplink message result meeting the preset rule comprises: if the uplink message sent by the target terminal device is a management message, sending a protection message to the target terminal device after processing the management message; and configuring the device state of the target terminal device as the valid state in the information table item if a response message sent by the target terminal device in response to the protection message is received.
[0070] In an embodiment, the step of reserving the information table item associated with the target terminal device and configuring the device state of the target terminal device as the invalid state in the information table item in response to the event of judging that the target terminal device is an offline device comprises: starting a keep-alive timer associated with the target terminal device in response to the event of the device state of the target terminal device being configured as the invalid state in the information table item; and deleting the information table item associated with the target terminal device if the device state of the target terminal device is not configured as the valid state in the information table item within a preset time length.
[0071] The device implementation is the same as or similar to the corresponding method implementation, and will not be repeated here.
[0072] In one embodiment, this specification provides an electronic device, including a processor and a readable storage medium, wherein the readable storage medium stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the aforementioned terminal communication recovery method. From a hardware perspective, the hardware architecture diagram can be found in Figure 3 shown.
[0073] In one embodiment, this specification provides a readable storage medium, wherein the readable storage medium stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the aforementioned terminal communication recovery method.
[0074] Here, the readable storage medium can be any electronic, magnetic, optical or other physical storage device that can contain or store information, such as executable instructions, data, etc. For example, the readable storage medium can be: RAM (Random Access Memory), volatile memory, non-volatile memory, flash memory, storage drive (such as hard disk drive), solid state drive, any type of storage disk (such as optical disk, DVD, etc.), or similar storage media, or a combination thereof.
[0075] The systems, devices, modules, or units described in the above embodiments may be implemented by computer chips or entities, or by products having certain functions. A typical implementation device is a computer, which may be in the form of a personal computer, laptop computer, cellular phone, camera phone, smartphone, personal digital assistant, media player, navigation device, email transceiver, game console, tablet computer, wearable device, or any combination of these devices.
[0076] For the convenience of description, the above devices are described as being divided into various units according to their functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0077] Those skilled in the art will appreciate that embodiments of the present description can be devised for a method, a system, or a computer program product. Accordingly, the present description can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present description can take the form of a computer program product on one or more computer readable storage media (including, but not limited to, disk storage, CD-ROMs, optical storage devices, etc.) embodying computer readable program code thereon for use by or in connection with an instruction execution system. For the purposes of this description, a computer usable or computer readable storage medium can be any apparatus that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
[0078] The present description is described in reference to the flow diagrams and / or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the present description. It will be understood that each block of the flow diagrams and / or block diagrams, and combinations of blocks in the flow diagrams and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processing system or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flow diagrams and / or block diagrams block or blocks. Figure 1 one or more functions specified in the flow diagram and / or block diagram block or blocks. Figure 1 one or more functions specified in the flow diagram and / or block diagram block or blocks.
[0079] Furthermore, these computer program instructions can also be stored in a computer readable storage medium that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer readable storage medium produce an article of manufacture including instructions which implement the flow diagrams and / or block diagrams flow or flows and / or block or blocks specified in the flow diagrams and / or block diagrams. Figure 1 one or more functions specified in the flow diagram and / or block diagram block or blocks. Figure 1 one or more functions specified in the flow diagram and / or block diagram block or blocks.
[0080] The computer program instructions can also be loaded into a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the flow diagrams and / or block diagrams flow or flows and / or block or blocks specified in the flow diagrams and / or block diagrams. Figure 1 one or more functions specified in the flow diagram and / or block diagram block or blocks. Figure 1 one or more functions specified in the flow diagram and / or block diagram block or blocks.
[0081] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems, or computer program products. Thus, this specification may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Furthermore, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including, but not limited to, magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0082] The foregoing is merely an embodiment of the present invention and is not intended to limit the present invention. Various modifications and variations are possible for those skilled in the art. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of the present invention are intended to be included within the scope of the claims of the present invention.
Claims
1. A terminal communication recovery method, characterized in that: Applied to a wireless access point device, the method includes: In response to an event in which the target terminal device is determined to be an offline device, retaining an information table entry associated with the target terminal device, and configuring a device state of the target terminal device as an invalid state in the information table entry; If a downlink message to be forwarded to the target terminal device is received, the downlink message is discarded according to the invalid state of the target terminal device. If an uplink message sent by the target terminal device is received, the uplink message is processed according to the type of the uplink message; In response to an event that a result of processing the uplink message complies with a preset rule, the device status of the target terminal device is configured as a valid state in the information table entry.
2. The method according to claim 1, characterized in that In response to the event of determining that the target terminal device is an offline device, retaining the information table entry associated with the target terminal device and configuring the device status of the target terminal device as an invalid state in the information table entry includes: If it is detected that the target terminal device meets the preset characteristics, the target terminal device is determined to be an offline device. In response to the event of determining that the target terminal device is an offline device, an information table entry associated with the target terminal device is retained, and a device state of the target terminal device is configured as an invalid state in the information table entry; The preset features include: a specific message is lost when the target terminal switches between sleep and non-sleep states, and / or the terminal re-enters the working range of the local wireless access point after leaving the working range of the local wireless access point.
3. The method according to claim 1, characterized in that In response to the event of determining that the target terminal device is an offline device, retaining the information table entry associated with the target terminal device and configuring the device status of the target terminal device as an invalid state in the information table entry includes: Receive an offline message sent by the target terminal device, determine that the target terminal device is an offline device based on the offline message sent by the target terminal device, and in response to the event of determining that the target terminal device is an offline device, retain the information table item associated with the target terminal device, and configure the device status of the target terminal device to an invalid state in the information table item.
4. The method according to claim 1, wherein In response to the event that the result of processing the uplink message complies with a preset rule, configuring the device status of the target terminal device as a valid state in the information table entry includes: If the uplink message sent by the target terminal device is a data message, after processing the data message, the device status of the target terminal device is configured as a valid state in the information table entry.
5. The method according to claim 1, wherein In response to the event that the result of processing the uplink message complies with a preset rule, configuring the device status of the target terminal device as a valid state in the information table entry includes: If the uplink message sent by the target terminal device is a management message, a protection message is sent to the target terminal device after processing the management message. If a response message sent by the target terminal device in response to the protection message is received, the device status of the target terminal device is configured as a valid state in the information table item.
6. The method according to claim 1, characterized in that In response to the event of determining that the target terminal device is an offline device, retaining the information table entry associated with the target terminal device and configuring the device status of the target terminal device as an invalid state in the information table entry includes: In response to an event that the device status of the target terminal device in the information table item is configured as an invalid state, a keep-alive timer associated with the target terminal device is started. If the device status of the target terminal device in the information table item is not configured as a valid state within a preset time period, the information table item associated with the target terminal device is deleted.
7. A terminal communication recovery device, characterized in that: Applied to a wireless access point device, the apparatus comprises: The first unit is configured to, in response to an event that the target terminal device is determined to be an offline device, retain an information table entry associated with the target terminal device and configure a device state of the target terminal device as an invalid state in the information table entry; The second unit is configured to discard the downlink message to be forwarded to the target terminal device according to the invalid state of the target terminal device after receiving the downlink message to be forwarded to the target terminal device, and to process the uplink message according to the type of the uplink message after receiving the uplink message sent by the target terminal device; The third unit is configured to configure the device status of the target terminal device as a valid state in the information table item in response to an event that the result of processing the uplink message complies with a preset rule.
8. The device according to claim 7, characterized in that In response to the event of determining that the target terminal device is an offline device, retaining the information table entry associated with the target terminal device and configuring the device status of the target terminal device as an invalid state in the information table entry includes: If it is detected that the target terminal device meets the preset characteristics, the target terminal device is determined to be an offline device. In response to the event of determining that the target terminal device is an offline device, an information table entry associated with the target terminal device is retained, and a device state of the target terminal device is configured as an invalid state in the information table entry; The preset features include: a specific message is lost when the target terminal switches between sleep and non-sleep states, and / or the terminal re-enters the working range of the local wireless access point after leaving the working range of the local wireless access point.
9. The device according to claim 7, characterized in that In response to the event of determining that the target terminal device is an offline device, retaining the information table entry associated with the target terminal device and configuring the device status of the target terminal device as an invalid state in the information table entry includes: Receive an offline message sent by the target terminal device, determine that the target terminal device is an offline device based on the offline message sent by the target terminal device, and in response to the event of determining that the target terminal device is an offline device, retain the information table item associated with the target terminal device, and configure the device status of the target terminal device to an invalid state in the information table item.
10. The device according to claim 7, characterized in that In response to the event that the result of processing the uplink message complies with a preset rule, configuring the device status of the target terminal device as a valid state in the information table entry includes: If the uplink message sent by the target terminal device is a data message, after processing the data message, the device status of the target terminal device is configured as a valid state in the information table entry.
11. The device according to claim 7, characterized in that In response to the event that the result of processing the uplink message complies with a preset rule, configuring the device status of the target terminal device as a valid state in the information table entry includes: If the uplink message sent by the target terminal device is a management message, a protection message is sent to the target terminal device after processing the management message. If a response message sent by the target terminal device in response to the protection message is received, the device status of the target terminal device is configured as a valid state in the information table item.
12. The device according to claim 7, characterized in that In response to the event of determining that the target terminal device is an offline device, retaining the information table entry associated with the target terminal device and configuring the device status of the target terminal device as an invalid state in the information table entry includes: In response to an event that the device status of the target terminal device in the information table item is configured as an invalid state, a keep-alive timer associated with the target terminal device is started. If the device status of the target terminal device in the information table item is not configured as a valid state within a preset time period, the information table item associated with the target terminal device is deleted.
13. An electronic device, characterized in that: include: A processor and a readable storage medium, wherein the readable storage medium stores machine-executable instructions that can be executed by the processor, and the processor executes the machine-executable instructions to implement the method according to any one of claims 1 to 6.
14. A readable storage medium, characterized in that The readable storage medium stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Wireless network configuration method and device
CN111356149A
5G message processing method and device
CN113938847A