A method of recovering a network and related devices
By identifying and utilizing the cellular and access point capabilities of terminal devices, the routing device can quickly restore network connectivity when the network is abnormal, solving the problem of terminal devices being unable to connect due to WAN-side anomalies of the routing device and improving the user experience.
Patent Information
- Application Number
- CN202311330146.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-13
- Publication Date
- 2026-02-06
- Estimated Expiration
- 2043-10-13
AI Technical Summary
The WAN side of the routing device is malfunctioning, causing terminal devices to be unable to connect to the network, which affects the user experience.
The routing device identifies the cellular and access point capabilities of the terminal devices, selects terminal devices that meet the target capabilities, and instructs them to activate the target capabilities and establish a network connection when network connectivity is abnormal.
When the WAN side of the routing device experiences a network anomaly, it quickly restores network connectivity to ensure that terminal devices can provide services normally and improve user experience.
Smart Images

Figure CN119865839B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of communication technology, and in particular to a method for recovering a network and related devices. BACKGROUND
[0002] With the popularization of communication technology, terminal devices such as mobile phones, smart homes, etc. need to be connected to a network to support various services for users. However, due to network abnormalities of a routing device, such as user arrears, uplink optical cat abnormalities, network cable abnormalities, or cell backbone network abnormalities, etc., the wide area network (WAN) side of the routing device is abnormal, which causes abnormal connectivity between the routing device and the core network, resulting in the inability of Internet of Things devices such as smart homes in the user's home to connect to the network, so that the user cannot be provided with services, and the user experience is affected. SUMMARY
[0003] Embodiments of the present application provide a method for recovering a network and related devices, which can quickly recover the network when the wide area network side of the routing device is abnormal, resulting in the inability of the terminal to connect to the network, so as to improve the user experience.
[0004] In a first aspect, embodiments of the present application provide a method for recovering a network, applied to a routing device, which can include: receiving a first message sent by one or more terminal devices respectively, the first message including the capability information of the corresponding terminal device; identifying whether the capability information of each terminal device meets a target capability, the target capability including cellular capability and access point capability; determining a terminal device, whose capability information meets the target capability and which is successfully connected to the routing device, as a target terminal device; when the wide area network side of the routing device is abnormal in network connectivity, sending a second message to the target terminal device, the second message being used to instruct the target terminal device to start the target capability; and connecting the target terminal device if the target terminal device starts the target capability.
[0005] In the embodiments of the present application, when a routing device (for example, a router) and one or more terminal devices (for example, a mobile phone, a notebook computer, a smart speaker) establish a network connection, a first message carrying capability information of the corresponding terminal device is sent by the one or more terminal devices respectively, so as to determine whether each terminal device meets a target capability, wherein the target capability can include a cellular capability and an access point capability, and thus a terminal device meeting the target capability and successfully connecting with the routing device is determined as a target terminal device, so that in the case of sudden network disconnection due to network connectivity abnormality on the wide area network side of the routing device, information can be sent to the target terminal device in a targeted manner. Further, when network connectivity abnormality occurs on the wide area network side of the routing device, the routing device sends a second message to the target terminal device, and the second message is used to instruct the target terminal device to start the target capability. If the target terminal device starts the target capability, the routing device establishes a network connection with the target terminal device, so that the routing device can use the target capability of the target terminal device to restore the network of other terminal devices (for example, terminal devices without cellular capability and / or access point capability, or target terminal devices without starting the target capability) connected with the routing device, so that the user can normally use the services provided by the terminal device in the case of sudden network disconnection of the routing device, thereby improving the experience of the user.
[0006] In a possible implementation, the first message is one of a probe request, an authentication request, an association request, a dynamic host configuration protocol sent by the one or more terminal devices respectively before the one or more terminal devices successfully connect with the routing device, or is an operation frame sent by the one or more terminal devices respectively after the one or more terminal devices successfully connect with the routing device. Optionally, the probe request is used for a terminal device to probe a nearby available routing device, the authentication request is used for a routing device to authenticate or verify the identity of a terminal device, the association request is used for a terminal device to request to establish a network connection with a routing device, the dynamic host configuration protocol is used for a terminal device to obtain network configuration information distributed by a routing device, and the operation frame is used to indicate capability information of a terminal device.
[0007] The first message can be one of a probe request, an authentication request, an association request, a dynamic host configuration protocol respectively sent by the one or more terminal devices before the connection with the routing device is successful, or can be an operation frame respectively sent by the one or more terminal devices after the connection with the routing device is successful. Optionally, the probe request can be used for the terminal device to probe available routing devices nearby, the authentication request can be used for the routing device to authenticate or verify the identity of the terminal device, the association request can be used for the terminal device to request to establish a network connection with the routing device, the dynamic host configuration protocol can be used for the terminal device to obtain network configuration information distributed by the routing device, and the operation frame can be used to indicate the capability information of the terminal device. Therefore, one of the probe request, the authentication request, the association request, the dynamic host configuration protocol respectively sent by the one or more terminal devices before the connection with the routing device is successful, or the operation frame respectively sent by the one or more terminal devices after the connection with the routing device is successful, can be used as the first message carrying the capability information of the corresponding terminal device, so that the routing device can identify and determine whether the corresponding terminal device is the target terminal device.
[0008] In a possible implementation, the method further includes: based on the probe request, the authentication request, the association request, and the dynamic host configuration protocol, establishing a network connection between the routing device and the corresponding terminal device.
[0009] In an embodiment of the present application, based on the probe request, the authentication request, the association request, and the dynamic host configuration protocol respectively sent by the one or more terminal devices before the connection with the routing device is successful, the routing device can establish a network connection with the one or more terminal devices respectively by responding to the received probe request, authentication request, association request, and dynamic host configuration protocol.
[0010] In a possible implementation, the cellular capability is used to connect a cellular network, and the access point capability is used to create a wireless network access point.
[0011] In an embodiment of the present application, since the cellular capability is used to connect a cellular network, and the access point capability is used to create a wireless network access point, starting the target capability includes connecting a cellular network (for example, accessing the Internet through the cellular network) and creating a wireless network access point (for example, opening a hotspot).
[0012] In a possible implementation, the method further includes: recording a network address of the target terminal device, the network address including a media access control address and / or a network protocol address.
[0013] The embodiment of the present application can record the network address of the target terminal device, specifically, the network address can include a media access control address (for example, a MAC address) and / or a network protocol address (for example, an IP address). Through the embodiment of the present application, when network connectivity on the wide area network side of the routing device is abnormal, the second message can be sent to the target terminal device to instruct the target terminal device to start the target capability by recording the media access control address and / or the network protocol address of the target terminal device.
[0014] In a possible implementation, the method further includes: periodically detecting network connectivity on the wide area network side of the routing device; or detecting network connectivity on the wide area network side of the routing device when at least one terminal device successfully connected with the routing device has network abnormality.
[0015] After the routing device successfully establishes network connection with one or more terminal devices, the routing device can periodically detect network connectivity on the wide area network side of the routing device, for example, detection is triggered once every 1 minute, and the specific detection period can be changed according to the sensitivity of the routing device to network abnormality. When at least one terminal device successfully connected with the routing device has network abnormality, for example, service abnormality or cannot access the network, the routing device can also be triggered to detect network connectivity on the wide area network side, so as to detect whether network connectivity on the wide area network side of the routing device is abnormal in time, so as to notify the target terminal device to start the target capability as soon as possible to restore network communication.
[0016] In a possible implementation, the detection of network connectivity on the wide area network side of the routing device includes: detecting whether the routing device has downlink data transmission, if yes, it is determined that network connectivity on the wide area network side is normal; if not, a network probe request is sent to the wide area network side, the network probe request is used to request network connectivity test; if a response about the network probe request is received, it is determined that network connectivity on the wide area network side is normal; if no response about the network probe request is received, it is determined that network connectivity on the wide area network side is abnormal.
[0017] The embodiment of the present application can specifically include the following steps: detecting whether the routing device has downlink data transmission (i.e., whether there is data transmission between the routing device and the server on the wide area network side), and if yes, determining that the network connectivity of the wide area network side is normal; if not, sending a network detection request to the wide area network side, the network detection request being used to request network connectivity testing; for example, the routing device sends a network detection data packet (Ping packet) through a Ping command or sends an address resolution protocol packet (ARP packet) through an address resolution protocol (ARP), and requests the wide area network side inside the routing device to perform network connectivity testing. If the routing device receives a response to the network detection request, it is determined that the network connectivity of the wide area network side is normal; if no response to the network detection request is received, it is determined that the network connectivity of the wide area network side is abnormal. Through the embodiment of the present application, the routing device can detect whether the network connectivity of the wide area network side inside the routing device is abnormal, so as to restore network communication through the target terminal device starting the target capability.
[0018] In a possible implementation, the sending of the second message to the target terminal device comprises: when the number of target terminal devices is one, sending the second message to the target terminal device; and the connecting of the target terminal device comprises: accessing a wireless network access point created by the target terminal device.
[0019] When the routing device determines that the number of target terminal devices is one, the routing device sends a second message to the target terminal device, the second message being used to instruct the target terminal device to start the target capability. Further, if the target terminal device starts the target capability (for example, accesses the Internet through a cellular network and turns on a hotspot function), the routing device accesses a wireless network access point (for example, a hotspot) created by the target terminal device, thereby connecting the target terminal device to restore the network of the routing device, so that other terminal devices connected to the routing device (for example, terminal devices without cellular capability and / or access point capability, or terminal devices without starting the target capability) can also restore the Internet access capability for normal use by users, reducing the inconvenience caused to users by sudden disconnection, thereby improving the experience of users.
[0020] In a possible implementation, the sending of the second message to the target terminal device comprises: when the number of target terminal devices is one, sending the second message to the target terminal device; and the connecting of the target terminal device comprises: accessing a wireless network access point created by the target terminal device.
[0021] In the embodiment of the present application, when the routing device determines that the number of target terminal devices is more than one, the routing device sends a second message to the first target terminal device, the second message being used to instruct the target terminal device to start the target capability, the first target terminal device being the target terminal device closest to the routing device and / or having the best connection performance. Further, if the target terminal device starts the target capability (for example, accesses the Internet through the cellular network and opens the hotspot function), the routing device accesses the wireless network access point (for example, the hotspot) created by the first target terminal device, thereby connecting the first target terminal device to restore the network of the routing device, so that other terminal devices connected to the routing device (for example, terminal devices without cellular capability and / or access point capability, or target terminal devices without starting the target capability) can also restore the Internet access capability for normal use by the user, reducing the inconvenience caused to the user by the sudden disconnection of the network, thereby improving the experience of the user.
[0022] In the second aspect, the embodiment of the present application provides a method for restoring a network, applied to a terminal device, and the method can include: sending a first message to a routing device, the first message including capability information of the terminal device; if the capability information of the terminal device meets target capability and a preset condition is met, receiving a second message sent by the routing device; the second message being used to instruct the terminal device to start the target capability; the target capability including cellular capability and access point capability; and starting the target capability based on the second message.
[0023] In the embodiment of the present application, the terminal device can send a first message to the routing device, the first message including capability information of the terminal device, so that the routing device can identify whether the capability information of the terminal device meets the target capability based on the first message, thereby determining whether the terminal device can be determined as a target terminal device. If the capability information of the terminal device meets the target capability and a preset condition is met, the terminal device can receive a second message sent by the routing device, the second message being used to instruct the terminal device to start the target capability. Further, the second message can be used to instruct the terminal device to start the target capability. Based on the second message, the terminal device starts the target capability, so that the routing device can establish a network connection with the terminal device, thereby restoring the Internet access capability of the routing device by using the target capability of the target terminal device, and at the same time, other terminal devices connected to the routing device (for example, terminal devices without cellular capability and / or access point capability, or terminal devices without starting the target capability, etc.) can also restore the network, so that the terminal device can still provide services for the user normally in the case of sudden disconnection of the network of the routing device, thereby improving the experience of the user.
[0024] In a possible implementation, the first message is one of a probe request, an authentication request, an association request, a dynamic host configuration protocol, which is sent by the terminal device before the terminal device is successfully connected with the routing device, or is an operation frame, which is sent by the terminal device after the terminal device is successfully connected with the routing device.
[0025] In the embodiment of the application, the first message can be one of a probe request, an authentication request, an association request, a dynamic host configuration protocol, which is sent by the terminal device before the terminal device is successfully connected with the routing device, or can be an operation frame, which is sent by the terminal device after the terminal device is successfully connected with the routing device. Therefore, the first message can be one of the probe request, the authentication request, the association request, the dynamic host configuration protocol, which is sent by the terminal device before the terminal device is successfully connected with the routing device, or the operation frame, which is sent by the terminal device after the terminal device is successfully connected with the routing device, and the first message carries the capability information of the terminal device, so that the routing device can identify and determine whether the terminal device is the target terminal device.
[0026] In a possible implementation, the method further includes: establishing a network connection with the routing device based on a response of the routing device to the probe request, the authentication request, the association request, and the dynamic host configuration protocol.
[0027] In the embodiment of the application, after the terminal device sends the probe request, the authentication request, the association request, and the dynamic host configuration protocol to the routing device, the terminal device establishes a network connection with the routing device by receiving a response of the routing device to the probe request, the authentication request, the association request, and the dynamic host configuration protocol.
[0028] In a possible implementation, the preset condition includes: the terminal device is successfully connected with the routing device, and a network exception occurs on a wide area network side of the routing device.
[0029] In the embodiment of the application, because the preset condition can include that the terminal device is successfully connected with the routing device, and a network exception occurs on the wide area network side of the routing device, if the capability information of the terminal device meets the target capability, and the preset condition is met, that is, the terminal device is successfully connected with the routing device, and a network exception occurs on the wide area network side of the routing device, the terminal device receives a second message sent by the routing device, and the second message can be used to instruct the routing device to start the target capability.
[0030] In a possible implementation, the preset condition further includes: the terminal device is a terminal device closest to the routing device and / or having the best connection performance.
[0031] In the embodiments of the present application, the preset condition can further include that the terminal device is the terminal device closest to the routing device and / or the terminal device with the best connection performance. Therefore, if the capability information of the terminal device meets the target capability and the preset condition is met, that is, the terminal device is successfully connected with the routing device, and the wide area network side of the routing device has network anomaly, and at the same time, the terminal device is the terminal device closest to the routing device and / or the terminal device with the best connection performance, the terminal device receives the second message sent by the routing device. The second message can be used to instruct the routing device to start the target capability.
[0032] In a possible implementation, the cellular capability is used to connect a cellular network, and the access point capability is used to create a wireless network access point.
[0033] In the embodiments of the present application, the cellular capability is used to connect a cellular network, and the access point capability is used to create a wireless network access point. Therefore, starting the target capability includes connecting the cellular network (for example, surfing the Internet through the cellular network) and creating the wireless network access point (for example, opening the hotspot function).
[0034] In a third aspect, the embodiments of the present application provide a routing device, which can include:
[0035] A first receiving unit is configured to receive first messages respectively sent by one or more terminal devices. The first message includes capability information of the corresponding terminal device.
[0036] A recognition unit is configured to recognize whether the capability information of each terminal device meets a target capability. The target capability includes a cellular capability and an access point capability.
[0037] A determination unit is configured to determine a terminal device, whose capability information meets the target capability and is successfully connected, as a target terminal device.
[0038] A first sending unit is configured to send a second message to the target terminal device when the wide area network side of the routing device has network anomaly. The second message is used to instruct the target terminal device to start the target capability.
[0039] A first connecting unit is configured to connect the target terminal device if the target terminal device starts the target capability.
[0040] The embodiment of the present application receives one or more first messages respectively sent by terminal devices through a first receiving unit in a routing device, the first message can include the capability information of the corresponding terminal device; a recognition unit identifies whether the capability information of each terminal device meets the target capability based on the first message, the target capability includes cellular capability and access point capability; then a determination unit determines the terminal device with the capability information meeting the target capability and successfully connected as a target terminal device; when a network exception occurs on the wide area network side of the routing device, a first sending unit sends a second message to the target terminal device, the second message can be used to instruct the target terminal device to start the target capability; if the target terminal device starts the target capability, the routing device can connect the target terminal device through a first connecting unit, so that the routing device can use the target capability of the target terminal device to restore the online capability, and make other terminal devices (for example, terminal devices without cellular capability and / or access point capability, or target terminal devices without starting the target capability) connected with the routing device restore the network, so that the user can still normally use the services provided by the terminal device in the case of sudden disconnection of the routing device, thereby improving the experience of the user.
[0041] In a possible implementation, the first message is one of a probe request, an authentication request, an association request, a dynamic host configuration protocol respectively sent by the one or more terminal devices before the one or more terminal devices are successfully connected with the routing device, or is an operation frame respectively sent by the one or more terminal devices after the one or more terminal devices are successfully connected with the routing device.
[0042] In a possible implementation, the routing device further includes:
[0043] A second connecting unit is configured to establish a network connection between the routing device and the corresponding terminal device based on the probe request, the authentication request, the association request, and the dynamic host configuration protocol.
[0044] In a possible implementation, the cellular capability is used to connect a cellular network; the access point capability is used to create a wireless network access point; and the starting of the target capability includes connecting a cellular network and creating a wireless network access point.
[0045] In a possible implementation, the routing device further includes:
[0046] A recording unit is configured to record the network address of the target terminal device, the network address includes a media access control address and / or a network protocol address.
[0047] In a possible implementation, the routing device further includes:
[0048] The detection unit is configured to periodically detect network connectivity of a wide area network side of the routing device, or detect network connectivity of the wide area network side of the routing device when at least one terminal device connected to the routing device successfully appears network abnormity.
[0049] In a possible implementation, the detection unit is specifically configured to:
[0050] detect whether there is downlink data transmission of the routing device, and if yes, determine that the network connectivity of the wide area network side is normal;
[0051] if not, send a network probe request to the wide area network side, the network probe request being used to request network connectivity test;
[0052] if a response about the network probe request is received, determine that the network connectivity of the wide area network side is normal;
[0053] if no response about the network probe request is received, determine that the network connectivity of the wide area network side is abnormal.
[0054] In a possible implementation, the first sending unit is specifically configured to:
[0055] when the number of the target terminal devices is one, send the second message to the target terminal device;
[0056] The first connection unit is specifically configured to:
[0057] access a wireless network access point created by the target terminal device.
[0058] In a possible implementation, the first sending unit is specifically configured to:
[0059] when the number of the target terminal devices is more than one, send the second message to a first target terminal device, the first target terminal device being a target terminal device closest to the routing device and / or having best connection performance;
[0060] The first connection unit is specifically configured to:
[0061] access a wireless network access point created by the first target terminal device.
[0062] In a fourth aspect, an embodiment of the present application provides a terminal device, which can include:
[0063] a second sending unit configured to send a first message to a routing device, the first message including capability information of the terminal device;
[0064] The second receiving unit is configured to receive a second message sent by the routing device if the capability information of the terminal device meets the target capability and a preset condition is met, where the second message is used to instruct the terminal device to start the target capability, and the target capability includes a cellular capability and an access point capability.
[0065] The starting unit is configured to start the target capability based on the second message.
[0066] In the embodiments, the terminal device can send a first message to the routing device through a second sending unit, where the first message can include the capability information of the terminal device. If the capability information of the terminal device meets the target capability and a preset condition is met, the terminal device can receive a second message sent by the routing device through a second receiving unit, where the second message can be used to instruct the terminal device to start the target capability, and the target capability includes a cellular capability and an access point capability. Finally, the terminal device starts the target capability based on the received second message through a starting unit, so that the routing device can establish a network connection with the terminal device, thereby recovering the network access capability of the routing device by using the target capability of the terminal device, and other terminal devices (for example, terminal devices without a cellular capability and / or an access point capability, or terminal devices without starting the target capability, etc.) connected to the routing device can also recover the network, so that the terminal device can still provide normal services for users in the case of sudden network disconnection of the routing device, thereby improving the experience of the users.
[0067] In a possible implementation, the first message is one of a probe request, an authentication request, an association request, a dynamic host configuration protocol sent by the terminal device before the terminal device is successfully connected to the routing device, or an operation frame sent by the terminal device after the terminal device is successfully connected to the routing device.
[0068] In a possible implementation, the terminal device further includes:
[0069] The third connecting unit is configured to establish a network connection with the routing device based on a response of the routing device to the probe request, the authentication request, the association request, and the dynamic host configuration protocol.
[0070] In a possible implementation, the preset condition includes that the terminal device is successfully connected to the routing device, and a wide area network side of the routing device has a network anomaly.
[0071] In a possible implementation, the preset condition further includes that the terminal device is the terminal device closest to the routing device and / or the terminal device with the best connection performance.
[0072] In a possible implementation, the cellular capability is used to connect to a cellular network; the access point capability is used to create a wireless network access point; and the starting the target capability comprises connecting to the cellular network and creating the wireless network access point.
[0073] In a fifth aspect, an embodiment of the present application provides a routing device, which can include a memory and a processor, wherein the memory is configured to store a computer program, and the processor is configured to execute the computer program stored in the memory, so that the routing device executes the method in any one of the first aspect.
[0074] In a sixth aspect, an embodiment of the present application provides a terminal device, which can include a memory and a processor, wherein the memory is configured to store a computer program, and the processor is configured to execute the computer program stored in the memory, so that the terminal device executes the method in any one of the second aspect.
[0075] In a seventh aspect, an embodiment of the present application provides a computer readable storage medium, which stores a computer program, and the computer program is executed by the processor to implement the method in any one of the first aspect or the second aspect.
[0076] In an eighth aspect, an embodiment of the present application provides a computer program, which includes instructions, and the computer program is executed by a computing device to implement the method in any one of the first aspect or the second aspect. BRIEF DESCRIPTION OF DRAWINGS
[0077] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the background art, the drawings needed to be used in the embodiments of the present application or the background art will be described below.
[0078] Figure 1 is a flowchart of a network recovery process in the prior art.
[0079] Figure 2A is an example diagram of a network connection system structure provided by an embodiment of the present application.
[0080] Figure 2B is a schematic diagram of a hardware structure of a routing device provided by an embodiment of the present application.
[0081] Figure 2C is a schematic diagram of a hardware structure of a terminal device provided by an embodiment of the present application.
[0082] Figure 3A is a schematic diagram of an operation interface of a user using a mobile terminal device to recover a network provided by an embodiment of the present application.
[0083] Figure 3Bis another operation interface diagram of a network recovery method provided by an embodiment of the present application.
[0084] Figure 4 is a flow example diagram of a network recovery method provided by an embodiment of the present application.
[0085] Figure 5 is another flow example diagram of a network recovery method provided by an embodiment of the present application.
[0086] Figure 6 is a flow example diagram of a network recovery method of a network connection system provided by an embodiment of the present application.
[0087] Figure 7 is a structure diagram of a routing device provided by an embodiment of the present application.
[0088] Figure 8 is a structure diagram of a terminal device provided by an embodiment of the present application.
[0089] Figure 9 is another structure diagram of a routing device provided by an embodiment of the present application.
[0090] Figure 10 is another structure diagram of a terminal device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0091] The embodiments of the present application will be described below with reference to the drawings.
[0092] The terms used in the following embodiments of the present application are only for the purpose of describing particular embodiments and are not intended to be limiting of the embodiments of the present application. As used in the specification and the appended claims of the embodiments of the present application, the singular forms "a," "an" and "the" are intended to include both singular and plural forms, unless the context clearly indicates otherwise. It will be further understood that the terms "and / or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
[0093] The terms "first", "second", "third", and "fourth" and the like in the description and in the claims of the present application are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the terms "comprising", "including", "containing", and "having" and the like are meant not to be limiting. For example, a process, method, object, or apparatus that comprises a list of steps or elements is not necessarily limited to only those steps or elements but can include additional steps or elements not expressly listed or inherent to such process, method, object, or apparatus.
[0094] Reference to“an embodiment” herein means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase“in one embodiment” in various places in the specification are not necessarily referring to the same embodiment, nor are they necessarily mutually exclusive of one another. It is expressly understood that any of the embodiments described herein can be combined with any of the other embodiments unless specifically noted otherwise.
[0095] First, some terms in this application are explained and described to facilitate understanding by those skilled in the art.
[0096] (1) The core network (CN) is a network infrastructure that supports large-scale communication, which is the core part of the wide area network (WAN). As a key infrastructure for telecommunications operators, Internet service providers and other organizations, the core network provides high-capacity, high-reliability and flexible data transmission. It is usually composed of a series of high-performance routers, switches and other key network devices. The core network is responsible for processing data routing, forwarding and switching to deliver data between different network nodes.
[0097] (2) Internet of Things (IOT) devices refer to various physical devices, sensors or objects connected to the Internet of Things. Internet of Things devices can be various types of devices, including but not limited to smart home devices, health monitoring devices, sensors, etc. These devices have the ability to connect to the network and can communicate and exchange data with other devices through the Internet or other networks.
[0098] (3) Routing is the process and technology of transmitting data packets from the source address to the target address in computer networks, which refers to selecting and determining the path and forwarding mode of data packets from the source address to the target address in the network according to specific rules and algorithms, which provides a reliable and efficient data transmission method for packet switching networks.
[0099] (4) Router is a device responsible for performing routing functions. The router checks the target address information of the data packet and decides which interface of the network to forward the data packet to according to the pre-defined routing table or routing protocol in order to reach the target address.
[0100] (5) Wide Area Network port (WAN port) can also be called WAN port. WAN port is usually a port on the back or side of a router, with different interface types such as Ethernet port, Fiber port or Digital Subscriber Line (DSL) port, etc., depending on the model of the router and the way of network connection.
[0101] After connecting to the broadband network of the Internet Service Provider (ISP) through the WAN port, the router can forward the data packets in the internal network, Local Area Network (LAN), to the WAN port and send them to the external network through the routing function. At the same time, it can also receive data packets from the external network and forward them to the appropriate internal network devices.
[0102] When setting up a router, it is usually necessary to configure the connection method and parameters of the WAN port, such as Internet Protocol (IP) address, subnet mask, gateway, etc., so that the router can correctly connect to the network provided by the ISP.
[0103] (6) Optical Network Terminal (ONT) is a device used to access fiber broadband networks. The optical network terminal acts as a bridge between the fiber network and user terminal devices, converting fiber signals into network signals suitable for user devices.
[0104] (7) Backbone Network (BN) refers to high-speed transmission routes in a network that connect various subnets and larger-scale networks. Backbone networks are usually composed of large enterprises, Internet Service Providers (ISPs), telecommunications operators, etc. They establish backbone networks through high-speed connection methods such as fiber, satellite links, dedicated lines, etc., forming a network architecture that covers a wide area. It is a high-bandwidth, high-speed connection network backbone responsible for transmitting large amounts of data and connecting network nodes in different geographical locations. The backbone network is the foundation of building large-scale Internet, it carries most of the Internet traffic and provides high-speed and stable data transmission capabilities.
[0105] (8) Cellular Capability usually refers to the ability of mobile communication systems, especially cellular mobile communication systems. Having cellular capability usually means that a device or system has the ability to connect to a cellular mobile communication network. This means that the device can communicate with the base station in the cellular network through wireless signals and use the services and functions provided by the mobile communication network.
[0106] (9) Station (STA) refers to a client device or terminal device in a Wireless Local Area Network (WLAN). In a WLAN, devices can be divided into two categories: wireless terminals STA and Access Points (AP). Among them, STA refers to mobile devices or terminal devices connected to the WLAN, such as smartphones, laptops, tablets, etc. STA is the end user of the wireless network, and can access network resources, transmit and receive data, and communicate by establishing a connection with the AP. AP is the access point of the wireless local area network, responsible for providing wireless signal coverage and network connection. AP acts as a bridge between the local area network and wireless devices, accepting data from STA and forwarding it to wired networks or other wireless devices.
[0107] The connection established between STA and AP is usually implemented through Wi-Fi or other wireless technologies. STA selects a suitable AP for connection by scanning available networks, and performs identity verification and association process. Once the connection is successful, STA can exchange data with AP, access the Internet and other network services.
[0108] (10) Address Resolution Protocol (ARP) is a data packet used in network communication protocols, used to resolve and map the relationship between the physical address (Media Access Control address, MAC address) and IP address of network devices in a local area network. ARP packets are usually used for address conversion when communicating between hosts in an IP network. When a host needs to communicate with another host, it will check its ARP cache (or ARP table) before sending a data packet to determine the physical address of the target host. If the corresponding physical address is found in the cache, the data packet is sent directly to the device. However, if the physical address of the target device is not in the cache, the sender host will send an ARP request broadcast packet (ARP Request Packet) to all devices on the local area network. The target device receives the broadcast packet and sends an ARP response packet (ARP Reply Packet) back to the sender host, providing its own physical address. The sender host receives the response and binds the physical address of the target device with the IP address, and updates its ARP cache for future communication.
[0109] (11) Network probe packet, also known as Ping packet, is a kind of data packet used in basic tools for network testing and diagnosis. It is a specific type of data packet sent by Ping tool, used to test the connectivity between hosts and measure the Round-Trip Time (RTT). Ping packet usually uses Internet Control Message Protocol (ICMP) to send and receive data. It sends an ICMP Echo request message to the target host and waits for the target host to reply with an ICMP Echo response message. By sending and receiving these Ping packets, you can determine whether the target host is online, whether the network path is smooth, and measure the round-trip delay, etc.
[0110] (12) Dynamic Host Configuration Protocol (DHCP) is a network protocol used to automatically assign IP addresses and other network configuration information. DHCP allows devices in the network (called clients) to automatically obtain IP addresses, subnet masks, default gateways, DNS servers, and other network parameters when they connect to the network, without manually configuring these parameters. The main goal of DHCP is to simplify network management and improve the utilization of network resources.
[0111] (13) Media Access Control (MAC) address, also known as physical address, is a unique hardware address used to identify the identity of network devices (such as computers, routers, switches, network adapters, etc.) in a local area network (LAN). MAC address is hardware-fixed, usually assigned by the manufacturer when manufacturing, and basically unchanged throughout the life cycle of the device.
[0112] (14) Internet Protocol (IP) address is a logical address used to identify and locate devices in computer networks. It is part of the Internet Protocol (IP) and plays an important role in network communication. Among them, IP address is divided into two main types: public IP address and private IP address. Public IP address is unique in the global scope, used to access devices on the Internet; private IP address is an address used in local area networks (LAN) for internal communication, which cannot be directly accessed from the Internet. The selection and allocation of private IP address range are subject to relevant network specifications and standards.
[0113] (15) Service Set Identifier (SSID) is a name used to identify a wireless local area network (WLAN), which is an identifier used to distinguish different wireless networks. The role of SSID is to guide wireless devices to the correct wireless network. It is usually configured by the network administrator or router settings, and can be changed as needed. For security reasons, some WLANs can hide their SSID, which means that the wireless router does not actively broadcast the SSID, and the user needs to manually enter the SSID to connect.
[0114] (16) Access Point (AP) is a device in a wireless local area network (WLAN) that connects wireless devices (such as laptops, smartphones, tablets, etc.) to a wired local area network (LAN) or the Internet. AP acts as a bridge between wireless devices and wired networks, allowing wireless devices to access wired network resources through Wi-Fi connections.
[0115] (17) Wireless Local Area Network (WLAN) is a wireless communication technology that connects computers, mobile devices and other wireless devices to a local area network (LAN) or the Internet. WLAN transmits data through wireless signals instead of using traditional wired connections, based on wireless communication standards such as Wi-Fi, allowing devices to communicate within the wireless coverage range.
[0116] First, further analyze and propose the technical problems to be solved in this application.
[0117] Please refer to Figure 1 , Figure 1 is a flowchart of a network recovery process in the prior art. As shown in Figure 1 , network connections are established between the router 10 and the terminal devices STA11 and STA12, where the terminal device STA11 is a cellular-capable terminal device (such as a mobile phone), and the terminal device STA12 is a non-cellular-capable terminal device (such as a smart home appliance).
[0118] When the terminal device STA11 establishes a network connection with the router 10, it can include the following steps:
[0119] Step S101: The terminal device STA11 sends a probe request (Probe req) to the router 10; the router 10 receives the probe request sent by the terminal device STA11.
[0120] The probe request usually includes identification information of the corresponding terminal device, usually a MAC address, and other related parameters and identifiers, which can be used to probe nearby available wireless network access points.
[0121] Step S102: The router 10 sends a probe response (Probe rsp) to the terminal device STA11, and the terminal device STA11 receives the probe response sent by the router 10.
[0122] The probe response usually includes identification information of the wireless access point, a network name (SSID), security settings, supported encryption methods, transmission rates, and other network details, which can be used to respond to the probe request sent by the terminal device STA11 to provide corresponding wireless network information to the terminal device STA11.
[0123] Step S103: The terminal device STA11 sends an authentication request (Auth Req) to the router 10, and the router 10 receives the authentication request sent by the terminal device STA11.
[0124] The authentication request usually includes identity information of the device, supported authentication methods, and other related parameters, which can be used to authenticate or verify the identity of the terminal device STA11.
[0125] Step S104: The router 10 sends an authentication response (Auth Rsp) to the terminal device STA11, and the terminal device STA11 receives the authentication response sent by the router 10.
[0126] Specifically, the authentication response can include the authentication result of the router 10 for the terminal device STA11 and related information, which can be used to respond to the authentication request sent by the terminal device STA11; if the authentication request of the terminal device STA11 is accepted, the authentication response usually includes confirmation information of authentication success; otherwise, the authentication response sent to the terminal device STA11 will include corresponding rejection or error information to indicate the reason for authentication failure.
[0127] Step S105: The terminal device STA11 sends an association request (Assoc Req) to the router 10, and the router 10 receives the association request sent by the terminal device STA11.
[0128] The association request usually includes identity information of the terminal device STA11, such as a MAC address, and related information of the wireless network access point provided by the router 10, which can be used to request access to the wireless network access point provided by the router 10.
[0129] Step S106: The router 10 sends an association response (Assoc Rsp) to the terminal device STA11; and the terminal device STA11 receives the association response sent by the router 10.
[0130] Specifically, if the terminal device STA11 successfully connects with the router 10, the authentication response can include information of successful connection and some important network parameters, such as a static IP address allocated to the terminal device STA11, a subnet mask, a gateway address, etc., for responding to the association request sent by the terminal device STA11 and allowing the terminal device STA11 to access the wireless network access point provided by the router 10; otherwise, the authentication response usually includes information describing the reason of connection failure, so as to help the terminal device STA11 understand the reason of connection failure and take corresponding measures.
[0131] Step S107: The router 10 sends a first handshake message (MSG1) to the terminal device STA11; and the terminal device STA11 receives the first handshake message (MSG1) sent by the router 10.
[0132] Specifically, the router 10 can send the first handshake message (MSG1) to the terminal device STA11 in a broadcast manner, and the first handshake message (MSG1) can be an Extensible Authentication Protocol Over LAN (EAPOL) packet, which is used to transmit authentication information between a client (for example, the terminal device STA11) and an authentication server (for example, the router 10) to establish a secure network connection. The EAPOL packet can include an authenticator nonce (ANonce) generated by the authentication server (for example, the router 10), which is used for authentication and temporary key generation of the Wi-Fi network.
[0133] Step S108: In response to the first handshake message (MSG1) sent by the router 10, the terminal device STA11 sends a second handshake message (MSG2) to the router 10; and the terminal device STA11 receives the second handshake message (MSG2) sent by the router 10.
[0134] Specifically, after the terminal device STA11 receives the first handshake message (MSG1) sent by the router 10, the terminal device STA11 can generate a supplicant random number (SNonce) for filling an 802.1x message, combine an authenticator random number (ANonce) in the received first handshake message (MSG1), calculate a corresponding pairwise transient key (PTK) through a key derivation function, derive a key confirmation key (KCK), calculate a corresponding message integrity code (MIC) through the 802.1x message, and then send a second handshake message (MSG2) to the router 10. The second handshake message (MSG2) can be a second EAPOL message, which can include a single packet authorization (SPA) and a message integrity code (MIC value).
[0135] Step S109: In response to the second handshake message (MSG2) sent by the terminal device STA11, the router 10 sends a third handshake message (MSG3) to the terminal device STA11; and the terminal device STA11 receives the third handshake message (MSG3) sent by the router 10.
[0136] Specifically, after the router 10 receives the second handshake message (MSG2) sent by the terminal device STA11, the router 10 can calculate a corresponding PTK based on the SPA and MIC value therein through a key derivation function, derive a KCK, then calculate a corresponding MIC value, and compare the calculated MIC value with the MIC value in the received second handshake message (MSG2). If the two MIC values are inconsistent, the authentication process is directly ended; if the two MIC values are consistent, the router 10 sends a third handshake message (MSG3) to the terminal device STA11. The third handshake message (MSG3) can be a third EAPOL message, which can include a group master key (GMK), an authenticator random number (ANonce), a group temporal key (GTK) generated by authentication and association (AA), a group temporal key GTK encrypted by a key encryption key (KEK), and a calculated MIC value.
[0137] Step S110: In response to the third handshake message (MSG3) sent by the router 10, the terminal device STA11 sends a fourth handshake message (MSG4) to the router 10; the terminal device STA11 receives the fourth handshake message (MSG4) sent by the router 10.
[0138] Specifically, after the terminal device STA11 receives the third handshake message (MSG3) sent by the router 10, the MIC value is first calculated in the above manner, and compared with the MIC value in the received third handshake message (MSG3). If they are inconsistent, the handshake fails; if they are consistent, the terminal device STA11 derives a key encryption key KEK using a pairwise transient key (PTK), decrypts a group transient key GTK, then installs the obtained key (Transient Key, TK) into the system as a key for subsequent data encryption, and sends a fourth handshake message (MSG4) to the router 10. The fourth handshake message (MSG4) can be an acknowledgement (ACK) message, indicating that the key has been installed, and the ACK message can include the calculated MIC value.
[0139] Step S111: The terminal device STA11 and the router 10 perform a dynamic host configuration protocol (DHCP) process.
[0140] Specifically, when the terminal device STA11 connects to the router 10 for the first time, the terminal device STA11 can broadcast a DHCP discovery message to the DHCP server in the routing device to find an available DHCP server; the DHCP server in the routing device receives the DHCP discovery message and can respond with a DHCP offer message, which can include an available IP address and other configuration information. If there are multiple responses from DHCP servers, the terminal device STA11 will usually select one of the DHCP offer messages. Further, if the terminal device STA11 receives a DHCP offer message, it can send a DHCP request to the router 10 to confirm and request the allocated IP address and other configuration information; the DHCP server in the router 10 sends a DHCP acknowledgement message to the terminal device STA11 based on the terminal device's DHCP request, which can include the IP address and other configuration information requested by the terminal device STA11, so that the terminal device STA11 successfully obtains an IP address to maintain network communication connection with the routing device.
[0141] It should be noted that the steps S112-S122 of establishing a network connection between the terminal device STA12 and the router 10 are similar to the steps S101-S111 of establishing a network connection between the terminal device STA12 and the router 10, which are a normal access process between the terminal device and the router, and will not be described here. In addition, there is no explicit order between the steps of establishing a network connection between the terminal device STA11 and the terminal device STA12 and the router 10, that is, the steps S101-S111 can be executed synchronously with the steps S112-S122, or executed before or after the steps S112-S122, and the embodiments of the present application do not make specific limitations on this.
[0142] Step S123: The WAN port of the router 10 has a network exception.
[0143] Specifically, the WAN port of the router 10 has a network exception due to reasons such as arrears, abnormal optical modem, abnormal network cable, abnormal backbone network, etc., thereby causing the terminal devices STA11 and STA12 connected thereto to have a network exception.
[0144] Step S124A: The terminal device STA11 cannot access the network and waits for the router to recover or uses its own cellular capability to access the network.
[0145] Step S124B: The terminal device STA12 cannot access the network and waits for the router to recover.
[0146] Specifically, when the WAN port of the router has a network exception, the terminal devices STA11 and STA12 cannot access the network and can normally access the network after the router 10 recovers, but since the terminal device STA11 has cellular capability, the terminal device STA11 can also use its own cellular capability to access the network. The terminal device STA12 can only wait for the network of the router 10 to recover, thereby being unable to normally provide services for users and reducing the user experience. Therefore, when the network on the wide area network side of the routing device is abnormal and causes the terminal devices hung thereunder to be unable to connect to the network, how to quickly recover the network is a problem to be solved.
[0147] In summary, the technical problems actually solved by the present application include the following aspects: in view of the technical problem in the prior art that the network on the wide area network side of the routing device is abnormal and causes the terminal devices hung thereunder to be unable to connect to the network, thereby being unable to provide services for users and affecting the user experience, a network recovery scheme is provided, so that when the network on the wide area network side of the routing device is abnormal, the terminal devices hung thereunder can quickly recover the network to normally provide services for users and improve the user experience.
[0148] In order to facilitate understanding of the embodiments of the present application, the network connection system based on which the embodiments of the present application are described.
[0149] Please refer to Figure 2A , Figure 2A is an example of a network connection system structure provided by the embodiment of the present application, which mainly includes a routing device 20 (such as a router), terminal devices 21-23 (usually wireless terminal devices), an Internet, and a cellular network. Among the terminal devices 21-23, at least one terminal device connected to the routing device has both cellular capability and access point (AP) capability. The routing device can be connected to the Internet through a network cable, and data transmission between the routing device 20 and the terminal devices 21-23 can be wireless or through a network cable. The embodiment of the present application does not limit this.
[0150] For ease of illustration, Figure 2A The network connection system shown in the figure is composed of the routing device 20 and three terminal devices 21-23, among which the terminal device 22 has both cellular capability and access point capability, and the capabilities of the terminal device 21 and the terminal device 23 are not specifically limited. The port of the routing device 20 connected to the Internet is a wide area network port (WAN port), and the port of the routing device 20 connected to the terminal devices 21-23 is an empty port. It is easy to understand that the structure of the network connection system is only exemplary, and in other possible embodiments, the network connection system can also include more or fewer routing devices and terminal devices (at least one routing device and at least one terminal device having both cellular capability and access point capability), and accordingly, the number of WAN ports and empty ports will also change. Among them, the terminal device can be various types, such as a mobile phone, and can also include a tablet computer, a desktop computer, a desktop computer with a touch-sensitive surface or touch panel, a laptop, a handheld computer, a notebook computer, a smart screen, a wearable device (such as a smart watch, a smart bracelet, etc.), an augmented reality (AR) device, a virtual reality (VR) device, an artificial intelligence (AI) device, a car machine, a smart earphone, a game machine, and an internet of things (IOT) device or a smart home device such as a smart water heater, a smart lamp, a smart air conditioner, etc. The embodiment of the present application does not specifically limit this.
[0151] Exemplarily, the routing device 20 is generally a network device based on network addresses, which completes the packet storage and packet forwarding processing function between different networks. The routing device can identify the network address and place it in the internal address table, and establish a temporary switching path between the sending end and the receiving end of the data frame, so that the data frame reaches the destination address from the source address. The routing device 20 of the embodiment of the application can include a router, and can also include a routing device that plays a routing function. For example, a gateway, a switch, and a mobile device that opens a wireless hotspot function, at this time, the mobile device is the routing device 20.
[0152] Exemplarily, the terminal device 22 is a terminal device with both cellular capability and access point capability, such as a mobile phone and the like. The cellular capability is the capability of the device to use the mobile communication service provided by the cellular network. Further, the cellular network is a wireless communication network, which divides the entire geographical area into multiple small areas (cells), and each small area is covered by a base station (cell tower) to achieve wide-range signal coverage, so that the device with cellular capability can communicate with the base station through wireless signals and transmit data. The cellular network technology can include 2G / 3G / 4G / 5G communication technology, and the embodiment of the application does not make a specific limitation. In addition, the access point (AP) capability is that the device can provide a wireless network access point (Access Point, AP), so that other devices can connect to the network (such as the Internet or the cellular network) through the wireless network access point to realize network communication and data transmission.
[0153] Further, for the hardware structure of the routing device 20, please refer to Figure 2B , Figure 2B A hardware structure schematic diagram of a routing device provided by the embodiment of the application. The routing device 20 can include a processor 201, an internal memory 202, an external memory interface 203, a universal serial bus (universal serial bus, USB) interface 204, a charging management module 205, a power management module 206, a battery 207, a wireless communication module 208, and an antenna 209, and the like. It can be understood that the structure illustrated in the embodiment of the application does not constitute a specific limitation on the routing device 20. In other embodiments of the application, the routing device 20 can include more or fewer components than the diagram, or combine certain components, or split certain components, or different component arrangements. The illustrated components can be implemented in hardware, software, or a combination of software and hardware.
[0154] The processor 201 can include one or more processing units. For example, the processor 201 can include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units can be independent components or integrated in one or more processors. In some embodiments, the wireless routing device 20 can also include one or more processors. The processor can generate operation control signals according to instruction operation codes and timing signals, complete instruction acquisition and execution control according to the operation control signals.
[0155] Optionally, the processor 201 can include one or more interfaces. The interfaces can include an inter-integrated circuit (I2C) interface, an integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a SIM card interface, and / or a USB interface, etc. The USB interface 204 is an interface conforming to the USB standard specification, and can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 204 can be used to connect a charger to charge the wireless routing device 20, or to transmit data between the wireless routing device 20 and a peripheral device.
[0156] It can be understood that the interface connection relationship between the modules shown in the embodiments of the present application is only illustrative, and does not constitute a structural limitation on the wireless routing device 20. In other embodiments of the present application, the wireless routing device 20 can also use different interface connection methods or combinations of multiple interface connection methods in the above embodiments.
[0157] The internal memory 202 can be used to store one or more computer programs including instructions. The internal memory 202 can include, but is not limited to, Read Only Memory (ROM), Static Random Access Memory (SRAM), Synchronous Dynamic Random Access Memory (SDRAM), or Random Access Memory (RAM), etc. Further, the internal memory 202 can include a code storage area and a data storage area. The code storage area can store an operating system, and the data storage area can store data created during use of the routing device 20, etc. The processor 201 can cause the routing device 20 to perform the method for recovering a network provided in the embodiments of the present application, and other applications and data processing by running instructions stored in the memory 202 and / or instructions stored in a memory disposed in the processor 201.
[0158] The external memory interface 203 can be used to connect an external memory card, such as a Micro SD card, to extend the storage capacity of the routing device 20. The external memory card communicates with the processor 201 through the external memory interface 203 to implement data storage functions. For example, music, video, and other files can be saved in the external memory card.
[0159] The antenna 209 is used to transmit and receive wireless signals. The wireless communication function of the routing device 20 can be implemented through the antenna and the wireless communication module 208, etc.
[0160] The wireless communication module 208 can provide a wireless communication solution including Wi-Fi (including Wi-Fi Aware and Wi-Fi AP), Bluetooth (BT), wireless data transmission module (e.g., 433 MHz, 868 MHz, 915 MHz), etc. applied to the wireless routing device 20. The wireless communication module 208 can be one or more devices integrated with at least one communication processing module. The wireless communication module 208 receives electromagnetic waves via the antenna 209, filters and frequency-modulates the electromagnetic wave signals, and sends the processed signals to the processor 201. The wireless communication module 208 can also receive signals to be transmitted from the processor 201, frequency-modulate and amplify them, and radiate them as electromagnetic waves via the antenna.
[0161] In the embodiments of the present application, the routing device 20 can send a broadcast message through the wireless communication module, and the broadcast message can carry the device identifier or product identifier of the routing device 20, which is used for the surrounding mobile device to send a message to the routing device. The routing device 20 can also receive the message sent by the mobile device through the wireless communication module.
[0162] It can be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the routing device 20. In other embodiments of the present application, the routing device 20 can include more or fewer components than the illustration, or combine certain components, or split certain components, or different component arrangements. The illustrated components can be implemented in hardware, software, or a combination of software and hardware.
[0163] Further, regarding the hardware structure of the terminal device 22, please refer to Figure 2C , Figure 2C A hardware structure schematic diagram of a terminal device provided in the embodiments of the present application. The terminal device 22 can include a processor 2201, an internal memory 2202, an external memory interface 2203, a universal serial bus (USB) interface 2204, a charge management module 2205, a power management module 2206, a battery 2207, a mobile communication module 2208, a wireless communication module 2209, an antenna 1, an antenna 2, an audio module 2210, a loudspeaker 2210A, a receiver 2210B, a microphone 2210C, an earphone interface 2210D, a sensor module 2211, a key 2212, a motor 2213, an indicator 2214, a camera 2215, a display screen 2216, and a subscriber identification module (SIM) card interface 2217, etc. Among them, the sensor module 2211 can include a pressure sensor 2211A, a gyroscope sensor 2211B, a barometric pressure sensor 2211C, a magnetic sensor 2211D, an acceleration sensor 2211E, a distance sensor 2211F, a proximity light sensor 2211G, a fingerprint sensor 2211H, a temperature sensor 2211J, a touch sensor 2211K, an ambient light sensor 2211L, a bone conduction sensor 2211M, etc.
[0164] It can be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the terminal device 22. In other embodiments of the present application, the terminal device 22 can include more or fewer components than the illustration, or combine certain components, or split certain components, or different component arrangements. The illustrated components can be implemented in hardware, software, or a combination of software and hardware.
[0165] The processor 100 can include one or more processing units (also referred to as processing cores), for example, the processor 2201 can include one or more of a central processing unit (CPU), an application processor (AP), a modem processing unit, a graphics processing unit (GPU), an image signal processor (ISP), a video codec processor, a digital signal processor (DSP), a baseband processing unit, and a neural-network processing unit (NPU), etc. Different processing units can be independent devices or integrated in one or more devices. Optionally, the processor 2201 can also be provided with a memory for storing instructions and data. The processor 2201 can cause the terminal device 22 to perform the method for recovering a network provided in the embodiments of the present application, and other application and data processing by running the instructions stored in the internal memory 2202 and / or the instructions stored in the memory provided in the processor 2201.
[0166] The internal memory 2202 can be used to store one or more computer programs including instructions. The internal memory can include, but is not limited to, a read-only memory (ROM), a static random access memory (SRAM), a synchronous dynamic random access memory (SDRAM), or a random access memory (RAM), etc. Further, the internal memory 2202 can include a code storage area and a data storage area. The code storage area can store an operating system, for example. The data storage area can store data created by the terminal device 22 during use, etc. Optionally, the processor 2201 can also be provided with the internal memory 2202 for storing instructions and data. The processor 2201 can cause the terminal device 22 to perform the method for recovering a network provided in the embodiments of the present application, and other application and data processing by running the instructions stored in the internal memory 2202 and / or the instructions stored in the memory provided outside the processor 2201.
[0167] Antennas 1 and 2 are used to transmit and receive electromagnetic wave signals. Each antenna in terminal device 22 can be used to cover a single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of antennas. For example, antenna 1 can be multiplexed as a diversity antenna for wireless local area networks. In some other embodiments, antennas can also be used in combination with tuning switches.
[0168] Mobile communication module 2208 can provide solutions for wireless communication including 2G / 3G / 4G / 5G, etc. applied on terminal device 22. Mobile communication module 2208 can include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. Mobile communication module 2208 can receive electromagnetic waves by antenna 1, and perform filtering, amplification, etc. on the received electromagnetic waves, and transmit the processed signals to a modem processor for demodulation. Mobile communication module 2208 can also amplify signals modulated by the modem processor, and convert the signals into electromagnetic waves radiated by antenna 1. In some embodiments, at least part of the functional modules of mobile communication module 2208 can be arranged in processor 2201.
[0169] The modem processor can include a modulator and a demodulator. The modulator is used to modulate low-frequency baseband signals to be transmitted into medium-high frequency signals. The demodulator is used to demodulate received electromagnetic wave signals into low-frequency baseband signals. The demodulator then transmits the demodulated low-frequency baseband signals to a baseband processor for processing. After the low-frequency baseband signals are processed by the baseband processor, they are transmitted to an application processor. The application processor outputs sound signals through audio devices (not limited to loudspeakers 2210A and microphones 2210B, etc.), or displays images or videos through display screen 2216. In some embodiments, the modem processor can be a separate device. In some other embodiments, the modem processor can be independent of processor 2201, and arranged in the same device as mobile communication module 2208 or other functional modules.
[0170] The wireless communication module 2209 can provide solutions for wireless communication, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) technology, and the like, which are applied on the terminal device 22. The wireless communication module 2209 can be one or more devices integrated with at least one communication processing module. The wireless communication module 2209 receives electromagnetic waves via the antenna 2, frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 2201. The wireless communication module 2209 can also receive signals to be sent from the processor 2201, frequency-modulate them, amplify them, and convert them into electromagnetic wave radiation via the antenna 2.
[0171] In some embodiments, antenna 1 of terminal device 22 is coupled with mobile communication module 2208, and antenna 2 is coupled with wireless communication module 2209, so that mobile device 22 can communicate with network and other devices through wireless communication technology. The wireless communication technology can include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology, etc. The GNSS can include global positioning system (GPS), global navigation satellite system (GLONASS), beidou navigation satellite system (BDS), quasi-zenith satellite system (QZSS), and / or satellite based augmentation systems (SBAS).
[0172] Terminal device 22 can implement a photographing function through an ISP, a camera 2215, a video codec, a GPU, a display screen 2216, and an application processor, etc.
[0173] An external memory interface 2203 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of terminal device 22. The external memory card communicates with processor 2201 through external memory interface 2203 to implement a data storage function. For example, files such as music and videos are saved in the external memory card. Terminal device 22 can implement an audio function through an audio module 2210, a speaker 2210A, a receiver 2210B, a microphone 2210C, an earphone interface 2210D, and an application processor, etc. For example, music playing, voice recording, etc.
[0174] It can be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the terminal device 22. In other embodiments of the present application, the terminal device 22 can include more or fewer components than illustrated, or combine certain components, or split certain components, or different arrangement of components. The illustrated components can be implemented in hardware, software, or a combination of software and hardware.
[0175] The system structure of network connection is introduced above, and in combination with the network connection system described above Figure 2A , the operation interface diagram for a user to restore network using a mobile terminal device provided by the embodiments of the present application is introduced next.
[0176] Please refer to Figure 3A , Figure 3A for the operation interface diagram for a user to restore network using a mobile terminal device provided by the embodiments of the present application. The operation interface is some operation interface for the method for a user to restore network using a mobile terminal device, which can be the terminal device 22 in the network connection system as illustrated in Figure 2A , such as a mobile phone, or other terminal device that has both cellular capability (such as using cellular network to surf the Internet) and access point capability (such as providing a hotspot), and the embodiments of the present application do not limit this. When the mobile terminal device (such as the terminal device 22 as illustrated in Figure 2A ) is connected to the router (such as the routing device 20 in Figure 2A ) for the first time, in the user interface 31, the user clicks the setting button 301 to enter the user interface 32 of the system setting function, further clicks the wireless and network 302 to enter the WLAN function page 33, clicks the switch button 303 of the WLAN function to open the WLAN function, so that the Wi-Fi name provided by the nearby routing device is presented in the available WLAN list 304, and the user can select the Wi-Fi provided by the routing device (such as the routing device 20 in Figure 2A ) that can be connected, click the corresponding Wi-Fi name in the available WLAN list, that is, click TP-Link001305 in the WLAN list 304, thereby indirectly controlling the mobile terminal device to establish network connection with the router (such as the terminal device 22 and the routing device 20 as illustrated in Figure 2A ), and if the connection is successful, the navigation bar above the WLAN function page 33 displays the Wi-Fi icon 306 to indicate that the mobile terminal device is currently using Wi-Fi to surf the Internet. When the WAN side network connectivity of the router (such as the routing device 20 in Figure 2A ) is abnormal, causing the mobile terminal device (such as the terminal device 22 as illustrated in Figure 2AWi-Fi abnormal icon 307 appears in the top navigation bar of the user interface 34, and a prompt information 308 appears in the user interface 34, which is "current Wi-Fi is unavailable, confirm whether to switch to cellular data to continue to surf the Internet", to remind the user to turn on the cellular network to surf the Internet using the data traffic provided by the operator. If the user clicks the confirmation button 309 in the prompt information 308, the user interface 35 is entered, and the data traffic surfing icon 310 appears in the operator signal icon of the navigation bar of the user interface 35, to indicate that the mobile terminal device is surfing the Internet using data traffic, and the user interface 35 displays the prompt message 311 "the router network connected by the mobile terminal device is abnormal, confirm whether to automatically turn on the hotspot to restore the network of the router", if the user clicks the confirmation button 312 in the prompt message 311, the mobile terminal device is indirectly controlled (such as Figure 2A the terminal device 22 shown in FIG. 2) to turn on the hotspot, and the router (such as Figure 2A the routing device STA 22 shown in FIG. 2) restores the network by connecting the hotspot of the mobile terminal device. Figure 2A When the router (such as the routing device STA 22 shown in FIG. 2) successfully connects the hotspot of the mobile terminal device to restore the network surfing function, the user interface 36 is entered, the hotspot icon 313 appears in the top navigation bar of the user interface 36, indicating that the hotspot function of the mobile terminal device has been turned on; and the prompt information 314 "the router network has been restored" appears in the user interface 36 to remind the user that the router has connected the hotspot of the mobile terminal device and restored the network, so that the user can surf the Internet using the data traffic provided by the operator.
[0177] Figure 3B Please refer to Figure 3B , Figure 2A Another user interface schematic diagram provided by the embodiment of the application for the user to restore the network by using the mobile terminal device. The operation interface is another operation interface for the user to restore the network by using the method of the mobile terminal device, which can be the terminal device 22 in the network connection system as shown in Figure 2A FIG. 2, which is usually a mobile phone, and can also be other terminal devices that have both cellular capability (such as surfing the Internet using the cellular network) and access point capability (such as providing a hotspot), and the embodiment of the application does not limit this. When the mobile terminal device (such as Figure 2A the terminal device 22 shown in FIG. 2) is connected with the router (such as Figure 2AThe terminal device 22 shown establishes a network connection with the routing device 20. If the connection is successful, the user page 39 is entered, and the Wi-Fi icon 317 is displayed in the navigation bar above the user page 39, indicating that the mobile terminal device is currently using Wi-Fi to access the Internet. Figure 2A When the mobile terminal device (such as the terminal device 22 shown in Figure 2A ) suddenly loses network connection due to abnormal WAN-side network connectivity of the router (such as the routing device 20 in Figure 2A ), the Wi-Fi abnormality icon 307 appears in the navigation bar above the user interface 34, and the prompt information 308 “Current Wi-Fi is not available. Confirm whether to switch to cellular data to continue accessing the Internet” appears in the user interface 34 to remind the user to turn on the cellular network to access the Internet using the data traffic provided by the operator. If the user clicks the confirmation button 309 in the prompt information 308, the user interface 35 is entered, the data traffic access icon 310 appears in the navigation bar of the user interface, indicating that the mobile terminal device is currently using data traffic to access the Internet, and the prompt message 311 “The router network is abnormal. Confirm whether to automatically turn on the hotspot to restore the router network” appears in the user interface 35. If the user clicks the confirmation button 312 in the prompt message 311, the mobile terminal device (such as the terminal device 22 shown in Figure 2A ) is indirectly controlled to turn on the hotspot, allowing the router (such as the routing device STA 22 shown in Figure 2A ) to restore the network by connecting the hotspot of the mobile terminal device. Figure 3A When the router (such as the routing device STA 22 shown in Figure 3B ) successfully connects the hotspot of the mobile terminal device to restore network access, the user interface 36 is entered, the hotspot icon 313 appears in the navigation bar above the user interface 36, indicating that the hotspot function of the mobile terminal device is turned on, and the prompt information 314 “The router network has been restored” appears in the user interface 36 to remind the user that the router has connected the hotspot of the mobile terminal device and restored the network, so the user can access the Internet using the data traffic provided by the operator. It should be noted that the user interface diagrams shown in and
[0178] are exemplary displays of the embodiments of the present application, and the user interface diagrams in actual operation can also have other styles, which are not limited by the embodiments of the present application. Figure 2A Based on the system structure provided in Figure 3A and Figure 3B , and the operation interface provided in the present application, the technical problems proposed in the present application are analyzed and solved in detail.
[0179] The method for restoring the network provided in the embodiments of the present application is described with reference to Figure 4 ,Figure 4 This is a flowchart illustrating a method for restoring a network according to an embodiment of this application. This method can be applied to the above-mentioned... Figure 2A The network connection system and the above Figure 3A and Figure 3B The user interface mainly includes the methods and steps for interaction between the terminal device side and the routing device side. These methods may include:
[0180] Step S401: One or more terminal devices send a first message to the routing device respectively; the routing device receives the first message sent by one or more terminal devices respectively.
[0181] Specifically, the first message includes capability information of the corresponding terminal device. For example, suppose one or more terminal devices send a first message to a routing device. This first message can be sent to the routing device via broadcast (or other means). The first message may include capability information of the corresponding terminal device, which may be the manufacturer information of the terminal device. The identifier in this manufacturer information can indicate whether the terminal device has cellular capabilities and access point capabilities.
[0182] Optionally, the first message is one of the following: a probe request, an authentication request, an association request, or a dynamic host configuration protocol sent by the one or more terminal devices before successfully connecting with the routing device; or it is an operation frame sent by the one or more terminal devices after successfully connecting with the routing device. The descriptions of probe requests, authentication requests, association requests, and dynamic host configuration protocols in this application embodiment can be found in [reference needed]. Figure 1 The relevant steps are not detailed here. Additionally, the first message in this embodiment is related to... Figure 1 The difference between the probe request, authentication request, association request, and dynamic host configuration protocol is that, in this embodiment, the first message can be any one of the probe request, authentication request, association request, or dynamic host configuration protocol sent by the terminal device carrying the terminal device's capability information before the terminal device and the routing device establish a connection. If none of the probe request, authentication request, association request, or dynamic host configuration protocol carries the terminal device's capability information, an operation frame (e.g., an action frame) carrying the terminal device's capability information can be sent to the routing device after the terminal device and the routing device have established a network connection. This action frame serves as the first message, indicating whether the terminal device possesses cellular and access point capabilities, allowing the routing device to parse the operation frame and activate the cellular and access point capabilities based on its relevant parameters. The probe request, authentication request, association request, dynamic host configuration protocol, and / or operation frame can be broadcast from the terminal device to nearby routing devices, or other methods can be used; this embodiment does not specifically limit this method.
[0183] Step S402: The routing device identifies whether the capability information of each terminal device meets the target capability.
[0184] Specifically, the target capability includes cellular capability and access point capability. In some embodiments, the cellular capability is used for connecting a cellular network (e.g., surfing the Internet through the cellular network), and the access point capability is used for creating a wireless network access point (e.g., opening a hotspot). The routing device can identify whether the corresponding terminal device meets the target capability by identifying the first message sent by each terminal device, such as identifying the manufacturer information of the corresponding terminal device carried in the first message.
[0185] Further, since the cellular capability is used for connecting a cellular network, and the access point capability is used for creating a wireless network access point, and the target capability can include the cellular capability and the access point capability, identifying whether the capability information of each terminal device meets the target capability, that is, identifying whether each terminal device can connect to a cellular network (e.g., surf the Internet through the cellular network) and has the capability of creating a wireless network access point (e.g., hotspot function) at the same time, can enable other devices to achieve network communication and data transmission through the wireless network access point created by the terminal device.
[0186] Step S403: The routing device determines the terminal device that meets the target capability and successfully connects to the routing device as a target terminal device.
[0187] Specifically, after one or more terminal devices successfully establish network connection with the routing device, the routing device determines the terminal device that meets the target capability, that is, the terminal device that can connect to a cellular network and can create a wireless network access point, as a target terminal device based on the first information sent by the one or more terminal devices, so that in the case that the routing device suddenly disconnects due to network connectivity abnormality on the wide area network side of the routing device, the routing device can send information to the target terminal device in a targeted manner.
[0188] Step S404: When network connectivity abnormality occurs on the wide area network side of the routing device, the routing device sends a second message to the target terminal device; and the target terminal device receives the second message sent by the routing device.
[0189] Specifically, the second message is used to instruct the target terminal device to start the target capability, and the target capability includes a cellular capability and an access point capability. In some embodiments, in the case that a terminal device connected to a routing device suddenly loses network connection due to network connectivity abnormality on the wide area network side of the routing device, the routing device sends a second message, for example, an action frame, to the target terminal device determined above by broadcasting or other means, to instruct the target terminal device to start the target capability. In addition, the routing device can also send network security information such as a service set identifier (SSID), a password, and an encryption method to the target terminal device through the second message, so that the routing device can establish network connection with the target terminal device. The present application does not make specific limitations on this.
[0190] Optionally, in a possible implementation, when the routing device determines that there is only one target terminal device, the routing device sends a second message (for example, an action frame) to the target terminal device to instruct the target terminal device to start the target capability. The target terminal device can start the target capability according to related parameters (for example, network security information such as an SSID, a password, and an encryption method) of the second message by parsing the action frame, for example, by connecting to the cellular network and opening a hotspot function, so as to allow the routing device to connect to recover the network.
[0191] In another possible implementation, when the routing device determines that there are multiple target terminal devices, the routing device sends a second message (for example, an action frame) to a first target terminal device to instruct the target terminal device to start the target capability. The first target terminal device is the target terminal device closest to the routing device and / or the target terminal device with the best connection performance. The first target terminal device can start the target capability according to related parameters (for example, network security information such as an SSID, a password, and an encryption method) of the second message by parsing the second message (for example, the action frame), for example, by connecting to the cellular network and opening a hotspot function, so as to allow the routing device to connect to recover the network.
[0192] Step S405: The target terminal device starts the target capability based on the second message.
[0193] Specifically, the target terminal device starts the target capability according to the second message sent by the routing device. For example, when the second message is an action frame, the target terminal device starts the target capability according to the network security information such as the service set identifier (SSID), the password, and the encryption mode by analyzing the second message (e.g., the action frame). For example, the target terminal device starts the target capability by connecting to the cellular network and opening the hotspot function, thereby allowing the routing device to connect to the target terminal device to restore the network. Accordingly, in one possible implementation, when the routing device determines that there is only one target terminal device, the target terminal device starts the target capability (e.g., by connecting to the cellular network and opening the hotspot function); in another possible implementation, when the routing device determines that there are multiple target terminal devices, the first target terminal device closest to the routing device and / or having the best connection performance starts the target capability (e.g., by connecting to the cellular network and opening the hotspot function), thereby allowing the routing device to connect to the target terminal device to restore the network.
[0194] Step S406: If the target terminal device starts the target capability, the routing device connects to the target terminal device.
[0195] Specifically, after the target terminal device starts the target capability, i.e., connects to the cellular network and creates a wireless network access point (e.g., by connecting to the cellular network and opening the hotspot function), the routing device can establish a network connection with the target terminal device by accessing the wireless network access point (e.g., the hotspot), thereby using the target capability of the target terminal device to restore the network for other terminal devices connected to the routing device (e.g., terminal devices without cellular capability and / or access point capability, or target terminal devices without the target capability), so that the user can normally use the services provided by the terminal devices in the case of sudden network disconnection of the routing device, thereby improving the user experience.
[0196] Optionally, in one possible implementation, when the routing device determines that there is only one target terminal device, if the target terminal device starts the target capability (e.g., by connecting to the cellular network and opening the hotspot function), the routing device accesses the wireless network access point (e.g., the hotspot) created by the target terminal device, thereby connecting to the target terminal device to restore the network of the routing device, so that other terminal devices connected to the routing device (e.g., terminal devices without cellular capability and / or access point capability, or terminal devices without the target capability) can also restore the network access capability for normal use by the user, reducing the inconvenience caused to the user by the sudden network disconnection, thereby improving the user experience.
[0197] In another possible implementation, when the routing device determines that the number of target terminal devices is more than one, the routing device sends a second message (for example, an action frame) to a first target terminal device to instruct the target terminal device to start the target capability, where the first target terminal device is the target terminal device closest to the routing device and / or the target terminal device with the best connection performance. Further, if the target terminal device starts the target capability (for example, accesses the Internet through the cellular network and opens the hotspot function), the routing device connects the first target terminal device by accessing a wireless network access point (for example, a hotspot) created by the first target terminal device, thereby restoring the network of the routing device, so that other terminal devices connected to the routing device (for example, terminal devices without cellular capability and / or access point capability, or target terminal devices without starting the target capability) can also restore the Internet access capability for normal use by users, reducing the inconvenience caused by sudden disconnection of the Internet, thereby improving the experience of users.
[0198] Please refer to Figure 5 , Figure 5 A flowchart example diagram of another method for restoring the network provided by the embodiments of the present application is shown. The method can also be applied to the network connection system described above Figure 2A and the operation interface of Figure 3A and Figure 3B , and mainly includes the method steps of interaction between the terminal device side and the routing device side. The method includes but is not limited to the following steps:
[0199] Step S501: One or more terminal devices send a first message to a routing device; the routing device receives the first message sent by the one or more terminal devices respectively.
[0200] The first message includes the capability information of the corresponding terminal device. For specific description of the routing device sending the first message, please refer to the related description of step S401 of the method described above Figure 4 , which will not be repeated here.
[0201] Step S502: The routing device identifies whether the capability information of each terminal device meets the target capability.
[0202] The target capability includes cellular capability and access point capability. For specific description of the cellular capability and the access point capability, and the identification of the capability information of the terminal device by the routing device, please refer to the related description of step S402 of the method described above Figure 4 , which will not be repeated here.
[0203] Step S503: The routing device determines a terminal device with the capability information meeting the target capability and successfully connected to the routing device as a target terminal device.
[0204] In particular, the description of how the routing device determines the target terminal device can refer to the above description Figure 4 The description of step S403 in the method is not repeated here.
[0205] Step S504: The routing device records the network address of the target terminal device.
[0206] In particular, the network address includes a media access control address and / or a network protocol address, and the routing device records the network address of the target terminal device based on the determined target terminal device. For example, the routing device can record the media access control address (e.g. MAC address) and / or the network protocol address (e.g. IP address) of the target terminal device, so that when the network connectivity on the wide area network side of the routing device is abnormal, the second message (e.g. action frame) can be sent to the target terminal device through the network address to instruct the target terminal device to start the target capability.
[0207] Step S505: The routing device periodically detects the network connectivity on the wide area network side of the routing device; or when at least one terminal device connected successfully with the routing device has network anomaly, the routing device detects the network connectivity on the wide area network side of the routing device.
[0208] In particular, the routing device can periodically detect the network connectivity on the wide area network side of the routing device, for example, detection is triggered once every 1 minute, and the specific detection period can be changed according to the sensitivity of the routing device to network anomalies; or when at least one terminal device connected successfully with the routing device has network anomaly, such as service anomaly or inability to access the network, the routing device can also be triggered to detect the network connectivity on the wide area network side, so as to detect whether the network connectivity on the wide area network side of the routing device is abnormal in time, so as to inform the target terminal device to start the target capability as soon as possible to restore the network communication of the terminal device.
[0209] Further, in a possible implementation, the routing device can detect whether there is downlink data transmission (i.e., whether there is data transmission between the routing device and the server on the wide area network side), and if yes, it is determined that the network connectivity on the wide area network side (WAN port) is normal; if not, a network probe request is sent to the wide area network side, which is used to request network connectivity test; for example, the routing device sends a network probe data packet (Ping packet) through a Ping command, or sends an address resolution protocol packet (ARP packet) through an address resolution protocol (ARP), and requests network connectivity test on the wide area network side inside the routing device. If the routing device receives a response to the network probe request, it is determined that the network connectivity on the wide area network side is normal; if no response to the network probe request is received, it is determined that the network connectivity on the wide area network side is abnormal. Alternatively, when the routing device detects whether the network connectivity on the wide area network side inside it is normal, it can also detect the network connectivity on the wireless interface side (air interface) at the same time. For example, the routing device can detect whether there is data generation from one or more terminal devices connected to it; if yes, it is determined that the network connectivity on the wireless interface side of the routing device is normal; if not, a null data packet is sent; if the routing device receives a response to the null data packet, it is determined that the network connectivity on the wireless interface side (air interface) of the routing device is normal; or, if no response to the null data packet is received, it is determined that the network connectivity on the wireless interface side (air interface) of the routing device is abnormal, and the air interface network connectivity abnormality can be indicated by turning on an indicator light, etc. Through the embodiments of the present application, the routing device can detect whether the network connectivity on the wide area network side (WAN port) inside it is abnormal, so as to restore network communication by starting the target capability through the target terminal device.
[0210] Step S506: When the network connectivity on the wide area network side of the routing device is abnormal, the routing device sends a second message to the target terminal device through the network address, and the second message is used to instruct the target terminal device to start the target capability; the target terminal device receives the second message sent by the routing device.
[0211] Specifically, when the routing device detects that the network connectivity on the wide area network side is abnormal, the routing device can send a second message to the target terminal device through the recorded network address of the target terminal device, the second message being used to instruct the target terminal device to start the target capability. In some embodiments, in the case that the terminal device connected to the routing device is suddenly disconnected due to the network connectivity abnormality on the wide area network side of the routing device, the routing device can send the second message to the target terminal device through the recorded network address of the target terminal device, the network address including a media access control address (such as a MAC address) and / or a network protocol address (such as an IP address). Exemplarily, the second message can be an action frame, which is sent to the target terminal device through broadcasting or other manners, and is used to instruct the target terminal device to start the target capability. In addition, the routing device can also send its service set identifier (SSID), password, and encryption mode and other network security information to the target terminal device through the second message, so that the routing device can establish a network connection with the target terminal device. The embodiments of the present application do not make specific limitations on this.
[0212] In a possible implementation, when the routing device determines that there is only one target terminal device, the routing device can determine the forwarding path of the routing device according to the recorded network address (such as a MAC address and / or an IP address) of the target terminal, and then send a second message (such as an action frame) to the target terminal device, the second message being used to instruct the target terminal device to start the target capability. The second message is usually sent through broadcasting (or other manners, which are not limited in the embodiments of the present application), so that the target terminal device can receive the second message. Exemplarily, the target terminal device can start the target capability by analyzing the second message (such as the action frame) and according to the related parameters (such as the network security information including the SSID, password, and encryption mode), for example, by surfing the Internet through the cellular network and opening the hotspot function to allow the routing device to connect to recover the network.
[0213] In another possible implementation, when the routing device determines that there are multiple target terminal devices, the routing device can determine a forwarding path of the routing device according to a network address (for example, a MAC address and / or an IP address) of a first target terminal device recorded in the routing device, and then send a second message (for example, an action frame) indicating that the target terminal device starts the target capability to the first target terminal device, so as to enable the target terminal device. Generally, the routing device sends the second message (for example, the action frame) to the target terminal device by broadcasting (or by other manners, which are not limited in the embodiments of the present application), and the first target terminal device starts the target capability by receiving the second message, for example, by analyzing the action frame and starting the target capability according to network security information (for example, a service set identifier (SSID), a password, and an encryption manner) in the action frame, for example, by connecting to the cellular network and opening a hotspot function, so as to enable the routing device to connect to the target terminal device to recover the network.
[0214] Step S507: The target terminal device starts the target capability based on the second message.
[0215] Specifically, the target terminal device starts the target capability according to the second message sent by the routing device, and the description of the target capability can be referred to the above description. Figure 4 The description of step S405 in the method is not repeated here.
[0216] Step S508: If the target terminal device starts the target capability, the routing device connects to the target terminal device.
[0217] Specifically, the description of the routing device connecting to the target terminal device when the target terminal device starts the target capability can be referred to the above description. Figure 4 The description of step S406 in the method is not repeated here.
[0218] In a possible implementation, the description of step S406 in the method can be referred to the above description. Figure 6 , Figure 6A flowchart of an example of a network recovery method of a network connection system is provided in the embodiments of the present application. The network connection system is composed of a router 60 and two terminal devices STA61 and STA62, wherein the terminal device STA61 is a terminal device (e.g. a mobile phone) with both cellular capability and access point capability, and the terminal device STA62 is a terminal device (e.g. a smart home appliance) without cellular capability and / or without access point capability. It can be understood that the embodiments of the present application are only a specific implementation of the network recovery method of the network connection system, and do not constitute a specific limitation on the network connection system and / or the network recovery method. In other embodiments of the present application, the network connection system can include more or fewer components than the embodiments of the present application, or combine certain components, or split certain components, or different component arrangements; the network recovery method can include but is not limited to the following steps.
[0219] First, when the terminal device STA61 establishes a network connection with the router 60, the following steps can be included:
[0220] Step S601: The terminal device STA61 sends a probe request (Probe req) to the router 60; the router 60 receives the probe request sent by the terminal device STA61.
[0221] Specifically, the probe request can include the capability information of the terminal device STA61, indicating whether the terminal device STA61 has cellular capability and access point capability. For example, the probe request can carry the vendor information of the terminal device STA61, so that the router 60 can identify whether the terminal device STA61 has cellular capability and access point capability through the identifier in the vendor information. In addition, the probe request can also include the identification information of the terminal device STA61, usually the MAC address, and other related parameters and identifiers, which can be used to probe the available wireless network access points nearby.
[0222] Step S602: The router 60 sends a probe response (Probe rsp) to the terminal device STA61; the terminal device STA61 receives the probe response sent by the router 60.
[0223] Step S603: The terminal device STA61 sends an authentication request (Auth Req) to the router 60; the router 60 receives the authentication request sent by the terminal device STA61.
[0224] Step S604: The router 60 sends an authentication response (Auth Rsp) to the terminal device STA61; the terminal device STA61 receives the authentication response sent by the router 60.
[0225] Step S605: The terminal device STA 61 sends an association request (Assoc Req) to the router 60; the router 60 receives the association request sent by the terminal device STA 61.
[0226] Step S606: The router 60 sends an association response (Assoc Rsp) to the terminal device STA 61; the terminal device STA 61 receives the association response sent by the router 11.
[0227] Step S607: The terminal device STA 61 sends a first handshake message (MSG1) to the router 60; the terminal device STA 61 receives the first handshake message (MSG1) sent by the router 60.
[0228] Step S608: In response to the first handshake message (MSG1) sent by the router 60, the terminal device STA 61 sends a second handshake message (MSG2) to the router 60; the terminal device STA 61 receives the second handshake message (MSG2) sent by the router 60.
[0229] Step S609: In response to the second handshake message (MSG2) sent by the terminal device STA 61, the router 60 sends a third handshake message (MSG3) to the terminal device STA 61; the terminal device STA 61 receives the third handshake message (MSG3) sent by the router 60.
[0230] Step S610: In response to the third handshake message (MSG3) sent by the router 60, the terminal device STA 61 sends a fourth handshake message (MSG4) to the router 60; the terminal device STA 61 receives the fourth handshake message (MSG4) sent by the router 60.
[0231] Step S611: A dynamic host configuration protocol (DHCP) process is performed between the terminal device STA 61 and the router 60.
[0232] Step S612: Whether the terminal device STA 61 has cellular capability and access point capability is identified.
[0233] Step S613: If the terminal device STA 61 has cellular capability and access point capability, the terminal device STA 61 is determined as the target terminal device.
[0234] Optionally, the router 60 can record the network address of the target terminal device STA 61. Specifically, the network address includes a media access control address and / or a network protocol address, for example, a MAC address and / or an IP address. The recording of the network address of the target terminal device STA 61 by the router 60 can be referred to the description of step S504 in the above Figure 5 .
[0235] It should be noted that the embodiment of the present application is the specific steps of establishing network connection between the terminal device STA61 and the router 60 when the probe request carries the capability information of the terminal device STA61. In other possible embodiments, the capability information of the terminal device STA61 can also be carried in one of the authentication request, the association request and the dynamic host configuration protocol (DHCP) sent by the terminal device STA61, and the embodiment of the present application will not be described herein. The specific description of steps S602-S611 in the embodiment of the present application (including other normal access processes except the probe request, such as the authentication request, the association request, the four-handshake process, the DHCP process, etc.) can be referred to the related description of steps S102-S111 as Figure 1 indicated above; and the specific description of steps S612-S613 can be referred to the related description of steps S502-S503 as Figure 5 indicated above. In addition, in the embodiment of the present application, the above steps S601-S613 are the normal access process between the terminal device STA61 and the router 60, and accordingly, the specific steps S614-S626 of establishing network connection between the terminal device STA62 and the router 60 are similar to the steps S601-S613 of establishing network connection between the terminal device STA61 and the router 60, and can be referred to the related description of steps S601-S613 as above, which will not be described herein. In addition, there is no explicit order between the steps of establishing network connection between the terminal device STA61 and the terminal device STA62 and the router 60, that is, the steps S601-S613 can be executed synchronously with the steps S614-S626, or can be executed before or after the steps S614-S626, and the embodiment of the present application does not make a specific limitation thereon.
[0236] Further, when the terminal device STA61 and the terminal device STA62 respectively complete the establishment of network connection with the router 60, the router 60 detects the WAN port thereof to confirm whether the network is correctly connected, in step S627.
[0237] Specifically, the router 60 can periodically detect the network connectivity of the WAN port thereof; or when at least one terminal device connected with the router successfully appears network anomaly, the router can also trigger the network connectivity detection of the WAN port, so as to timely detect whether the WAN port of the router 60 appears network connectivity anomaly, so as to notify the target terminal device (the terminal device STA61) to start the target capability as soon as possible to restore the network communication of the terminal device STA62. The specific method of detecting the network connectivity of the WAN port of the router 60 can be referred to the related description of step S505 as above, which will not be described herein. Figure 5
[0238] Step S628A: If the router 60 detects WAN port abnormality, the router 60 sends an action frame to the target terminal device, for notifying the terminal device STA61 to start emergency hotspot.
[0239] Step S628B: If the router 60 detects WAN port abnormality, the terminal device STA62 cannot access the network, and waits for the router 60 to recover. If the network of the router 60 recovers, it directly goes to step S632.
[0240] Specifically, since the terminal device STA61 is determined as the target terminal device, when the router 60 detects WAN port network connectivity abnormality inside, it can send an action frame to the target terminal device (terminal device STA61), which can include network security information such as service set identifier (SSID), password, and encryption method, for instructing the target terminal device STA61 to access the network through the cellular network and start hotspot capability. Since the terminal device STA62 does not have cellular capability and / or does not have access point capability, when the router 60 detects WAN port network connectivity abnormality inside and cannot access the network, it can only wait for the router 60 to recover. It can be understood that step S628A and step S628B occur almost simultaneously after the router 60 sends WAN port network connectivity abnormality, and there is no sequence between the two.
[0241] Step S629: The target terminal device (terminal device STA61) parses the action frame, and according to the relevant parameters, accesses the network through the cellular network and starts hotspot capability to provide a wireless network access point (AP) for the router 60.
[0242] Specifically, the target terminal device (terminal device STA61) can parse the action frame, and according to the relevant parameters, start its cellular network capability to access the network and open hotspot function to provide a wireless network access point (AP) for the router 60.
[0243] Step S630: The router 60 accesses the wireless network access point (AP) provided by the target terminal device (terminal device STA61).
[0244] Specifically, the router 60 accesses the wireless network access point (AP) to establish network connection with the terminal device STA61, so as to recover the network access capability of the router 60.
[0245] Step S631: The router 60 recovers the network access capability through the terminal device STA61.
[0246] Specifically, the router 60 recovers the network access capability by connecting the hotspot of the terminal device STA61.
[0247] Step S632: the terminal device STA62 restores the online ability, and is unaware of the whole restoration process.
[0248] Specifically, since the router 60 restores the online ability, the online ability of the terminal device STA62 connected with the router 60 is also restored, and the wireless network access point (AP) of the connected router 60 does not change, and the terminal device STA62 is unaware of the whole restoration process, thereby in the case that the network exception on the wide area network side of the routing device causes sudden disconnection, the network of the terminal device is quickly restored to continue to provide services for the user, and the user experience is improved.
[0249] The above describes the method of the embodiment of the application in detail, and the device provided by the embodiment of the application is introduced below.
[0250] Please refer to Figure 7 , Figure 7 is a structural schematic diagram of a routing device provided by the embodiment of the application. The routing device 700 can include a first receiving unit 701, an identifying unit 702, a determining unit 703, a first sending unit 704, and a first connecting unit 705, and the detailed description of each unit is as follows.
[0251] The first receiving unit 701 is configured to receive a first message respectively sent by one or more terminal devices; the first message includes the capability information of the corresponding terminal device.
[0252] The identifying unit 702 is configured to identify whether the capability information of each terminal device meets a target capability, and the target capability includes a cellular capability and an access point capability.
[0253] The determining unit 703 is configured to determine a terminal device, whose capability information meets the target capability and is successfully connected, as a target terminal device.
[0254] The first sending unit 704 is configured to send a second message to the target terminal device when a network exception occurs on the wide area network side of the routing device, and the second message is used to instruct the target terminal device to start the target capability.
[0255] The first connecting unit 705 is configured to connect the target terminal device if the target terminal device starts the target capability.
[0256] The embodiment of the present application receives one or more first messages respectively sent by terminal devices through a first receiving unit 701 in a routing device, the first message can include the capability information of the corresponding terminal device; a recognition unit 702 identifies whether the capability information of each terminal device meets the target capability based on the first message, the target capability includes cellular capability and access point capability; then a determination unit 703 determines the terminal device whose capability information meets the target capability and successfully connects as the target terminal device; when the wide area network side of the routing device appears network exception, a first sending unit 704 sends a second message to the target terminal device, the second message can be used to instruct the target terminal device to start the target capability; if the target terminal device starts the target capability, the routing device can connect the target terminal device through a first connection unit 705, so that the routing device can use the target capability of the target terminal device to restore the online capability, and make other terminal devices connected with the routing device (for example, terminal devices without cellular capability and / or access point capability, or target terminal devices without starting the target capability) restore the network, so that the user can still use the services provided by the terminal device normally in the case of sudden disconnection of the routing device, thereby improving the experience of the user.
[0257] In a possible implementation, the first message is one of a probe request, an authentication request, an association request, a dynamic host configuration protocol respectively sent by the one or more terminal devices before the one or more terminal devices successfully connect with the routing device, or is an operation frame respectively sent by the one or more terminal devices after the one or more terminal devices successfully connect with the routing device.
[0258] In a possible implementation, the routing device further includes:
[0259] A second connection unit is configured to establish a network connection between the routing device and the corresponding terminal device based on the probe request, the authentication request, the association request, and the dynamic host configuration protocol.
[0260] In a possible implementation, the cellular capability is used to connect a cellular network; the access point capability is used to create a wireless network access point; and the starting the target capability includes connecting a cellular network and creating a wireless network access point.
[0261] In a possible implementation, the routing device further includes:
[0262] A recording unit is configured to record the network address of the target terminal device, the network address includes a media access control address and / or a network protocol address.
[0263] In a possible implementation, the routing device further includes:
[0264] detecting network connectivity of a wide area network side of the routing device periodically; or detecting network connectivity of the wide area network side of the routing device when at least one terminal device connected with the routing device successfully appears network abnormality.
[0265] In a possible implementation, the detecting unit is specifically configured to:
[0266] detect whether there is downlink data transmission of the routing device, and if yes, determine that the network connectivity of the wide area network side is normal;
[0267] if not, send a network probe request to the wide area network side, the network probe request being used for requesting network connectivity test;
[0268] if a response about the network probe request is received, determine that the network connectivity of the wide area network side is normal;
[0269] if the response about the network probe request is not received, determine that the network connectivity of the wide area network side is abnormal.
[0270] In a possible implementation, the first sending unit 704 is specifically configured to:
[0271] when the number of the target terminal devices is one, send the second message to the target terminal device;
[0272] the first connecting unit 705 is specifically configured to:
[0273] access a wireless network access point created by the target terminal device.
[0274] In a possible implementation, the first sending unit 704 is specifically configured to:
[0275] when the number of the target terminal devices is multiple, send the second message to a first target terminal device, the first target terminal device being a target terminal device closest to the routing device and / or having the best connection performance;
[0276] the first connecting unit 705 is specifically configured to:
[0277] access a wireless network access point created by the first target terminal device.
[0278] It should be noted that the functions of the various units in the routing device 700 described in the embodiments of the present application can refer to the above Figure 4 the method and Figure 5 the related description of the method, which will not be repeated here.
[0279] Please refer toFigure 8 , Figure 8 is a structural schematic diagram of a terminal device provided by an embodiment of the present application. The terminal device 800 can include a second sending unit 801, a second receiving unit 802, and a starting unit 803, and detailed descriptions of the units are as follows.
[0280] The second sending unit 801 is configured to send a first message to a routing device; the first message includes capability information of the terminal device.
[0281] The second receiving unit 802 is configured to receive a second message sent by the routing device if the capability information of the terminal device meets target capability and a preset condition is met; the second message is used to instruct the terminal device to start the target capability; the target capability includes cellular capability and access point capability.
[0282] The starting unit 803 is configured to start the target capability based on the second message.
[0283] In the embodiment of the present application, the terminal device can send a first message to a routing device through the second sending unit 801, and the first message can include capability information of the terminal device; if the capability information of the terminal device meets target capability and a preset condition is met, the terminal device can receive a second message sent by the routing device through the second receiving unit 802, and the second message can be used to instruct the terminal device to start the target capability, wherein the target capability includes cellular capability and access point capability; finally, the terminal device starts the target capability based on the received second message through the starting unit 803, so that the routing device can establish a network connection with the terminal device, thereby recovering the network access capability of the routing device by using the target capability of the terminal device, and other terminal devices connected to the routing device (for example, terminal devices without cellular capability and / or access point capability, or terminal devices without starting the target capability, etc.) can also recover the network, so that the terminal device can still provide services for users normally in the case of sudden network disconnection of the routing device, thereby improving the experience of users.
[0284] In a possible implementation, the first message is one of a probe request, an authentication request, an association request, and a dynamic host configuration protocol sent by the terminal device before the terminal device is successfully connected with the routing device, or is an operation frame sent by the terminal device after the terminal device is successfully connected with the routing device.
[0285] In a possible implementation, the terminal device further includes:
[0286] The third connecting unit is configured to establish a network connection with the routing device based on responses of the routing device to the probe request, the authentication request, the association request and the dynamic host configuration protocol.
[0287] In a possible implementation, the preset condition comprises that the terminal device successfully connects with the routing device, and a network anomaly occurs on a wide area network side of the routing device.
[0288] In a possible implementation, the preset condition further comprises that the terminal device is a terminal device closest to the routing device and / or having the best connection performance.
[0289] In a possible implementation, the cellular capability is used to connect a cellular network, the access point capability is used to create a wireless network access point, and the starting the target capability comprises connecting the cellular network and creating the wireless network access point.
[0290] It should be noted that the functions of each unit in the terminal device 800 described in the embodiments of the present application can refer to the above Figure 4 the method embodiments and Figure 5 the related descriptions of the method embodiments, which will not be repeated here.
[0291] Please refer to Figure 9 , Figure 9 is another structural diagram of a routing device provided by the embodiments of the present application. In an example, the routing device 900 comprises at least one processor 901 and a memory 902. The processor 901 is coupled with the memory 902. The coupling in the embodiments of the present application can be a communication connection, can be electrical, or other forms. Specifically, the memory 902 is configured to store program instructions. The processor 901 is configured to invoke the program instructions stored in the memory 902, so that the routing device 900 performs the steps performed by the routing device 900 in the method for recovering a network provided by the embodiments of the present application. The related step descriptions can refer to the above, and will not be repeated here.
[0292] It should be noted that the routing device 900 provided by the embodiments of the present application can comprise more or fewer components than those shown in the diagram, or combine certain components, or split certain components, or different arrangement of components. The components shown in the diagram can be implemented in hardware, software or any combination of software and hardware.
[0293] Please refer to Figure 10 , Figure 10 is another structural diagram of a terminal device provided by the embodiments of the present application. As Figure 10As shown, the terminal device 1000 includes at least one processor 1001 and a memory 1002. The processor 1001 is coupled with the memory 1002, and the coupling in the embodiment of the present application can be a communication connection, can be electrical, or other forms. Specifically, the memory 1002 is configured to store program instructions. The processor 1001 is configured to invoke the program instructions stored in the memory 1002, so that the terminal device 1000 performs the steps performed by the terminal device 1000 in the method for recovering the network provided by the embodiment of the present application. The description of the related steps can be referred to the above, and will not be described here.
[0294] It should be noted that the terminal device provided in the embodiment of the present application can include more or fewer components than the illustration, or combine certain components, or split certain components, or different component arrangements. The components illustrated can be implemented in hardware, software, or any combination of software and hardware.
[0295] The embodiment of the present application provides a computer readable storage medium, which stores a computer program. The computer program is executed by the processor of the above-mentioned routing device to implement the steps performed by the routing device in the method for recovering the network provided by the above-mentioned embodiment of the present application; or the computer program is executed by the processor of the above-mentioned terminal device to implement the steps performed by the terminal device in the method for recovering the network provided by the above-mentioned embodiment of the present application.
[0296] The embodiment of the present application provides a computer program, which includes instructions. The computer program is executed by the processor of the above-mentioned routing device to implement the steps performed by the routing device in the method for recovering the network provided by the above-mentioned embodiment of the present application; or the computer program is executed by the processor of the above-mentioned terminal device to implement the steps performed by the terminal device in the method for recovering the network provided by the above-mentioned embodiment of the present application.
[0297] In the above embodiments, the description of each embodiment has its own emphasis, and the parts not described in detail in a certain embodiment can be referred to the related description of other embodiments.
[0298] It should be noted that, for the aforementioned method embodiments, the purposes of simple description, they are all expressed as a series of action combinations, but those skilled in the art should know that the present application is not limited to the action sequence described, because according to the present application, certain steps can be performed in other sequences or simultaneously, or certain steps can be omitted, a plurality of steps can be combined into one step, and / or one step can be divided into a plurality of steps. Secondly, those skilled in the art should know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application. It should be noted that the features and functions of two or more devices according to the present disclosure can be embodied in one device. Conversely, the features and functions of one device described above can be further divided into devices.
[0299] In the above embodiments, all or part can be realized by software, hardware, firmware or any combination thereof. When realized by software, all or part can be realized in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the present application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer readable storage medium or transferred from one computer readable storage medium to another, for example, the computer instructions can be transferred from one website, computer, server or data center to another website, computer, server or data center through wired (such as coaxial cable, optical fiber, digital subscriber line) or wireless (such as infrared, wireless, microwave, etc.) mode. The computer readable storage medium can be any available medium that a computer can access or a data storage device such as a server, data center, etc. that includes one or more available media sets. The available media can be magnetic media (for example, floppy disk, hard disk, magnetic tape), optical media (for example, DVD), or semiconductor media (for example, solid state disk (SSD)) and the like.
[0300] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiments can be instructed by a computer program to complete the relevant hardware, which can be stored in a computer readable storage medium. The program can include the processes of the above-mentioned method embodiments when executed. The aforementioned storage medium includes ROM or random storage memory RAM, magnetic disk or optical disk and various program code storage media.
[0301] In conclusion, the above-mentioned is only the embodiment of the technical scheme of the present application, and is not used to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made according to the disclosure of the present application shall be included in the protection scope of the present application.
Claims
1. A method of recovering a network, characterized by, The method is applied to a routing device, and comprises the following steps: receiving first messages respectively sent by one or more terminal devices, wherein the first messages comprise capability information of the corresponding terminal devices; identifying whether the capability information of each terminal device meets a target capability, wherein the target capability comprises a cellular capability and an access point capability; determining a terminal device, whose capability information meets the target capability and successfully connects with the routing device, as a target terminal device; recording a network address of the target terminal device, wherein the network address comprises a media access control address and / or a network protocol address; when network connectivity of a wide area network side of the routing device is abnormal, sending a second message to the target terminal device, wherein the second message is used to instruct the target terminal device to start the target capability; the starting of the target capability comprises surfing the Internet through a cellular network and opening a hotspot function, so as to allow the routing device to connect to recover the network; if the target terminal device starts the target capability, connecting the target terminal device.
2. The method of claim 1, wherein, The first message is one of a probe request, an authentication request, an association request and a dynamic host configuration protocol respectively sent by the one or more terminal devices before successfully connecting with the routing device, or is an operation frame respectively sent by the one or more terminal devices after successfully connecting with the routing device.
3. The method of claim 2, wherein, The method further comprises the following steps: based on the probe request, the authentication request, the association request and the dynamic host configuration protocol, establishing a network connection between the routing device and the corresponding terminal device.
4. The method according to any one of claims 1 to 3, characterized in that, The cellular capability is used to connect a cellular network; and the access point capability is used to create a wireless network access point.
5. The method according to any one of claims 1 to 4, characterized in that, The method further comprises the following steps: periodically detecting network connectivity of the wide area network side of the routing device; or detecting network connectivity of the wide area network side of the routing device when at least one terminal device successfully connected with the routing device has network abnormality.
6. The method of claim 5, wherein, The detection of the network connectivity of the wide area network side of the routing device comprises the following steps: detecting whether there is downlink data transmission of the routing device, if yes, determining that the network connectivity of the wide area network side is normal; if not, sending a network probe request to the wide area network side, wherein the network probe request is used to request network connectivity test; if a response about the network probe request is received, determining that the network connectivity of the wide area network side is normal; if no response about the network probe request is received, determining that the network connectivity of the wide area network side is abnormal.
7. The method according to any one of claims 1 to 6, characterized in that, The sending of the second message to the target terminal device comprises the following steps: when the number of the target terminal devices is one, sending the second message to the target terminal device; The connection of the target terminal device comprises the following steps: accessing a wireless network access point created by the target terminal device.
8. The method according to any one of claims 1 to 6, characterized in that, The sending of the second message to the target terminal device comprises the following steps: when the number of the target terminal devices is multiple, sending the second message to a first target terminal device, wherein the first target terminal device is a target terminal device closest to the routing device and / or having the best connection performance; The connection of the target terminal device comprises the following steps: accessing a wireless network access point created by the first target terminal device.
9. A method of recovering a network, characterized by, The method is applied to a terminal device, and the method comprises: sending a first message to a routing device, the first message comprising capability information of the terminal device; wherein the first message is used for the routing device to identify whether the capability information of the terminal device meets a target capability, and to determine, from one or more terminal devices, a terminal device whose capability information meets the target capability and successfully connects with the routing device as a target terminal device, and to record a network address of the target terminal device, the network address comprising a media access control address and / or a network protocol address; if the capability information of the terminal device meets the target capability and in a case where a preset condition is met, receiving a second message sent by the routing device; the second message is used for instructing the terminal device to start a target capability; the target capability comprises a cellular capability and an access point capability; based on the second message, starting the target capability; the starting of the target capability comprises surfing the Internet through a cellular network and opening a hotspot function, thereby allowing the routing device to connect to recover a network.
10. The method of claim 9, wherein, The first message is one of a probe request, an authentication request, an association request, and a dynamic host configuration protocol sent by the terminal device before the terminal device successfully connects with the routing device, or is an operation frame sent by the terminal device after the terminal device successfully connects with the routing device.
11. The method of claim 10, wherein, The method further comprises: based on a response of the routing device to the probe request, the authentication request, the association request, and the dynamic host configuration protocol, establishing a network connection with the routing device.
12. The method according to any one of claims 9-11, characterized in that, The preset condition comprises that the terminal device successfully connects with the routing device, and that a wide area network side of the routing device appears a network exception.
13. The method according to any one of claims 9-12, characterized in that, The preset condition further comprises that the terminal device is a terminal device closest to the routing device and / or having the best connection performance.
14. The method according to any one of claims 9 to 13, characterized in that, The cellular capability is used for connecting a cellular network; and the access point capability is used for creating a wireless network access point.
15. A routing device, characterized by comprises: a receiving unit, configured to receive a first message sent by one or more terminal devices respectively; the first message comprising capability information of a corresponding terminal device; an identifying unit, configured to identify whether the capability information of each terminal device meets a target capability, the target capability comprising a cellular capability and an access point capability; a determining unit, configured to determine, from the one or more terminal devices, a terminal device whose capability information meets the target capability and successfully connects as a target terminal device; record a network address of the target terminal device, the network address comprising a media access control address and / or a network protocol address; a sending unit, configured to, when a wide area network side of the routing device appears a network exception, send a second message to the target terminal device; the second message is used for instructing the target terminal device to start the target capability; the starting of the target capability comprises surfing the Internet through a cellular network and opening a hotspot function, thereby allowing the routing device to connect to recover a network; a connecting unit, configured to, if the target terminal device starts the target capability, connect the target terminal device.
16. A terminal device, comprising: comprises: a sending unit configured to send a first message to a routing device; the first message comprises capability information of the terminal device; wherein the first message is used for the routing device to identify whether the capability information of the terminal device meets a target capability, and to determine a terminal device, from one or more terminal devices, whose capability information meets the target capability and successfully connects with the routing device as a target terminal device, and to record a network address of the target terminal device, the network address comprising a media access control address and / or a network protocol address; a receiving unit configured to receive a second message sent by the routing device if the capability information of the terminal device meets the target capability and in a case where a preset condition is met; the second message is used to instruct the terminal device to start a target capability; the target capability comprises a cellular capability and an access point capability; a starting unit configured to start the target capability based on the second message; the starting of the target capability comprises surfing the Internet through a cellular network and opening a hotspot function, thereby allowing the routing device to connect to recover the network.
17. A routing device, characterized by The routing device comprises a memory and a processor, wherein the memory is configured to store a computer program, and the processor is configured to execute the computer program stored in the memory, so that the routing device executes the method of any one of claims 1-8.
18. A terminal device, comprising: The device comprises a memory and a processor, wherein the memory is configured to store a computer program, and the processor is configured to execute the computer program stored in the memory, so that the terminal device executes the method of any one of claims 9-14.
19. A computer storable medium, characterized by The computer readable storage medium stores a computer program, and the computer program is executed by the processor to implement the method of any one of claims 1-8, or to implement the method of any one of claims 9-14.
20. A computer program, characterized in that, The computer program comprises instructions, and the computer program is executed by the computing device to implement the method of any one of claims 1-8, or to implement the method of any one of claims 9-14.
Citation Information
Patent Citations
Enhanced network reliability and / or boosted network speed
US20230171620A1