CN119865839A - Method for recovering network and related equipment - Google Patents
Method for recovering network and related equipment Download PDFInfo
- Publication number
- CN119865839A CN119865839A CN202311330146.8A CN202311330146A CN119865839A CN 119865839 A CN119865839 A CN 119865839A CN 202311330146 A CN202311330146 A CN 202311330146A CN 119865839 A CN119865839 A CN 119865839A
- Authority
- CN
- China
- Prior art keywords
- network
- terminal device
- target
- capability
- routing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/04—Arrangements for maintaining operational condition
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/22—Processing or transfer of terminal data, e.g. status or physical capabilities
- H04W8/24—Transfer of terminal data
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The application discloses a network restoration method and related equipment, which are applied to routing equipment, wherein the network restoration method comprises the steps of receiving first messages sent by one or more terminal equipment respectively, wherein the first messages comprise capability information of corresponding terminal equipment, identifying whether the capability information of each terminal equipment meets target capability or not, the target capability comprises cellular capability and access point capability, determining the terminal equipment which meets the target capability and is successfully connected with the routing equipment as target terminal equipment, sending second messages to the target terminal equipment when network connectivity abnormality occurs on a wide area network side of the routing equipment, wherein the second messages are used for indicating the target terminal equipment to start the target capability, and connecting the target terminal equipment if the target terminal equipment starts the target capability. By adopting the embodiment of the application, the network can be quickly restored so as to improve the user experience.
Description
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method for recovering a network and related devices.
Background
With the popularization of communication technology, terminal devices such as mobile phones, smart home, etc. need to connect to a network to support various services of users. However, due to network abnormality of the routing device, for example, network abnormality of a wide area network (Wide Area Network, WAN) side network abnormality of the routing device caused by user arrears, uplink light cat abnormality, network line abnormality or cell backbone network abnormality, connectivity between the routing device and a core network is abnormal, so that devices in a user home, for example, internet of things devices such as an intelligent home, cannot be connected with the network, thereby being incapable of providing services for the user and affecting user experience.
Disclosure of Invention
The embodiment of the application provides a network recovery method and related equipment, which can quickly recover a network to improve user experience when a terminal can not be connected with the network suddenly due to network abnormality on a wide area network side of routing equipment.
In a first aspect, an embodiment of the present application provides a method for recovering a network, which is applied to a routing device, where the method may include receiving a first message sent by one or more terminal devices, where the first message includes capability information of a corresponding terminal device, identifying whether capability information of each terminal device meets a target capability, where the target capability includes a cellular capability and an access point capability, determining that capability information in the one or more terminal devices meets the target capability and a terminal device that is successfully connected to the routing device is a target terminal device, when a network connectivity abnormality occurs on a wide area network side of the routing device, sending a second message to the target terminal device, where the second message is used to instruct the target terminal device to start the target capability, and if the target terminal device starts the target capability, connecting the target terminal device.
In the embodiment of the application, when the routing equipment (such as a router) and one or more terminal equipment (such as a mobile phone, a notebook computer and a smart sound box) establish network connection, the first message which is respectively sent by the one or more terminal equipment and carries the capability information of the corresponding terminal equipment is identified to judge whether each terminal equipment meets the target capability, wherein the target capability can comprise the cellular capability and the access point capability, so that the terminal equipment which meets the target capability and is successfully connected with the routing equipment is determined as the target terminal equipment, and the information can be sent to the target terminal equipment in a targeted manner under the condition of sudden network disconnection caused by network connectivity abnormality of the wide area network side of the routing equipment. Further, when the wide area network side of the routing device has abnormal network connectivity, the routing device sends a second message to the target terminal device, wherein the second message is used for indicating the target terminal device to start the target capability. If the target terminal device starts the target capability, the routing device establishes network connection with the target terminal device, so that the routing device can use the target capability of the target terminal device to enable other terminal devices connected with the routing device (such as terminal devices without cellular capability and/or access point capability or target terminal devices without target capability starting) to recover the network, so that the user can normally use the service provided by the terminal device under the condition that the routing device suddenly breaks the network, and experience of the user is improved.
In a possible implementation manner, the first message is one of a probe request, an authentication request, an association request, and a dynamic host configuration protocol, which are respectively sent before the one or more terminal devices are successfully connected to the routing device, or is an operation frame which is respectively sent after the one or more terminal devices are successfully connected to the routing device. Optionally, the probe request is used for the terminal equipment to probe available routing equipment nearby, the authentication request is used for the routing equipment to perform identity verification or authentication on the terminal equipment, the association request is used for the terminal equipment to request to establish network connection with the routing equipment, the dynamic host configuration protocol is used for the terminal equipment to acquire network configuration information distributed by the routing equipment, and the operation frame is used for indicating capability information of the terminal equipment.
In the embodiment of the present application, the first message may be one of a probe request, an authentication request, an association request, and a dynamic host configuration protocol, which are respectively sent before one or more terminal devices are successfully connected to the routing device, or may be an operation frame which is respectively sent after one or more terminal devices are successfully connected to the routing device. Optionally, the probe request may be used for the terminal device to probe available routing devices nearby, the authentication request may be used for the routing device to perform identity verification or authentication on the terminal device, the association request may be used for the terminal device to request to establish a network connection with the routing device, the dynamic host configuration protocol may be used for the terminal device to obtain network configuration information allocated by the routing device, and the operation frame may be used for indicating capability information of the terminal device. Therefore, one of a probe request, an authentication request, an association request, and a dynamic host configuration protocol, which are respectively sent before the connection between one or more terminal devices and the routing device is successful, or an operation frame, which is respectively sent after the connection between one or more terminal devices and 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.
In one possible implementation, the method further comprises establishing 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.
Based on the probe request, the authentication request, the association request and the dynamic host configuration protocol which are respectively sent before one or more terminal devices and the routing device are successfully connected, the routing device can respectively establish network connection with one or more terminal devices by responding to the received probe request, authentication request, association request and dynamic host configuration protocol.
In one possible implementation, the cellular capability is used to connect to a cellular network and the access point capability is used to create a wireless network access point.
In embodiments of the present application, because cellular capabilities are used to connect to the cellular network and access point capabilities are used to create wireless network access points, initiating target capabilities includes connecting to the cellular network (e.g., surfing the internet through the cellular network) and creating wireless network access points (e.g., turning on a hotspot).
In a possible implementation, the method further comprises recording a network address of the target terminal device, the network address comprising a media access control address and/or a network protocol address.
In the embodiment of the application, when the routing device determines that the capability information in one or more terminal devices meets the target capability and the terminal device successfully connected with the routing device is the target terminal device, the network address of the target terminal device can be recorded, and specifically, the network address can include a media access control address (such as a MAC address) and/or a network protocol address (such as an IP address). According to the embodiment of the application, the media access control address and/or the network protocol address of the target terminal equipment can be recorded, and when the network connectivity abnormality occurs on the wide area network side of the routing equipment, the second message is sent to the target terminal equipment so as to instruct the target terminal equipment to start the target capability.
In one possible implementation manner, the method further comprises 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.
In the embodiment of the application, after the routing equipment and one or more terminal equipment are successfully connected, the routing equipment can periodically detect the network connectivity of the wide area network side of the routing equipment, for example, the detection is triggered once in 1 minute, the specific detection period can correspondingly change along with the sensitivity degree of the routing equipment to network abnormality, or when at least one terminal equipment which is successfully connected with the routing equipment has network abnormality, for example, business abnormality or can not access the internet, the routing equipment can be triggered to detect the network connectivity of the wide area network side, so that whether the network connectivity abnormality of the wide area network side of the routing equipment occurs or not can be detected in time, and the target terminal equipment can be informed of starting target capacity as soon as possible to recover network communication.
In one possible implementation manner, the detecting the network connectivity of the wide area network side of the routing device includes detecting whether the routing device has downlink data transmission, if so, 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 for requesting 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, and if not, determining that the network connectivity of the wide area network side is abnormal.
In the embodiment of the application, how the routing device performs network connectivity detection on the wide area network side specifically includes detecting whether the routing device has downlink data transmission (i.e. whether there is data transmission with a server on the wide area network side), if yes, determining that the network connectivity on the wide area network side is normal, if not, sending a network detection request to the wide area network side, where the network detection request is used for requesting to perform network connectivity test, and, for example, sending a network detection data packet (Ping packet) by the routing device through a Ping command, or sending an address resolution protocol packet (ARP packet) by an address resolution protocol (Address Resolution Protocol, ARP), and requesting to perform network connectivity test to the wide area network side inside the routing device. If the routing equipment receives the response about the network detection request, the network connectivity of the wide area network side is determined to be normal, and if the routing equipment does not receive the response about the network detection request, the network connectivity of the wide area network side is determined to be abnormal. By the embodiment of the application, the routing equipment can detect whether the network connectivity of the wide area network side in the routing equipment is abnormal or not so as to recover network communication in a mode of starting the target capability through the target terminal equipment.
In one possible implementation manner, the sending the second message to the target terminal device includes sending the second message to the target terminal device when the number of the target terminal devices is 1, and the connecting the target terminal device includes accessing a wireless network access point created by the target terminal device.
In the embodiment of the application, when the number of the target terminal devices determined by the routing device is single, the routing device sends the second message for indicating the target terminal device to start the target capability to the target terminal device, and further, if the target terminal device starts the target capability (for example, surfing the internet through a cellular network and opening a hot spot function), the routing device connects the target terminal device through accessing a wireless network access point (for example, a hot spot) created by the target terminal device, so that the network of the routing device is restored, and other terminal devices connected with the routing device (for example, the terminal devices without cellular capability and/or access point capability or the terminal devices without starting the target capability) can also restore the internet capability for normal use of users, so that inconvenience caused by sudden network disconnection to the users is reduced, and the experience of the users is improved.
In one possible implementation manner, the sending the second message to the target terminal device includes sending the second message to a first target terminal device, where the first target terminal device is the target terminal device closest to the routing device and/or with the best connection performance, when the number of the target terminal devices is multiple, and the connecting the target terminal device includes accessing a wireless network access point created by the target terminal device closest to the routing device and/or with the best connection performance.
In the embodiment of the application, when the number of the target terminal devices determined by the routing device is a plurality of target terminal devices, the routing device sends a second message for indicating that the target terminal device starts the target capability to the first target terminal device, and the first target terminal device is the target terminal device which is closest to the routing device and/or has the best connection performance, and further, if the target terminal device starts the target capability (for example, surfing the internet through a cellular network and opening a hotspot function), the routing device connects the first target terminal device through accessing a wireless network access point (for example, a hotspot) created by the first target terminal device so as to restore the network of the first target terminal device, so that other terminal devices connected with the routing device (for example, terminal devices which do not have the cellular capability and/or the access point capability or the target terminal devices which do not start the target capability) can restore the internet capability for normal use by users, the inconvenience caused by sudden network disconnection to users is reduced, and the experience of the users is improved.
In a second aspect, an embodiment of the present application provides a method for recovering a network, which is applied to a terminal device, and the method may include sending a first message to a routing device, where the first message includes capability information of the terminal device, receiving a second message sent by the routing device if the capability information of the terminal device meets a target capability and a preset condition is met, where the second message is used to instruct the terminal device to start the target capability, where the target capability includes cellular capability and access point capability, and starting the target capability based on the second message.
According to the embodiment of the application, the terminal equipment can send the first message to the routing equipment, wherein the first message comprises the capability information of the terminal equipment, so that the routing equipment can identify whether the capability information of the terminal equipment meets the target capability or not based on the first message, and then whether the terminal equipment can be determined as the target terminal equipment or not is determined. If the capability information of the terminal device meets the target capability and meets the preset condition, the terminal device may receive a second message sent by the routing device, where the second message may be used to instruct the terminal device to start the target capability. Further, the second message may be used to instruct the terminal device to initiate the target capability. Based on the second message, the terminal device starts the target capability, so that the routing device can establish network connection with the terminal device, and therefore, the network surfing capability of the routing device is recovered by using the target capability of the target terminal device, and meanwhile, other terminal devices (such as terminal devices without cellular capability and/or access point capability, or terminal devices without starting the target capability, and the like) connected with the routing device can also recover the network, so that the terminal device can still normally provide services for users under the condition that the routing device suddenly breaks the network, and the experience of the users is improved.
In a possible implementation manner, 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.
In the embodiment of the present application, the first message may be 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 may be an operation frame sent by the terminal device after the terminal device is successfully connected with the routing device. Therefore, one of the probe request, the authentication request, the association request, and the dynamic host configuration protocol sent before the connection between the terminal device and the routing device is successful, or the operation frame sent after the connection between the terminal device and the routing device is successful may be used as the first message carrying the capability information of the terminal device, so that the routing device may identify and determine whether the terminal device is the target terminal device.
In one possible implementation, the method further comprises establishing a network connection with the routing device based on the response of the routing device with respect to the probe request, the authentication request, the association request, and the dynamic host configuration protocol.
In the embodiment of the application, after the terminal equipment sends the response of the detection request, the authentication request, the association request and the dynamic host configuration protocol to the routing equipment, the terminal equipment establishes network connection with the routing equipment by receiving the response of the routing equipment about the detection request, the authentication request, the association request and the dynamic host configuration protocol.
In one possible implementation manner, the preset condition includes that the terminal device is successfully connected with the routing device, and network abnormality occurs on a wide area network side of the routing device.
In the embodiment of the present application, since the preset condition may include that the terminal device is successfully connected with the routing device, and the network abnormality occurs on the wide area network side of the routing device, if the capability information of the terminal device meets the target capability, and if the preset condition is met, that is, the terminal device is successfully connected with the routing device, and the network abnormality occurs on the wide area network side of the routing device, the terminal device receives the second message sent by the routing device, where the second message may be used to indicate that the routing device starts the target capability.
In a possible implementation manner, the preset condition further comprises that the terminal equipment is the terminal equipment closest to the routing equipment and/or the terminal equipment with the best connection performance.
In the embodiment of the present application, since the preset condition may further include that the terminal device is the terminal device closest to the routing device and/or having the best connection performance, if the capability information of the terminal device meets the target capability, and if the preset condition is met, that is, if the terminal device is successfully connected with the routing device and the network abnormality occurs on the wide area network side of the routing device, the terminal device is the terminal device closest to the routing device and/or having the best connection performance, the terminal device receives a second message sent by the routing device, where the second message may be used to indicate that the routing device starts the target capability.
In one possible implementation, the cellular capability is used to connect to a cellular network and the access point capability is used to create a wireless network access point.
In embodiments of the present application, because cellular capabilities are used to connect to the cellular network, access point capabilities are used to create wireless network access points, initiating target capabilities includes connecting to the cellular network (e.g., surfing the internet through the cellular network) and creating wireless network access points (e.g., turning on a hotspot function).
In a third aspect, an embodiment of the present application provides a routing device, which may include:
the first receiving unit is used for receiving first messages respectively sent by one or more terminal devices, wherein the first messages comprise capability information of the corresponding terminal devices;
An identifying unit, configured to identify whether capability information of each terminal device meets a target capability, where the target capability includes a cellular capability and an access point capability;
a determining unit, configured to determine, as a target terminal device, a terminal device that satisfies the capability information in the one or more terminal devices and that is successfully connected, as the target capability;
A first sending unit, configured to send a second message to the target terminal device when a network abnormality occurs on a wide area network side of the routing device, where the second message is used to instruct the target terminal device to start the target capability;
And the first connection unit is used for connecting the target terminal equipment if the target terminal equipment starts the target capability.
The method and the device for the network connection of the routing equipment comprise the steps of receiving first information sent by one or more terminal equipment respectively through a first receiving unit, wherein the first information can comprise capability information of the corresponding terminal equipment, identifying whether the capability information of each terminal equipment meets target capability or not through a first connecting unit based on the first information, the target capability comprises cellular capability and access point capability, determining that the capability information in the one or more terminal equipment meets the target capability through a determining unit, and the terminal equipment which is successfully connected is the target terminal equipment, sending second information to the target terminal equipment through a first sending unit when network abnormality occurs on the wide area network side of the routing equipment, wherein the second information can be used for indicating the target terminal equipment to start the target capability, and if the target terminal equipment starts the target capability, the routing equipment can be connected with the target terminal equipment through a first connecting unit, so that the routing equipment can utilize the target capability of the target terminal equipment to restore the network capability, other terminal equipment connected with the routing equipment (such as the terminal equipment which does not have the cellular capability and/or the access point capability or the target terminal equipment which does not have the target capability) can still be normally opened, and the user equipment can still experience the situation of the network is normally opened when the network is normally opened.
In a possible implementation manner, the first message is one of a probe request, an authentication request, an association request, and a dynamic host configuration protocol, which are respectively sent before the one or more terminal devices are successfully connected to 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 to the routing device.
In one possible implementation, the routing device further includes:
And the second connection unit is used for establishing network connection between the routing equipment and the corresponding terminal equipment based on the detection request, the authentication request, the association request and the dynamic host configuration protocol.
In one 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 initiating the target capability includes connecting to the cellular network and creating a wireless network access point.
In one possible implementation, the routing device further includes:
and the recording unit is used for recording the network address of the target terminal equipment, wherein the network address comprises a media access control address and/or a network protocol address.
In one possible implementation, the routing device further includes:
And the detection unit is used for periodically detecting the network connectivity of the wide area network side of the routing equipment, or detecting the network connectivity of the wide area network side of the routing equipment when at least one terminal equipment which is successfully connected with the routing equipment is abnormal.
In a possible implementation manner, the detection unit is specifically configured to:
Detecting whether the routing equipment has downlink data transmission or not, if so, determining that the network connectivity of the wide area network side is normal;
If not, a network detection request is sent to the wide area network side, wherein the network detection request is used for requesting to perform network connectivity test;
if a response about the network detection request is received, determining that the network connectivity of the wide area network side is normal;
And if no response is received about the network detection request, determining that the network connectivity of the wide area network side is abnormal.
In one possible implementation manner, the first sending unit is specifically configured to:
when the number of the target terminal devices is 1, sending the second message to the target terminal devices;
The first connection unit is specifically configured to:
and accessing the wireless network access point created by the target terminal equipment.
In one possible implementation manner, the first sending unit is specifically configured to:
when the number of the target terminal devices is a plurality of, sending the second message to a first target terminal device, wherein the first target terminal device is the terminal device which is closest to the routing device and/or has the best connection performance;
The first connection unit is specifically configured to:
and accessing the wireless network access point created by the first target terminal equipment.
In a fourth aspect, an embodiment of the present application provides a terminal device, which may include:
the second sending unit is used for sending a first message to the routing equipment, wherein the first message comprises the capability information of the terminal equipment;
The second receiving unit is used for receiving a second message sent by the routing equipment if the capability information of the terminal equipment meets the target capability, wherein the second message is used for indicating the terminal equipment to start the target capability;
and the starting unit is used for starting the target capability based on the second message.
According to the embodiment of the application, the terminal equipment can send the first message to the routing equipment through the second sending unit, the first message can comprise the capability information of the terminal equipment, if the capability information of the terminal equipment meets the target capability, and under the condition that the capability information of the terminal equipment meets the preset condition, the terminal equipment can receive the second message sent by the routing equipment through the second receiving unit, the second message can be used for indicating the terminal equipment to start the target capability, wherein the target capability comprises the cellular capability and the access point capability, and finally the terminal equipment starts the target capability through the starting unit based on the received second message, so that the routing equipment can establish network connection with the terminal equipment, the network access capability of the routing equipment is recovered by utilizing the target capability of the target terminal equipment, and meanwhile, other terminal equipment (such as the terminal equipment which does not have the cellular capability and/or the access point capability, or the terminal equipment which does not start the target capability, and the like) connected with the routing equipment can recover the network, so that the terminal equipment can still normally provide service for a user under the condition that the routing equipment suddenly breaks the network, and the user experience is improved.
In a possible implementation manner, 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.
In one possible implementation manner, the terminal device further includes:
And a third connection unit, configured to establish a network connection with the routing device based on the response of the routing device regarding the probe request, the authentication request, the association request, and the dynamic host configuration protocol.
In one possible implementation manner, the preset condition includes that the terminal device is successfully connected with the routing device, and network abnormality occurs on the wide area network side of the routing device.
In a possible implementation manner, 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.
In one 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 initiating the target capability includes connecting to the cellular network and creating a wireless network access point.
In a fifth aspect, an embodiment of the present application provides a routing device, which may include a memory for storing a computer program and a processor for executing the computer program stored in the memory, so that the routing device performs the method according to any one of the first aspect.
In a sixth aspect, an embodiment of the present application provides a terminal device, which may include a memory and a processor, where 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 performs the method in any one of the second aspects.
In a seventh aspect, embodiments of the present application provide a computer readable storage medium storing a computer program for execution by the processor to implement the method of any one of the first or second aspects.
In an eighth aspect, an embodiment of the present application provides a computer program comprising instructions that are executed by a computing device to implement the method of any one of the first or second aspects above.
Drawings
In order to more clearly describe the embodiments of the present application or the technical solutions in the background art, the following description will describe the drawings that are required to be used in the embodiments of the present application or the background art.
Fig. 1 is a schematic flow diagram of a recovery network in the prior art.
Fig. 2A is a diagram illustrating a structure of a network connection system according to an embodiment of the present application.
Fig. 2B is a schematic hardware structure of a routing device according to an embodiment of the present application.
Fig. 2C is a schematic hardware structure of a terminal device according to an embodiment of the present application.
Fig. 3A is a schematic diagram of an operation interface for recovering a network by a user using a mobile terminal device according to an embodiment of the present application.
Fig. 3B is a schematic diagram of another operation interface for recovering a network by using a mobile terminal device according to an embodiment of the present application.
Fig. 4 is a flowchart illustrating a method for recovering a network according to an embodiment of the present application.
Fig. 5 is a flowchart illustrating a method for recovering a network according to an embodiment of the present application.
Fig. 6 is a flowchart illustrating a method for recovering a network of a network connection system according to an embodiment of the present application.
Fig. 7 is a schematic structural diagram of a routing device according to an embodiment of the present application.
Fig. 8 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Fig. 9 is a schematic structural diagram of another routing device according to an embodiment of the present application.
Fig. 10 is a schematic structural diagram of another terminal device according to an embodiment of the present application.
Detailed Description
Embodiments of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application.
The terminology used in the following embodiments of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of embodiments of the application. As used in the specification of embodiments of the application and the appended claims, the singular forms "a," "an," "the," "said," and "said" are intended to include the plural forms as well, unless the context clearly indicates to the contrary. It should also be understood that the term "and/or" as used in embodiments of the present application refers to and encompasses any or all possible combinations of one or more of the listed items.
The terms "first," "second," "third," and "fourth" and the like in the description and in the claims and drawings are used for distinguishing between different objects and not necessarily for describing a particular sequential or chronological order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
First, some terms in the present application will be explained so as to facilitate understanding of embodiments of the present application by those skilled in the art.
(1) The Core Network (CN) is a Network infrastructure for supporting large-scale communications, and is a Core part of a Wide Area Network (WAN). The core network serves as a key infrastructure for telecom operators, internet service providers, and other organizations, providing high capacity, high reliability, and flexible data transmission. It is typically composed of a range of high performance routers, switches, and other critical network devices. The core network is responsible for handling the routing, forwarding and switching of data in order to transfer data between different network nodes.
(2) An internet of things (Internet of Things, IOT) device refers to various physical devices, sensors, or objects that connect to the internet of things. The internet of things device may be a variety of different types of devices including, but not limited to, smart home devices, health monitoring devices, sensors, and the like. These devices have network connectivity capabilities and may communicate and exchange data with other devices over the internet or other networks.
(3) Routing is a process and technique for transferring data packets from a source address to a destination address in a computer network, and refers to selecting and determining the path and forwarding of the data packets from the source address to the destination address in the network according to specific rules and algorithms, which provides a reliable and efficient way of data transfer for packet-switched networks.
(4) A Router (Router) is a device responsible for performing routing functions. The router achieves the purpose of the destination address by checking the destination address information of the data packet and deciding which interface of the network the data packet is forwarded to according to a predefined routing table or routing protocol.
(5) The wide area network port (Wide Area Network port, WAN port) may also be referred to as a WAN port, which is typically a port on the back or side of a router, with different interface types, such as an Ethernet port, a Fiber port, or a digital subscriber line (Digital Subscriber Line, DSL) port, depending on the type of router and the network connection.
After connecting to the broadband network of an internet service Provider (INTERNET SERVICE Provider, ISP) through the WAN port, the router can forward the data packets in the internal network, local area network (Local Area Network, LAN), to the WAN port and send 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 device.
In setting up a router, it is often necessary to configure the connection mode and parameters of the WAN port, such as an internet protocol (Internet Pritocol, IP) address, a subnet mask, a gateway, etc., so that the router can properly connect to the network provided by the ISP.
(6) An optical cat (Optical Network Terminal, ONT) is a device for accessing a fiber broadband network. The optical cat acts as a bridge between the optical fiber network and the user terminal device, converting the optical fiber signals into network signals suitable for the user device.
(7) A Backbone Network (BN) refers to a high-speed transmission route in a Network connecting various sub-networks and larger-scale networks. The backbone network is typically comprised of large enterprises, internet service providers ISPs, telecom operators, etc. The backbone network is established by high-speed connection modes such as optical fibers, satellite links, special lines and the like, so that a network architecture covering a wide area is formed. The network backbone is a high-bandwidth and high-speed connection network backbone and is responsible for transmitting a large amount of data and connecting network nodes in different geographic positions. The backbone network is the foundation for building large-scale internet, which carries most of internet traffic and provides high-speed stable data transmission capability.
(8) Cellular capability (Cellular Capability) refers generally to the capability of a mobile communications system, and in particular a cellular mobile communications system. Cellular-capable generally means that the device or system has the capability to connect to a cellular mobile communications network. This means that the device can communicate with the base stations in the cellular network via radio signals and take advantage of the services and functions provided by the mobile communication network.
(9) A wireless terminal (STA) refers to a client device or a terminal device in a wireless local area network (Wireless Local Area Network, WLAN). In WLAN, devices can be divided into two categories, wireless terminal STA and Access Point (AP). The STA refers to a mobile device or a terminal device connected to the WLAN, such as a smart phone, a notebook computer, a tablet computer, and the like. The STA is an end user of a wireless network, and can access network resources, transceive data, and communicate by establishing a connection with the AP. An AP is an access point of a wireless local area network and is responsible for providing wireless signal coverage and network connectivity. The AP acts as a bridge between the local area network and the wireless device, accepting data from the STA and forwarding it to the wired network or other wireless device.
The connection established between the STA and the AP is typically achieved through Wi-Fi or other wireless technology. The STA selects a proper AP for connection through scanning available networks, and performs authentication and association processes. Once connected successfully, the STA can exchange data with the AP, access the internet and other network services.
(10) An address protocol resolution packet (Address Resolution Protocol, ARP) is a packet used in a network communication protocol to resolve and map the relationship between the physical address (MEDIA ACCESS Control address, MAC ADDRESS) and the IP address of a network device in a local area network. ARP packets are typically used to effect address translation when communicating between hosts in an IP network. When one host needs to communicate with another host, it checks its ARP cache (or ARP table) to determine the physical address of the target host before sending the packet. If the corresponding physical address is found in the cache, the data packet is sent directly to the device. But if the physical address of the target device is not in the cache, the sender host sends an ARP request broadcast packet (ARP Request Packet) to all devices on the lan. After receiving the broadcast packet, the target device sends an ARP response packet (ARP REPLY PACKET) to reply to the sender host, and provides its own physical address. After receiving the response, the sender host binds the physical address and the IP address of the target device and updates its ARP cache for future communication use.
(11) A network probe packet, also referred to as Ping packet, refers to a data packet in the basic tool used to perform network testing and diagnostics. It is a specific type of data packet sent through the Ping tool for testing connectivity between hosts and measuring Round-Trip Time (RTT). The Ping packet typically uses the internet control message protocol (Internet Control Message Protocol, ICMP) to send and receive data. It sends an ICMP Echo (Echo) request message to the target host and waits for the target host to reply to an ICMP Echo reply message. By sending and receiving these Ping packets, it can be determined whether the target host is online, whether the network path is clear, and measuring round trip delay.
(12) The dynamic host configuration protocol (Dynamic Host Configuration Protocol, DHCP) is a network protocol for automatically assigning IP addresses and other network configuration information. DHCP allows devices in a network (called clients) to automatically obtain network parameters such as IP addresses, subnet masks, default gateways, DNS servers, etc. when connected to the network without manually configuring the parameters. The main goal of DHCP is to simplify network management and increase the utilization of network resources.
(13) A media access Control (MEDIA ACCESS Control, MAC) address, also known as a physical address, is a unique hardware address used to identify the identity of a network device (e.g., computer, router, switch, network adapter, etc.) in a Local Area Network (LAN). The MAC address is fixed in hardware, typically assigned by the manufacturer of the device at the time of manufacture, and does not substantially change over the life of the device.
(14) An internet protocol (Internet Protocol, IP) address is a logical address used to identify and locate devices in a computer network. It is part of the Internet Protocol (IP) and plays an important role in network communications. The IP addresses are divided into two main types, public IP addresses and private IP addresses. Public IP addresses are globally unique for accessing devices on the internet, and private IP addresses are addresses used in Local Area Networks (LANs) for internal communications, not directly accessible from the internet. The selection and allocation of private IP address ranges is constrained by the relevant network specifications and standards.
(15) The service set identifier (SERVICE SET IDENTIFIER, SSID) is a name for identifying a Wireless Local Area Network (WLAN), which is an identifier for distinguishing between different wireless networks. The SSID serves to direct the wireless device to the correct wireless network. It is typically configured in a network administrator or router setting and may be altered as needed. For security, some WLANs may hide their SSID, meaning that the wireless router does not actively broadcast the SSID, but rather requires the user to manually enter the SSID to connect.
(16) An Access Point (AP) is a device in a Wireless Local Area Network (WLAN) for connecting a wireless device (e.g., a notebook, a smart phone, a tablet, etc.) to a wired Local Area Network (LAN) or the internet. The AP acts as a bridge between the wireless device and the wired network, enabling the wireless device to access the wired network resources over the Wi-Fi connection.
(17) Wireless local area networks (Wireless Local Area Network, WLAN) are one type of wireless communication technology that connects computers, mobile devices, and other wireless devices to a network of a Local Area Network (LAN) or the internet, and WLANs transmit data via wireless signals rather than using conventional wired connections, based on wireless communication standards (e.g., wi-Fi) so that the devices can communicate within wireless coverage.
First, the technical problem to be solved by the present application is further analyzed and proposed.
Referring to fig. 1, fig. 1 is a schematic flow chart of a recovery network in the prior art. Network connections are established between the router 10 and the terminal devices STA11 and STA12 as shown in fig. 1, respectively, wherein the terminal device STA11 is a terminal device (e.g. a mobile phone) with cellular capability, and the terminal device STA12 is a terminal device (e.g. a smart home appliance) without cellular capability.
When a network connection is established between the terminal device STA11 and the router 10, the following steps may be included:
Step S101, the terminal device STA11 transmits a Probe request (Probe req) to the router 10, and the router 10 receives the Probe request transmitted by the terminal device STA 11.
The probe request typically includes identification information of the corresponding terminal device, typically a MAC address, and other related parameters and identifiers, which can be used to probe nearby available wireless network access points.
In step S102, the router 10 transmits a Probe response (Probe rsp) to the terminal device STA11, and the terminal device STA11 receives the Probe response transmitted by the router 10.
The probe response typically includes identification information of the wireless access point, a network name (SSID), security settings, supported encryption methods, transmission rates, other network details, etc., and may be used to respond to a probe request sent by the terminal device STA11 to provide corresponding wireless network information to the terminal device STA 11.
Step S103, the terminal device STA11 transmits an authentication request (authreq) to the router 10, and the router 10 receives the authentication request transmitted by the terminal device STA 11.
The authentication request typically includes identity information of the device, supported authentication methods and other relevant parameters, which may be used to authenticate or authenticate the terminal device STA 11.
Step S104, the router 10 transmits an authentication response (authrsp) to the terminal device STA11, and the terminal device STA11 receives the authentication response transmitted by the router 10.
Specifically, the authentication response may include an authentication result of the router 10 on the terminal device STA11 and related information, and may be used to respond to an authentication request sent by the terminal device STA11, where the authentication response may generally include acknowledgement information of successful authentication if the authentication request of the terminal device STA11 is accepted, otherwise, the authentication response sent to the terminal device STA11 will include corresponding reject or error information to indicate a cause of authentication failure.
Step S105, the terminal device STA11 transmits an association request to the router 10 (Assoc Req), and the router 10 receives the association request transmitted by the terminal device STA 11.
The association request generally 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 requesting access router 10, which may be used to request the wireless network access point provided by the access router 10.
Step S106, the router 10 sends the association response to the terminal equipment STA11 (Assoc Rsp), and the terminal equipment STA11 receives the association response sent by the router 10.
Specifically, if the terminal STA11 is successfully connected to the router 10, the authentication response may include information about the connection success and some important network parameters, such as a static IP address, a subnet mask, a gateway address, etc. allocated to the terminal STA11, for allowing the terminal STA11 to access the wireless network access point provided by the router 10 in response to the association request sent by the terminal STA11, otherwise, the authentication response may generally include information describing the reason of the connection failure, so as to help the terminal STA11 understand the reason of the connection failure and take corresponding measures.
Step S107, the router 10 transmits the first handshake message (MSG 1) to the terminal device STA11, and the terminal device STA11 receives the first handshake message (MSG 1) transmitted by the router 10.
Specifically, the router 10 may send, by broadcasting, a first handshake message (MSG 1) to the terminal device STA11, where the first handshake message (MSG 1) may be an authentication protocol (Extensible Authentication Protocol Over LAN, EAPOL) message on the extensible local area network, and is used to transmit authentication information between a client (e.g., the terminal device STA 11) and an authentication server (e.g., the router 10) to establish a secure network connection. The EAPOL message may include, among other things, an authenticator random number (ANonce) generated by an authentication server (e.g., router 10) for authentication of the Wi-Fi network and generation of a temporary key.
Step S108, in response to the first handshake message (MSG 1) sent by the router 10, the terminal device STA11 sends a second handshake message (MSG 2) to the router 10, and the terminal device STA11 receives the second handshake message (MSG 2) sent by the router 10.
Specifically, after the terminal device STA11 receives the first handshake message (MSG 1) sent by the router 10, the terminal device STA11 may generate a requester random number (SNonce) for populating the 802.1x packet, calculate a corresponding symmetric key (PAIRWISE TRANSIENT KEY, PTK) through a key derivation function in combination with the authenticator random number (ANonce) in the received first handshake message (MSG 1), thereby derive a key confirmation key (Key Confirmation Key, KCK), calculate a corresponding message integrity check Code (MESSAGE INTEGRITY Code, MIC) together with the 802.1x packet, and then send a second handshake message (MSG 2) to the router 10, where the second handshake message (MSG 2) may be a second EAPOL packet, and the EAPOL packet may include a single packet authorization authentication (SINGLE PACKET authorization, SPA) and a message integrity check Code (MIC value).
Step S109, the router 10 transmits a third handshake message (MSG 3) to the terminal device STA11 in response to the second handshake message (MSG 2) transmitted by the terminal device STA11, and the terminal device STA11 receives the third handshake message (MSG 3) transmitted by the router 10.
Specifically, after the router 10 receives the second handshake message (MSG 2) sent by the terminal device STA11, the router 10 may calculate a corresponding PTK through a key derivation function based on the SPA and the MIC value thereof, so as to derive a KCK, then calculate a corresponding MIC value, compare with the MIC value in the received second handshake message (MSG 2), directly end the authentication procedure if the two are inconsistent, and if the two are inconsistent, send a third handshake message (MSG 3) to the terminal device STA11, where the third handshake message (MSG 3) may be a third EAPOL message, and the EAPOL message may include a Group temporary key (Group Temporal Key, GTK) generated by using the Group key (Group MASTER KEY, GMK), the authenticator random number (ANonce) and the authentication and association (Authentication and Association, AA), and an encrypted Group temporary key GTK by using the key encryption key (Key Encryption Key, KEK), and the calculated MIC value.
Step S110, in response to the third handshake message (MSG 3) sent by the router 10, the terminal device STA11 sends a fourth handshake message (MSG 4) to the router 10, and the terminal device STA11 receives the fourth handshake message (MSG 4) sent by the router 10.
Specifically, after the terminal device STA11 receives the third handshake message (MSG 3) sent by the router 10, firstly, calculates the MIC value in the above manner, and compares the MIC value with the MIC value in the received third handshake message (MSG 3), if the MIC value is inconsistent, the handshake fails, if the MIC value is inconsistent, the terminal device STA11 derives the key encryption key KEK using the peer transient key (PAIRWISE TRANSIENT KEY, PTK), decrypts the group transient key GTK, installs the obtained key (TRANSIENT KEY, TK) into the system as a key for subsequent data encryption, and sends a fourth handshake message (MSG 4) to the router 10, where the fourth handshake message (MSG 4) may be an Acknowledgement (ACK) message, which indicates that the key has been installed, and the ACK message may include the calculated MIC value.
Step S111, a Dynamic Host Configuration Protocol (DHCP) procedure is performed between the terminal device STA11 and the router 10.
Specifically, when the terminal device STA11 connects to the router 10 for the first time, the terminal device STA11 may broadcast a DHCP discovery message to a DHCP server in the routing device for searching for an available DHCP server, and after receiving the DHCP discovery message from the DHCP server, the routing device may respond to a DHCP offer message, which may include an available IP address and other configuration information. If there are responses from a plurality of DHCP servers, the terminal STA11 will typically select one of the DHCP offer messages. Further, if the terminal STA11 receives a DHCP offer message, a DHCP request may be sent to the router 10 for confirming and requesting the allocated IP address and other configuration information, and the DHCP server in the router 10 sends a DHCP confirm message to the terminal STA11 based on the DHCP request of the terminal, where the DHCP confirm message may include the IP address requested by the terminal STA11 and other configuration information, so that the terminal STA11 successfully obtains an IP address to maintain the network communication connection with the routing device.
It should be noted that, steps S112-S122 for establishing a network connection between the terminal device STA12 and the router 10 are normal access procedures between the terminal device and the router, and are similar to steps S101-S111 for establishing a network connection between the terminal device STA12 and the router 10, and are not repeated herein. In addition, there is no explicit sequence between the steps of establishing network connection between the terminal device STA11 and the terminal device STA12 and the router 10, respectively, that is, steps S101 to S111 may be performed synchronously with steps S112 to S122, or may be performed before or after steps S112 to S122, which is not particularly limited in the embodiment of the present application.
Step S123, the WAN port of the router 10 is abnormal in network.
Specifically, the router 10 has network abnormality at its WAN port due to arrears, cat abnormality, network line abnormality, backbone network abnormality, etc., thereby causing abnormal surfing of the network by the terminal device STA11 and the terminal device STA12 connected thereto.
Step S124A, the terminal device STA11 cannot surf the internet, waits for the route to recover, or surfs the internet using its own cellular capability.
In step S124B, the terminal device STA12 cannot surf the internet and waits for the route recovery.
Specifically, when the WAN port of the router is abnormal, both the terminal device STA11 and the terminal device STA12 cannot access the internet, and the router 10 can wait for recovery to access the internet normally, but since the terminal device STA11 has cellular capability, the terminal device STA11 can access the internet using its own cellular capability. The terminal device STA12 can only wait for the network restoration of the router 10, so that it cannot normally provide services for the user, and the experience of the user is reduced. Therefore, how to quickly recover the network when the network on the wide area network side of the routing device is abnormal and the connected terminal device cannot connect to the network is a urgent problem to be solved.
In summary, the technical problem to be actually solved by the present application includes that aiming at the technical problem that in the prior art, since the network on the wide area network side of the routing device is abnormal, the underhung terminal device cannot be connected with the network, so that service cannot be provided for the user, and the experience of the user is affected, a scheme for recovering the network is provided, so that when the network on the wide area network side of the routing device is abnormal, the underhung terminal device can quickly recover the network, so that service can be normally provided for the user, and the experience of the user is improved.
In order to facilitate understanding of the embodiments of the present application, a network connection system on which the embodiments of the present application are based will be described.
Referring to fig. 2A, fig. 2A is a diagram illustrating an exemplary structure of a network connection system according to an embodiment of the present application, where the network connection system mainly includes a routing device 20 (e.g., a router), terminal devices 21-23 (typically wireless terminal devices), the internet, and a cellular network, and at least one terminal device connected to the routing device has cellular capability and Access Point (AP) capability in the terminal devices 21-23. The routing device may be connected to the internet through a network cable, and the data transmission between the routing device 20 and the terminal devices 21 to 23 may be wireless, or may be connected through a network cable, which is not limited in the embodiment of the present application.
For convenience of description, the network connection system shown in fig. 2A is composed of a routing device 20 and 3 terminal devices 21-23, where the terminal device 22 is a terminal device having both cellular capability and access point capability, the capabilities of the terminal device 21 and the terminal device 23 are not specifically limited, a port of the routing device 20 connected to the internet is a wide area network port (WAN port), and a port of the routing device 20 connected to the terminal devices 21-23 is an air port. It will be readily appreciated that the architecture of the network connection system is merely exemplary, and that in other possible embodiments the network connection system may include more or fewer routing devices and end devices (at least one routing device and at least one end device that is both cellular and access point capable), and the number of WAN ports and air ports may vary accordingly. The terminal device may be of various types, for example, may be a mobile phone, and may further include a tablet computer, a desktop computer with a touch-sensitive surface or a touch panel, a laptop computer (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 (augmented reality, AR) device, a Virtual Reality (VR) device, an artificial intelligence (ARTIFICIAL INTELLIGENCE, AI) device, a car machine, a smart headset, a game machine, and may also be an internet of things (internet of things, IOT) device or a smart home device such as a smart water heater, a smart light, a smart air conditioner, etc., which are not particularly limited in the embodiments of the present application.
Illustratively, the routing device 20 is generally a network device that performs packet storage and packet forwarding processing functions between different networks based on network addresses. The routing device may enable a data frame to reach a destination address from a source address by identifying the network address and placing it in an internal address table, and establishing a temporary switching path between the sender and receiver of the data frame. The routing device 20 of the embodiment of the present application may include a router, and may also include a routing device that functions as a route. Such as a gateway, a switch, and a mobile device that turns on the wireless hotspot function, which is now the routing device 20.
The terminal device 22 is illustratively a terminal device that is both cellular and access point capable, such as a cell phone or the like. Where cellular capability is the capability of a device to use mobile communication services provided by a cellular network. Further, a cellular network is a wireless communication network that enables a wide range of signal coverage by dividing an entire geographic area into a plurality of small areas (cells), each covered by a base station (cell tower), so that a cellular capable device can communicate with the base station via wireless signals and data transmission. The cellular network technology may include 2G/3G/4G/5G communication technologies, which are not particularly limited in embodiments of the present application. In addition, access Point (AP) capabilities may provide a wireless network Access Point (AP) for devices such that other devices may connect to a network (e.g., the internet or a cellular network) through the wireless network Access Point to enable network communications as well as data transmission.
Further, referring to fig. 2B, fig. 2B is a schematic diagram of a hardware structure of a routing device according to an embodiment of the present application. The routing device 20 may include a processor 201, an internal memory 202, an external memory interface 203, a universal serial bus (universal serial bus, USB) interface 204, a charge management module 205, a power management module 206, a battery 207, a wireless communication module 208, and an antenna 209, among others. It will be appreciated that the illustrated structure of the embodiments of the present application does not constitute a particular limitation of the routing device 20. In other embodiments of the present application, routing device 20 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 201 may include one or more processing units. For example, processor 201 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processingunit, GPU), an image signal processor (IMAGE SIGNAL processor, ISP), a controller, a video codec, a digital signal processor (DIGITAL SIGNAL processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate components or may be integrated in one or more processors. In some embodiments, wireless routing device 20 may also include one or more processors. The processor can generate an operation control signal according to the instruction operation code and the time sequence signal to complete the control of acquiring the instruction and executing the instruction.
Optionally, the processor 201 may include one or more interfaces. The interfaces may include inter-integrated circuit (inter-INTEGRATED CIRCUIT, I2C) interfaces, inter-integrated circuit audio (INTEGRATED CIRCUIT SOUND, I2S) interfaces, pulse code modulation (pulse code modulation, PCM) interfaces, universal Asynchronous Receiver Transmitter (UART) interfaces, mobile industry processor interfaces (mobile industry processor interface, MIPI), general-purposeinput/output (GPIO) interfaces, SIM card interfaces, and/or USB interfaces, among others. The USB interface 204 is an interface conforming to the USB standard, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 204 may be used to connect a charger to charge the wireless routing device 20, or may be used to transfer data between the wireless routing device 20 and a peripheral device.
It should be understood that the interfacing relationship between the modules illustrated in the embodiments of the present application is only illustrative and not limiting on the structure of the wireless routing device 20. In other embodiments of the present application, the wireless routing device 20 may also employ different interfaces in the above embodiments, or a combination of interfaces.
The internal memory 202 may be used to store one or more computer programs, including instructions. The internal Memory 202 may include, but is not limited to, read Only Memory (ROM), static random access Memory (Static Random Access Memory, SRAM), synchronous dynamic random access Memory (Synchronous Dynamic Random Access Memory, SDRAM), random access Memory (Random Access Memory, RAM), or the like. Further, the internal memory 202 may include a code storage area and a data storage area. Wherein the code storage area may store an operating system. The data storage area may store data created during use of the routing device 20, etc. Processor 201 may cause routing device 20 to perform the methods of recovering networks provided in embodiments of the present application, as well as other applications and data processing, by executing instructions stored in memory 202 and/or instructions stored in memory provided in processor 210.
The external memory interface 203 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the routing device 20. The external memory card communicates with the processor 201 via the external memory interface 203 to implement data storage functions. For example, files such as music, video, etc. are stored in an external memory card.
The antenna 209 is used for transmitting and receiving wireless signals. The wireless communication function of the routing device 20 may be implemented by an antenna, a wireless communication module 208, and the like.
The wireless communication module 208 may provide a solution for wireless communication including Wi-Fi (including Wi-Fi aware and Wi-Fi AP), bluetooth (BT), wireless data transfer module (e.g., 433mhz,868mhz,915 mhz), etc. applied on the wireless routing device 20. The wireless communication module 250 may be one or more devices that integrate 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 transmits the processed signals to the processor 201. The wireless communication module 208 may also receive a signal to be transmitted from the processor 201, frequency modulate and amplify the signal, and convert the signal to electromagnetic waves through an antenna to radiate.
In the embodiment of the present application, the non-routing device 20 may send a broadcast message through the wireless communication module, where the broadcast message may carry a device identifier or a product identifier of the routing device 20, and is used for surrounding mobile devices to send a message to the routing device. The routing device 20 may also receive messages sent by the mobile device via the wireless communication module.
It will be appreciated that the illustrated structure of the embodiments of the present application does not constitute a particular limitation of the routing device 20. In other embodiments of the present application, routing device 20 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Further, referring to fig. 2C, fig. 2C is a schematic diagram of a hardware structure of a terminal device according to an embodiment of the present application. The terminal device 22 may 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 speaker 2210A, a receiver 2210B, a microphone 2210C, an earphone interface 2210D, a sensor module 2211, keys 2212, a motor 2213, an indicator 2214, a camera 2215, a display screen 2216, and a subscriber identity module (subscriber identification module, SIM) card interface 2217, etc. Among other things, the sensor module 2211 may 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, and the like.
It should 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 application, the terminal device 22 may include more or less components than illustrated, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 100 may include one or more processing units (also referred to as processing cores), for example, processor 2201 may include one or more of a Central Processing Unit (CPU), an application processing unit (application processor, AP), a modem processing unit, a graphics processing unit (graphics processing unit, GPU), an image signal processing unit (IMAGE SIGNAL processor, ISP), a video codec unit, a digital signal processing unit (DIGITAL SIGNAL processor, DSP), a baseband processing unit, and a neural network processing unit (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more devices. Optionally, a memory may be provided in the processor 2201 for storing instructions and data. The processor 2201 may cause the terminal device 22 to perform the network restoration method provided in the embodiment of the present application, as well as other applications and data processing, by executing instructions stored in the internal memory 2202, and/or instructions stored in a memory provided in the processor 2201.
The internal memory 2202 may be used to store one or more computer programs, including instructions. The internal Memory may include, but is not limited to, read Only Memory (ROM), static random access Memory (Static Random Access Memory, SRAM), synchronous dynamic random access Memory (Synchronous Dynamic Random Access Memory, SDRAM), random access Memory (Random Access Memory, RAM), etc. Further, the internal memory 2202 may include a code storage area and a data storage area. Wherein the code storage area may store an operating system. The data storage area may store data created during use of the terminal device 22, etc. Optionally, an internal memory 2202 may be provided in the processor 2201 for storing instructions and data. The processor 2201 may cause the terminal device 22 to perform the network restoration method provided in the embodiment of the present application, as well as other applications and data processing, by executing instructions stored in the internal memory 2202, and/or instructions stored in a memory provided external to the processor 2201.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the terminal device 22 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example, the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may also be used in conjunction with a tuning switch.
The mobile communication module 2208 may provide a solution for wireless communication including 2G/3G/4G/5G or the like applied on the terminal device 22. The mobile communication module 2208 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), or the like. The mobile communication module 2208 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 2208 can amplify the signal modulated by the modem processor, and convert the signal into electromagnetic waves through the antenna 1 to radiate. In some embodiments, at least some of the functional modules of the mobile communication module 2208 may be provided in the processor 2201.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs an audio signal through an audio device (not limited to the speaker 2210A, the receiver 2210B, etc.), or displays an image or video through the display screen 2216. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 2208 or other functional modules, independent of the processor 2201.
The wireless communication module 2209 may provide solutions for wireless communication including wireless local area network (wirelesslocal area networks, WLAN) (e.g., wireless fidelity (WIRELESS FIDELITY, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation SATELLITE SYSTEM, GNSS), frequency modulation (frequency modulation, FM), near field communication (NEAR FIELD communication, NFC), infrared (IR), etc. applied on the terminal device 22. The wireless communication module 2209 may be one or more devices that integrate at least one communication processing module. The wireless communication module 2209 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 2201. The wireless communication module 2209 may also receive a signal to be transmitted from the processor 2201, frequency modulate the signal, amplify the signal, and convert the signal into electromagnetic waves through the antenna 2 to radiate the electromagnetic waves.
In some embodiments, the antenna 1 of the terminal device 22 is coupled to the mobile communication module 2208 and the antenna 2 is coupled to the wireless communication module 2209 so that the mobile device 22 can communicate with the network and other devices through wireless communication technology. The wireless communication techniques can include the Global System for Mobile communications (global system for mobile communications, GSM), general packet radio service (GENERAL PACKET radio service, GPRS), code division multiple access (codedivision multiple access, CDMA), wideband code division multiple access (wideband code division multipleaccess, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC, FM, and/or IR techniques, among others. The GNSS may include a global satellite positioning system (global positioning system, GPS), a global navigation satellite system (global navigation SATELLITE SYSTEM, GLONASS), a beidou satellite navigation system (beidounavigation SATELLITE SYSTEM, BDS), a quasi zenith satellite system (quasi-zenith satellitesystem, QZSS) and/or a satellite based augmentation system (SATELLITE BASED AUGMENTATION SYSTEMS, SBAS).
The terminal device 22 may implement a photographing function through the ISP, the camera 2215, the video codec, the GPU, the display screen 2216, the application processor, and the like.
The external memory interface 2203 may be used to connect an external memory card, such as a Micro SD card, to realize expansion of the memory capability of the terminal device 22. The external memory card communicates with the processor 2201 via an external memory interface 2203 to implement data storage functions. For example, files such as music, video, etc. are stored in an external memory card. The terminal device 22 may implement audio functions through an audio module 2210, a speaker 2210A, a receiver 2210B, a microphone 2210C, an earphone interface 2210D, an application processor, and the like. Such as music playing, recording, etc.
It should 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 application, the terminal device 22 may include more or less components than illustrated, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The system structure of network connection is introduced above, and in combination with the network connection system of fig. 2A, an operation interface schematic diagram of a user recovering a network by using a mobile terminal device provided in an embodiment of the present application is described next.
Referring to fig. 3A, fig. 3A is a schematic diagram of an operation interface for a user to recover a network by using a mobile terminal device according to an embodiment of the present application. The operation interface is some of the operation interfaces of the method for the user to restore the network by using the mobile terminal device, which may be the terminal device 22 in the network connection system as shown in fig. 2A, for example, a mobile phone, or may be other terminal devices that have both cellular capabilities (for example, surfing the internet using a cellular network) and access point capabilities (for example, providing a hotspot), which is not limited by the embodiment of the present application. When a mobile terminal device (such as the terminal device 22 shown in fig. 2A) connects with a router (such as the router device 20 shown in fig. 2A) for the first time, in the user interface 31, the user enters the user interface 32 of the system setting function by clicking the setting button 301, further clicks the wireless and network 302, enters the WLAN function page 33, clicks the switch button 303 of the WLAN function, opens the WLAN function, so that Wi-Fi names provided by nearby router devices are presented in the available WLAN list 304, the user can select Wi-Fi provided by a connectable router (such as the router device 20 shown in fig. 2A) from among them, clicks on a corresponding Wi-Fi name in the available WLAN list, that is, clicks on the TP-Link001 305 in the WLAN list 304, thereby indirectly controlling the network connection between the mobile terminal device and the router (such as the terminal device 22 and the router device 20 shown in fig. 2A), and if the connection is successful, the navigation bar above the WLAN function 33 displays a Wi-Fi icon 306 indicating that the mobile terminal device is currently using Wi-Fi to surf the internet. When a mobile terminal device (e.g., terminal device 22 in fig. 2A) suddenly drops off due to a network connectivity anomaly on the WAN side of a router (e.g., routing device 20 in fig. 2A), an icon 307 of Wi-Fi anomaly appears in the navigation bar above the user interface 34, and a prompt message 308 of "current Wi-Fi unavailable, confirming whether to switch cellular data to continue surfing" appears in the user interface 34 to alert the user to open the cellular network, thereby surfing the internet using data traffic provided by the operator. If the user clicks the confirm button 309 in the prompt message 308, the user interface 35 is shifted to, the operator signal icon of the navigation bar of the user interface presents an icon 310 for surfing the internet with data traffic to indicate that the mobile terminal device is surfing the internet with data traffic, and the user interface 35 displays a prompt message 311 of "the currently connected router network is abnormal, confirm whether to automatically open the network of the hotspot restoration router", and if the user clicks the confirm button 312 in the prompt message 311, indirectly control the mobile terminal device (such as the terminal device 22 shown in fig. 2A) to open the hotspot, and allow the router (such as the routing device STA22 shown in fig. 2A) to restore the network by connecting the hotspot of the mobile terminal device. When the router (such as the routing device STA22 shown in fig. 2A) successfully connects to the hotspot recovery internet surfing function of the mobile terminal device, the user interface 36 is shifted to, and a hotspot icon 313 appears in the navigation bar above the user interface 36 to indicate that the hotspot function of the mobile terminal device is opened, and a prompt message 314 of "the router network has been recovered" appears in the user interface 36 to remind the user that the router has connected to the hotspot of the mobile terminal device and recovered the network, so that the data traffic provided by the operator can be used for surfing the internet.
Referring to fig. 3B, fig. 3B is a schematic diagram of an operation interface of a network recovery system using a mobile terminal device by another user according to an embodiment of the present application. The operation interface is another operation interface of the method for recovering the network by using the mobile terminal device, which may be the terminal device 22 in the network connection system shown in fig. 2A, typically a mobile phone, or may be other terminal devices that have both cellular capabilities (for example, surfing the internet using a cellular network) and access point capabilities (for example, providing a hotspot), which is not limited in the embodiment of the present application. When a mobile terminal device (such as the terminal device 22 shown in fig. 2A) is connected with a router (such as the router device 20 shown in fig. 2A) which is connected before, in the user interface 37, a user enters the user interface 38 of the drop-down notification bar 315 through a drop-down screen, further clicks the drop-down screen, and enters the Wi-Fi icon 316 in the drop-down notification bar 315, so as to indirectly control the network connection between the mobile terminal device and the router (such as the terminal device 22 and the router device 20 shown in fig. 2A), if the connection is successful, the user page 39 is entered, and a Wi-Fi icon 317 is displayed in a navigation bar above the user page 39 to indicate that the mobile terminal device is currently surfing the internet using Wi-Fi. When a mobile terminal device (e.g., terminal device 22 in fig. 2A) suddenly drops off due to a network connectivity anomaly on the WAN side of a router (e.g., routing device 20 in fig. 2A), an icon 307 of Wi-Fi anomaly appears in the navigation bar above the user interface 34, and a prompt message 308 of "current Wi-Fi unavailable, confirming whether to switch cellular data to continue surfing" appears in the user interface 34 to alert the user to open the cellular network, thereby surfing the internet using data traffic provided by the operator. If the user clicks the confirm button 309 in the prompt message 308, the user interface 35 is shifted to, the operator signal icon of the navigation bar of the user interface presents an icon 310 for surfing the internet with data traffic to indicate that the mobile terminal device is surfing the internet with data traffic, and the user interface 35 displays a prompt message 311 of "the currently connected router network is abnormal, confirm whether to automatically open the network of the hotspot restoration router", and if the user clicks the confirm button 312 in the prompt message 311, indirectly control the mobile terminal device (such as the terminal device 22 shown in fig. 2A) to open the hotspot, and allow the router (such as the routing device STA22 shown in fig. 2A) to restore the network by connecting the hotspot of the mobile terminal device. When the router (such as the routing device STA22 shown in fig. 2A) successfully connects to the hotspot recovery internet surfing function of the mobile terminal device, the user interface 36 is shifted to, and a hotspot icon 313 appears in the navigation bar above the user interface 36 to indicate that the hotspot function of the mobile terminal device is opened, and a prompt message 314 of "the router network has been recovered" appears in the user interface 36 to remind the user that the router has connected to the hotspot of the mobile terminal device and recovered the network, so that the data traffic provided by the operator can be used for surfing the internet. It should be noted that the user interface diagrams shown in fig. 3A and fig. 3B are exemplary illustrations of embodiments of the present application, and the user interface diagrams during actual operation may be other types, which are not limited in the embodiments of the present application.
Based on the system structure provided by fig. 2A and the operation interfaces provided by fig. 3A and 3B, the technical problem proposed in the present application is specifically analyzed and solved in combination with the method for recovering a network provided by the present application.
Referring to fig. 4, fig. 4 is a flowchart illustrating an example of a method for recovering a network according to an embodiment of the present application, where the method may be applied to the network connection system described in fig. 2A and the operation interfaces of fig. 3A and 3B, and mainly includes method steps of interaction between a terminal device side and a routing device side, and the method may include:
Step S401, one or more terminal devices respectively send first messages to the routing device, and the routing device receives the first messages respectively sent by the one or more terminal devices.
Specifically, the first message includes capability information of the corresponding terminal device. Illustratively, it is assumed that one or more terminal devices each send a first message to the routing device, which first message may be sent to the routing device by broadcasting (or otherwise). The first message may include capability information of the corresponding terminal device, where the capability information may be vendor information of the terminal device, and through an identifier in the vendor information, it may indicate whether the terminal device has cellular capability and access point capability.
Optionally, the first message is one of a probe request, an authentication request, an association request, and a dynamic host configuration protocol, which are respectively sent before the one or more terminal devices and the routing device are successfully connected, or is an operation frame which is respectively sent after the one or more terminal devices and the routing device are successfully connected. The description of the probe request, the authentication request, the association request, and the dynamic host configuration protocol in the embodiment of the present application may refer to the relevant steps in fig. 1, and will not be repeated here. In addition, the difference between the first message in the embodiment of the present application and any one of the probe request, the authentication request, the association request, and the dynamic host configuration protocol described in fig. 1 is that the first message in the embodiment of the present application may be any one of the probe request, the authentication request, the association request, and the dynamic host configuration protocol that is sent by the terminal device and carries capability information of the terminal device when the terminal device and the routing device have not yet established a connection, and if the probe request, the authentication request, the association request, and the dynamic host configuration protocol do not carry capability information of the terminal device, an operation frame (e.g., an action frame) that carries capability information of the terminal device may also be sent to the routing device after the terminal device and the routing device establish a network connection, as the first message, to indicate whether the terminal device has cellular capability and access point capability, so that the routing device starts the cellular capability and the access point capability according to relevant parameters by analyzing the operation frame. The probe request, the authentication request, the association request, the dynamic host configuration protocol and/or the operation frame may be sent by the terminal device to the nearby routing device through broadcasting, or may be other manners, which is not limited in particular by the embodiment of the present application.
Step S402, the routing device identifies whether the capability information of each terminal device satisfies the target capability.
Specifically, the target capabilities include cellular capabilities and access point capabilities. In some embodiments, cellular capability is used to connect to a cellular network (e.g., surfing the internet through a cellular network), access point capability is used to create a wireless network access point (e.g., turning on a hotspot). The routing device may determine whether the corresponding terminal device meets the target capability by identifying the first message sent by each terminal device, for example, identifying vendor information of the corresponding terminal device carried in the first message.
Further, since cellular capabilities are used to connect to the cellular network and access point capabilities are used to create a wireless network access point, and the target capabilities may include both cellular capabilities and access point capabilities, identifying whether the capability information of each terminal device meets the target capabilities, i.e., identifying whether each terminal device may connect to the cellular network (e.g., surfing the internet through the cellular network), while having the capability to create a wireless network access point (e.g., a hotspot function), enabling other devices to communicate and transfer data through the wireless network access point created by connecting to it.
And step S403, the routing equipment determines the capability information in the one or more terminal equipment to meet the target capability, and the terminal equipment which is successfully connected with the routing equipment is determined to be the target terminal equipment.
Specifically, after the network connection is successfully established between the one or more terminal devices and the routing device, the routing device determines the terminal device which meets the target capability, that is, can be connected to the cellular network or can create the wireless network access point, as the target terminal device based on the first information sent by the one or more terminal devices, so that the routing device can send the information to the target terminal device in a targeted manner under the condition that the network is suddenly disconnected due to the network connectivity abnormality of the wide area network side of the routing device.
Step S404, when network connectivity abnormality occurs at the wide area network side of the routing equipment, the routing equipment sends a second message to the target terminal equipment, and the target terminal equipment receives the second message sent by the routing equipment.
Specifically, the second message is used to instruct the target terminal device to initiate the target capability, where the target capability includes a cellular capability and an access point capability. In some embodiments, in the case that the network connectivity of the wide area network side of the routing device is abnormal, and the terminal device connected with the routing device suddenly breaks the network, the routing device sends a second message to the determined target terminal device, for example, the second message may be an action frame, and is sent to the target terminal device through broadcasting or other modes, so as to instruct the target terminal device to start the target capability, and in addition, the routing device may also send network security information such as a service set identifier SSID, a password, an encryption mode and the like of the routing device to the target terminal device through the second message, so that the routing device may establish network connection with the target terminal device, and embodiments of the present application are not limited in this way.
Alternatively, in a possible implementation, when the routing device determines that there is only one target terminal device, the routing device sends a second message (e.g. an action frame) to the target terminal device, where the second message is used to instruct the target terminal device to turn on the target capability, so that the target terminal device may enable the target capability by receiving the second message, for example, by parsing the action frame, according to its related parameters (e.g. network security information such as service set identifier SSID, password, encryption mode, etc.), for example, surfing the internet through a cellular network, and turning on a hotspot function, thereby allowing the routing device to connect to recover the network.
In another possible implementation manner, when there are a plurality of target terminal devices determined by the routing device, the routing device sends a second message (for example, an action frame) for instructing the target terminal device to start the target capability to the first target terminal device, where the first target terminal device is the target terminal device closest to the routing device and/or has the best connection performance, so that the target terminal device is located. The first target terminal device may initiate the target capability according to its relevant parameters (e.g. service set identifier SSID, password, and network security information such as encryption) by receiving the second message, e.g. by parsing the second message (e.g. action frame), e.g. surfing the internet through a cellular network, and turning on a hotspot function, thereby allowing the routing device to connect to restore the network.
And step S405, the target terminal equipment starts the target capability based on the second message.
Specifically, the target terminal device starts the target capability according to the received 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 its related parameters (such as service set identifier SSID, password, and network security information such as encryption) by parsing the second message (such as an action frame), for example, surfing the internet through a cellular network, and turning on a hotspot function, thereby allowing the routing device to connect to restore the network. Accordingly, in one possible embodiment, when there is only one target terminal device determined by the routing device, the target terminal device activates the target capability (e.g., surfing the internet through the cellular network and turning on the hotspot function), and in another possible embodiment, when there are multiple target terminal devices determined by the routing device, the first target terminal device closest to the routing device and/or having the best connectivity activates the target capability (e.g., surfing the internet through the cellular network and turning on the hotspot function), thereby allowing the routing device to connect to restore the network.
Step S406, if the target terminal equipment starts the target capability, the routing equipment is connected with the target terminal equipment.
Specifically, after the target terminal device starts the target capability, that is, connects to the cellular network and creates a wireless network access point (for example, surfing the internet through the cellular network and opening a hotspot function), the routing device may establish a network connection with the target terminal device by accessing the wireless network access point (for example, a hotspot), so that 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 opening the target capability) recover the network by using the target capability thereof, so that the user can normally use the service provided by the terminal device under the condition that the routing device suddenly breaks the network, thereby improving the experience of the user.
Optionally, in one possible implementation manner, when the target terminal device determined by the routing device has only one target terminal device, if the target terminal device starts the target capability (for example, surfing the internet through a cellular network and opening a hotspot function), the routing device connects to the target terminal device through accessing a wireless network access point (for example, a hotspot) created by the target terminal device, so as to restore the network of the target terminal 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 opening the target capability) can also restore the surfing capability for normal use by the user, thereby reducing inconvenience caused by sudden network disconnection to the user, and further improving the experience of the user.
In another possible implementation manner, when the number of the target terminal devices determined by the routing device is multiple, the routing device sends a second message (e.g. action frame) for indicating that the target terminal device starts the target capability to the first target terminal device, where the first target terminal device is the target terminal device closest to the routing device and/or has the best connection performance, and further, if the target terminal device starts the target capability (e.g. surfing the internet through a cellular network and opening a hotspot function), the routing device connects to the first target terminal device by accessing a wireless network access point (e.g. a hotspot) created by the first target terminal device, so that the first target terminal device is connected to restore the network of the first target terminal device, so that 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 starting the target capability) can also restore the internet capability for normal use by a user, thereby reducing inconvenience caused by sudden network disconnection to the user, and improving the experience of the user.
Referring to fig. 5, fig. 5 is a flowchart illustrating another method for recovering a network according to an embodiment of the present application, where the method may also be applied to the network connection system described in fig. 2A and the operation interfaces of fig. 3A and 3B, and mainly includes the steps of the method for interaction between the terminal device side and the routing device side, and the method includes, but is not limited to, the following steps:
step S501, one or more terminal devices send first messages to the routing device, and the routing device receives the first messages sent by the one or more terminal devices respectively.
Wherein the first message includes capability information of a corresponding terminal device. For a specific description of the routing device sending the first message, reference may be made to the description related to step S401 of the method described in fig. 4, which is not repeated here.
Step S502, the routing device identifies whether the capability information of each terminal device meets the target capability.
Wherein the target capability includes cellular capability and access point capability. For a specific description of the cellular capability and the access point capability, and the capability information of the routing device for identifying the terminal device, reference may be made to the description related to step S402 of the method described in fig. 4, which is not repeated here.
And step S503, the routing device determines the capability information in the one or more terminal devices to meet the target capability, and the terminal device successfully connected with the routing device is determined to be the target terminal device.
Specifically, the description of how the routing device determines the target terminal device may be referred to the related description of step S403 in the method described in fig. 4, which is not repeated herein.
Step S504, the router records the network address of the target terminal device.
Specifically, 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. The routing device may record a media access control address (e.g., a MAC address) and/or a network protocol address (e.g., an IP address) of the target terminal device, such that when a network connectivity anomaly occurs on the wide area network side of the routing device, a second message (e.g., an action frame) may be sent to the target terminal device via the network address to instruct the target terminal device to initiate the target capability.
Step S505, the routing equipment periodically detects the network connectivity of the wide area network side of the routing equipment, or when at least one terminal equipment which is successfully connected with the routing equipment has network abnormality, the routing equipment detects the network connectivity of the wide area network side of the routing equipment.
Specifically, the routing device may periodically perform network connectivity detection on the wide area network side of the routing device, for example, the detection is triggered once every 1 minute, and the specific detection period may change correspondingly according to the sensitivity degree of the routing device to network anomalies, or when at least one terminal device connected with the routing device successfully has network anomalies, for example, service anomalies or cannot access the internet, the routing device may also be triggered to perform network connectivity detection on the wide area network side, so as to timely detect whether the wide area network side of the routing device has network connectivity anomalies, so as to inform the target terminal device of starting the target capability as soon as possible to recover network communication of the terminal device.
Further, in one possible implementation manner, the routing device may determine that the network connectivity of the wide area network side (WAN port) is normal by detecting whether the routing device has downlink data transmission (i.e. whether there is data transmission with a server of the wide area network side), if so, send a network probe request to the wide area network side, where the network probe request is used for requesting to perform a network connectivity test, and send a network probe data packet (Ping packet) through a Ping command or send an address resolution protocol packet (ARP packet) through an address resolution protocol (Address Resolution Protocol, ARP) to request to perform a network connectivity test to the wide area network side inside the routing device. If the routing equipment receives the response about the network detection request, the network connectivity of the wide area network side is determined to be normal, and if the routing equipment does not receive the response about the network detection request, the network connectivity of the wide area network side is determined to be abnormal. Alternatively, when the routing device detects whether the network connectivity of its internal wide area network side is normal, the network connectivity of its wireless interface side (air interface) may also be detected at the same time. The routing device may detect whether one or more terminal devices connected to the routing device generate data, if so, determine that the network connectivity of the wireless interface side of the routing device is normal, if not, send a null data packet, if the routing device receives a response about the null data packet, determine that the network connectivity of the wireless interface side (null interface) of the routing device is normal, or if not, determine that the network connectivity of the wireless interface side (null interface) of the routing device is abnormal, and instruct that the network connectivity of the null interface side (null interface) of the routing device is abnormal by means of turning on an indicator light or the like. By the embodiment of the application, the routing equipment can detect whether the network connectivity of the wide area network side (WAN port) in the routing equipment is abnormal or not so as to recover network communication in a mode of starting the target capability through the target terminal equipment.
Step S506, when network connectivity abnormality occurs on the wide area network side of the routing equipment, the routing equipment sends a second message to the target terminal equipment through the network address, wherein the second message is used for indicating the target terminal equipment to start the target capability, and the target terminal equipment receives the second message sent by the routing equipment.
Specifically, when the routing device detects that the network connectivity of the wide area network side is abnormal, the routing device can send a second message for indicating that the target terminal device starts the target capability to the target terminal device through the recorded network address of the target terminal device. In some embodiments, in case of a sudden disconnection of a terminal device connected to the routing device due to network connectivity anomalies occurring on the wide area network side of the routing device, the routing device may send the second message to the target terminal device via the above-noted network address of the target terminal device, which may include a media access control address (e.g. MAC address) and/or a network protocol address (IP address). The second message may be an action frame, and be sent to the target terminal device through broadcasting or other manners, so as to instruct the target terminal device to start the target capability, and in addition, the routing device may also send, to the target terminal device through the second message, network security information such as an SSID, a password, and an encryption manner, which are service set identifiers of the routing device, so that the routing device may establish a network connection with the target terminal device.
In a possible implementation manner, when the target terminal device determined by the routing device is only one, the routing device may determine a forwarding path of the routing device according to the recorded network address (e.g. a MAC address and/or an IP address) of the target terminal, so as to send a second message (e.g. an action frame) for instructing the target terminal device to start the target capability, typically by broadcasting (or other manners, which are not limited in particular by the embodiment of the present application), to the target terminal device, so that the target terminal device may receive the second message, for example, by parsing the second message (e.g. the action frame), and starting the target capability according to its related parameters (e.g. network security information such as service set identifier SSID, password, encryption manner, etc.), for example, surfing the network through a cellular network, and opening a hot spot function, so as to allow the routing device to connect to recover the network.
In another possible implementation manner, when there are a plurality of target terminal devices determined by the routing device, the routing device may determine a forwarding path of the routing device according to the recorded network address (e.g., MAC address and/or IP address) of the first target terminal device, so as to send a second message (e.g., action frame) to the first target terminal device, where the second message is used to instruct the target terminal device to turn on the target capability, and the first target terminal device is the target terminal device closest to the routing device and/or has the best connection performance, so that the target terminal device is located. Typically, the routing device sends the above second message (e.g. an action frame) to the target terminal device by broadcasting (but may also be other ways, embodiments of the present application are not limited in particular), and the first target terminal device may initiate the target capability by parsing the action frame, for example, according to its related parameters (e.g. network security information such as service set identifier SSID, password, and encryption), for example, surfing the internet through the cellular network, and turning on the hotspot function, thereby allowing the routing device to connect to restore the network.
And step S507, the target terminal equipment starts the target capability based on the second message.
Specifically, the description of the target terminal device according to the received second message sent by the routing device and the starting target capability may refer to the description related to step S405 in the method described in fig. 4, which is not described herein.
Step S508, if the target terminal equipment starts the target capability, the routing equipment is connected with the target terminal equipment.
Specifically, when the target terminal device starts the target capability, the specific description of the connection of the routing device to the target terminal device may be referred to in the description related to step S406 in the method described in fig. 4, which is not described herein.
In one possible implementation manner, please refer to fig. 6, fig. 6 is a flowchart illustrating a method for recovering a network of a network connection system according to an embodiment 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 should be understood that the embodiment of the present application is merely a specific implementation manner of the network restoration method in the network connection system, and does not constitute a specific limitation on the network connection system and/or the network restoration method described above. In other embodiments of the application, the network connection system may include more or less components than embodiments of the application, or certain components may be combined, certain components may be split, or different arrangements of components, and the method of recovering a network may include, but is not limited to, the following steps.
First, when a network connection is established between the terminal device STA61 and the router 60, the following steps may be included:
Step S601, the terminal device STA61 transmits a Probe request (Probe req) to the router 60, and the router 60 receives the Probe request transmitted by the terminal device STA 61.
Specifically, the probe request may include capability information of the terminal device STA61 for indicating whether the terminal device STA61 is cellular capable and access point capable. For example, the probe request may carry vendor information of the terminal device STA61, so that the router 60 may identify whether the terminal device STA61 has cellular capability and access point capability by an identifier in the vendor information. The probe request may further typically comprise identification information of the terminal device STA61, typically a MAC address, as well as other relevant parameters and identifiers, which may be used to probe nearby available wireless network access points.
In step S602, the router 60 transmits a Probe response (Probe rsp) to the terminal device STA61, and the terminal device STA61 receives the Probe response transmitted by the router 60.
In step S603, the terminal STA61 transmits an authentication request (authreq) to the router 60, and the router 60 receives the authentication request transmitted by the terminal STA 61.
Step S604, the router 60 transmits an authentication response (authrsp) to the terminal device STA61, and the terminal device STA61 receives the authentication response transmitted by the router 60.
Step S605, the terminal device STA61 transmits an association request to the router 60 (Assoc Req), and the router 60 receives the association request transmitted by the terminal device STA 61.
Step S606, the router 60 transmits an association response to the terminal device STA61 (Assoc Rsp), and the terminal device STA61 receives the association response transmitted by the router 11.
Step S607, the terminal device STA61 transmits the first handshake message (MSG 1) to the router 60, and the terminal device STA61 receives the first handshake message (MSG 1) transmitted by the router 60.
Step S608 is that in response to the first handshake message (MSG 1) sent by the router 60, the terminal device STA61 sends a second handshake message (MSG 2) to the router 60, and the terminal device STA61 receives the second handshake message (MSG 2) sent by the router 60.
Step S609, in response to the second handshake message (MSG 2) sent by the terminal device STA61, the router 60 sends a third handshake message (MSG 3) to the terminal device STA61, and the terminal device STA61 receives the third handshake message (MSG 3) sent by the router 60.
Step S610, in response to the third handshake message (MSG 3) sent by the router 60, the terminal device STA61 sends a fourth handshake message (MSG 4) to the router 60, and the terminal device STA61 receives the fourth handshake message (MSG 4) sent by the router 60.
Step S611, a Dynamic Host Configuration Protocol (DHCP) procedure is performed between the terminal device STA61 and the router 60.
Step S612 identifies whether the terminal device STA61 has cellular capability and access point capability.
Step S613, if the terminal device STA61 has cellular capability and access point capability, the terminal device STA61 is determined as the target terminal device.
Alternatively, the router 60 may record the network address of the target terminal device STA 61. In particular, the network address comprises a media access control address and/or a network protocol address, such as a MAC address and/or an IP address. The network address of the router 60 recording the target terminal device STA61 can be referred to the above description of step S504 in fig. 5, and will not be repeated here.
It should be noted that, in the embodiment of the present application, when the probe request may carry the capability information of the terminal device STA61, the specific step of establishing the network connection between the terminal device STA61 and the router 60, and in other possible embodiments, the capability information of the terminal device STA61 may also carry one of the authentication request, the association request, and the Dynamic Host Configuration Protocol (DHCP) sent by the terminal device STA61, which is not described in detail in the embodiment of the present application. Whereas, for the specific description of steps S602 to S611 (including other normal access procedures than the probe request, such as the authentication request, the association request, the four-way handshake procedure, the DHCP procedure, etc.), reference may be made to the related description of steps S102 to S111 as described in fig. 1, and for the specific description of steps S612 to S613, reference may be made to the related description of steps S502 to S503 as described in fig. 5. In addition, in the embodiment of the present application, the steps S601-S613 are normal access procedures between the terminal device STA61 and the router 60, and accordingly, specific steps S614-S626 for establishing network connection between the terminal device STA62 and the router 60 are similar to the steps S601-S613 for establishing network connection between the terminal device STA61 and the router 60, and reference may be made to the related descriptions of the steps S601-S613, which are not repeated herein. In addition, there is no explicit sequence between the steps of establishing network connection between the terminal device STA61 and the terminal device STA62 and the router 60, respectively, that is, steps S601 to S613 may be performed synchronously with steps S614 to S626, or may be performed before or after steps S614 to S626, which is not particularly limited in the embodiment of the present application.
Further, after the terminal device STA61 and the terminal device STA62 respectively complete the establishment of the network connection with the router 60, step S627 is that the router 60 confirms whether the network is properly connected by detecting its internal WAN port.
Specifically, the router 60 may periodically perform network connectivity detection on its WAN port, or may trigger the router to perform network connectivity detection on the WAN port when at least one terminal device successfully connected to the router has network abnormality, so as to timely detect whether the WAN port of the router 60 has network connectivity abnormality, so as to inform the target terminal device (the terminal device STA 61) of starting the target capability as soon as possible to restore network communication of the terminal device STA 62. The specific method for detecting the network connectivity of the WAN port by the router 60 may be referred to the above description of step S505 in fig. 5, and will not be repeated here.
In step S628A, if the router 60 detects the WAN port abnormality, the router 60 sends an action frame to the target terminal device for notifying the terminal device STA61 to start the emergency hotspot.
In step S628B, if the router 60 detects the WAN port abnormality, the terminal device STA62 cannot access the internet and waits for the router 60 to recover. If the network of the router 60 is restored, the process proceeds directly to step S632.
Specifically, since the terminal device STA61 is determined as the target terminal device, when the router 60 detects that the network connectivity of the WAN port therein is abnormal, an action frame may be sent to the target terminal device (the terminal device STA 61), where the action frame may include network security information such as a service set identifier SSID, a password, and an encryption manner, and is used to instruct the target terminal device STA61 to use the cellular network to surf the internet and turn on the hotspot capability. Since the terminal device STA62 does not have cellular capability and/or does not have access point capability, it cannot access the network due to detecting the network connectivity abnormality of the WAN port in the router 60, and can only wait for the router 60 to recover. It will be appreciated that steps S628A and S628B occur substantially simultaneously after router 60 sends a WAN port network connectivity anomaly, with no sequencing therebetween.
In step S629, the target terminal device (terminal device STA 61) analyzes the action frame, and according to the relevant parameters, it surfs the internet through the cellular network, and at the same time starts the hotspot capability to provide the router 60 with a wireless network Access Point (AP).
Specifically, the target terminal device (terminal device STA 61) may start its own cellular network capability to access the internet by parsing the action frame according to its related parameters, and turn on the hotspot function to provide the router 60 with a wireless network Access Point (AP).
In step S630, the router 60 accesses a wireless network Access Point (AP) provided by the target terminal device (terminal device STA 61).
Specifically, the router 60 establishes a network connection with the terminal device STA61 by accessing the wireless network Access Point (AP) in order to restore the internet surfing capability of the router 60.
In step S631, the router 60 resumes the internet surfing capability through the terminal apparatus STA 61.
Specifically, the router 60 resumes the internet surfing capability by connecting to the hot spot of the terminal device STA 61.
In step S632, the terminal device STA62 recovers the internet surfing capability without sensing the whole recovery process.
Specifically, since the router 60 recovers the internet surfing capability, the internet surfing capability of the terminal equipment STA62 connected with the router 60 is recovered, and the wireless network Access Point (AP) of the connected router 60 is unchanged, the terminal equipment STA62 does not perceive the whole recovery process, so that in the case that the network abnormality of the wide area network side of the router equipment leads to sudden disconnection, the network of the terminal equipment is quickly recovered to continue to provide services for the user, and the experience of the user is improved.
The method of the embodiment of the application is described in detail, and the equipment provided by the embodiment of the application is described below.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a routing device according to an embodiment of the present application. The routing device 700 may include a first receiving unit 701, an identifying unit 702, a determining unit 703, a first transmitting unit 704, and a first connecting unit 705, wherein the respective units are described in detail as follows.
A first receiving unit 701, configured to receive first messages sent by one or more terminal devices, where the first messages include capability information of the corresponding terminal device;
An identifying unit 702, configured to identify whether capability information of each terminal device meets a target capability, where the target capability includes a cellular capability and an access point capability;
a determining unit 703, configured to determine, as a target terminal device, a terminal device that satisfies the capability information in the one or more terminal devices and that is successfully connected to the target terminal device;
A first sending unit 704, configured to send a second message to the target terminal device when a network abnormality occurs on a wide area network side of the routing device, where the second message is used to instruct the target terminal device to start the target capability;
and the first connection unit 705 is configured to connect the target terminal device if the target terminal device starts the target capability.
In the routing device, a first message sent by one or more terminal devices respectively is received through a first receiving unit 701, the first message can comprise capability information of the corresponding terminal device, an identifying unit 702 identifies whether the capability information of each terminal device meets target capability based on the first message, the target capability comprises cellular capability and access point capability, then the determining unit 703 determines that the capability information in the one or more terminal devices meets the target capability and the terminal device connected successfully is the target terminal device, when a network abnormality occurs on the wide area network side of the routing device, a second message is sent to the target terminal device through the first sending unit 704, the second message can be used for indicating that the target terminal device starts the target capability, if the target terminal device starts the target capability, the routing device can be connected with the target terminal device through the first connecting unit 705, so that the routing device can utilize the target capability of the target terminal device to restore the network capability, other terminal devices connected with the routing device (such as the terminal device without the cellular capability and/or the access point capability) can still be provided with the target capability, or the terminal device can still be opened under the condition that the network is still normal, and the user experience of the user device can still be improved.
In a possible implementation manner, the first message is one of a probe request, an authentication request, an association request, and a dynamic host configuration protocol, which are respectively sent before the one or more terminal devices are successfully connected to 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 to the routing device.
In one possible implementation, the routing device further includes:
And the second connection unit is used for establishing network connection between the routing equipment and the corresponding terminal equipment based on the detection request, the authentication request, the association request and the dynamic host configuration protocol.
In one 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 initiating the target capability includes connecting to the cellular network and creating a wireless network access point.
In one possible implementation, the routing device further includes:
and the recording unit is used for recording the network address of the target terminal equipment, wherein the network address comprises a media access control address and/or a network protocol address.
In one possible implementation, the routing device further includes:
And the detection unit is used for periodically detecting the network connectivity of the wide area network side of the routing equipment, or detecting the network connectivity of the wide area network side of the routing equipment when at least one terminal equipment which is successfully connected with the routing equipment is abnormal.
In a possible implementation manner, the detection unit is specifically configured to:
Detecting whether the routing equipment has downlink data transmission or not, if so, determining that the network connectivity of the wide area network side is normal;
If not, a network detection request is sent to the wide area network side, wherein the network detection request is used for requesting to perform network connectivity test;
if a response about the network detection request is received, determining that the network connectivity of the wide area network side is normal;
And if no response is received about the network detection request, determining that the network connectivity of the wide area network side is abnormal.
In one possible implementation manner, the first sending unit 704 is specifically configured to:
when the number of the target terminal devices is 1, sending the second message to the target terminal devices;
The first connection unit 705 is specifically configured to:
and accessing the wireless network access point created by the target terminal equipment.
In one possible implementation manner, the first sending unit 704 is specifically configured to:
when the number of the target terminal devices is a plurality of, sending the second message to a first target terminal device, wherein the first target terminal device is the terminal device which is closest to the routing device and/or has the best connection performance;
The first connection unit 705 is specifically configured to:
and accessing the wireless network access point created by the first target terminal equipment.
It should be noted that, the functions of the units in the routing device 700 described in the embodiments of the present application may be referred to the method described in fig. 4 and the related description of the method described in fig. 5, which are not repeated herein.
Referring to fig. 8, fig. 8 is a schematic structural diagram of a terminal device according to an embodiment of the present application. The terminal device 800 may include a second transmitting unit 801, a second receiving unit 802, and an initiating unit 803, wherein the respective units are described in detail as follows.
A second sending unit 801, configured to send a first message to a routing device, where the first message includes capability information of the terminal device;
A second receiving unit 802, configured to receive a second message sent by the routing device if the capability information of the terminal device meets a target capability, where the second message is used to instruct the terminal device to start the target capability;
a starting unit 803, configured to start the target capability based on the second message.
In the embodiment of the application, the terminal equipment can send a first message to the routing equipment through the second sending unit 801, the first message can comprise capability information of the terminal equipment, if the capability information of the terminal equipment meets the target capability, and in the case that the capability information of the terminal equipment meets the preset condition, the terminal equipment can receive a second message sent by the routing equipment through the second receiving unit 802, the second message can be used for indicating the terminal equipment to start the target capability, wherein the target capability comprises cellular capability and access point capability, and finally the terminal equipment starts the target capability through the starting unit 803 based on the received second message, so that the routing equipment can establish network connection with the terminal equipment, and the network access capability of the routing equipment is recovered by utilizing the target capability of the target terminal equipment, and meanwhile, other terminal equipment (such as the terminal equipment without the cellular capability and/or the access point capability or the terminal equipment without the target capability being started) connected with the routing equipment can recover the network, so that the terminal equipment can still normally provide service for a user under the condition that the routing equipment suddenly breaks the network, thereby improving the user experience.
In a possible implementation manner, 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.
In one possible implementation manner, the terminal device further includes:
And a third connection unit, configured to establish a network connection with the routing device based on the response of the routing device regarding the probe request, the authentication request, the association request, and the dynamic host configuration protocol.
In one possible implementation manner, the preset condition includes that the terminal device is successfully connected with the routing device, and network abnormality occurs on the wide area network side of the routing device.
In a possible implementation manner, 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.
In one 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 initiating the target capability includes connecting to the cellular network and creating a wireless network access point.
It should be noted that, the functions of each unit in the terminal device 800 described in the embodiment of the present application may be referred to the above description of the method embodiment described in fig. 4 and the method embodiment described in fig. 5, which are not repeated herein.
Referring to fig. 9, fig. 9 is a schematic structural diagram of another routing device according to an embodiment of the present application. By way of example, the routing device 900 includes at least one processor 901 and memory 902. The processor 901 is coupled to the memory 902, and the coupling in the embodiments of the present application may be a communication connection, electrical, or other forms. In particular, memory 902 is used for storing program instructions. The processor 901 is configured to invoke program instructions stored in the memory 902, so that the routing device 900 performs steps performed by the routing device 900 in the method for recovering a network according to the embodiment of the present application. The description of the relevant steps can be referred to above, and will not be repeated here.
It should be noted that, a routing device 900 provided by an embodiment of the present application may include more or fewer components than shown, or may combine some components, split some components, or may be arranged with different components. The illustrated components may be implemented in hardware, software, or any combination of software and hardware.
Referring to fig. 10, fig. 10 is a schematic structural diagram of another terminal device according to an embodiment of the present application. As shown in fig. 10, the terminal device 1000 includes at least one processor 1001 and memory 1002. The processor 1001 is coupled to the memory 1002, and the coupling in the embodiments of the present application may be a communication connection, electrical, or other forms. Specifically, the memory 1002 is used for storing program instructions. The processor 1001 is configured to invoke program instructions stored in the memory 1002, so that the terminal device 1000 performs steps performed by the terminal device 1000 in the method for recovering a network provided by the embodiment of the present application. The description of the relevant steps can be referred to above, and will not be repeated here.
It should be noted that, a terminal device provided in an embodiment of the present application may include more or fewer components than those illustrated, or may combine some components, split some components, or may have different component arrangements. The illustrated components may be implemented in hardware, software, or any combination of software and hardware.
An embodiment of the present application provides a computer readable storage medium storing a computer program that is executed by a processor of the above-mentioned routing device to implement a step performed by the routing device in the method for recovering a network provided in the embodiment of the present application, or that is executed by the processor of the above-mentioned terminal device to implement a step performed by the terminal device in the method for recovering a network provided in the embodiment of the present application.
An embodiment of the present application provides a computer program, where the computer program includes instructions, and the computer program is executed by the routing device processor to implement a step performed by a routing device in the method for recovering a network provided in the embodiment of the present application, or the computer program is executed by the terminal device processor to implement a step performed by a terminal device in the method for recovering a network provided in the embodiment of the present application.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
It should be noted that, for simplicity of description, the foregoing method embodiments are all expressed as a series of combinations of actions, but it should be understood by those skilled in the art that the present application is not limited by the order of actions described, as some steps may be performed in other order or simultaneously, or some steps may be omitted, combined into one step to be performed, and/or split into multiple steps to be performed according to the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required for the present application. It should also be noted that features and functions of two or more devices according to the present disclosure may be embodied in one device. Conversely, the features and functions of one device described above may be further divided into multiple devices to be embodied.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part 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, the processes or functions in accordance with the present application are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Drive (SSD)), etc.
Those of ordinary skill in the art will appreciate that implementing all or part of the above-described method embodiments may be accomplished by a computer program to instruct related hardware, the program may be stored in a computer readable storage medium, and the program may include the above-described method embodiments when executed. The storage medium includes a ROM or a random access memory RAM, a magnetic disk or an optical disk, and other various media capable of storing program codes.
In summary, the foregoing description is only exemplary embodiments of the present application and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement, etc. made according to the disclosure of the present application should be included in the protection scope of the present application.
Claims (21)
1. A method of recovering a network, for use with a routing device, the method comprising:
Receiving first messages sent by one or more terminal devices respectively, wherein the first messages comprise capability information of corresponding terminal devices;
identifying whether capability information of each terminal device meets target capabilities, wherein the target capabilities comprise cellular capabilities and access point capabilities;
The capability information in the one or more terminal devices meets the target capability, and the terminal device successfully connected with the routing device is determined to be the target terminal device;
when network connectivity abnormality occurs on the wide area network side of the routing equipment, sending a second message to the target terminal equipment, wherein the second message is used for indicating the target terminal equipment to start the target capability;
and if the target terminal equipment starts the target capability, connecting the target terminal equipment.
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, which are respectively sent before the one or more terminal devices and the routing device are successfully connected, or is an operation frame, which is respectively sent after the one or more terminal devices and the routing device are successfully connected.
3. The method according to claim 2, wherein the method further comprises:
Based on the probe request, the authentication request, the association request and the dynamic host configuration protocol, network connection is established between the routing device and the corresponding terminal device.
4. A method according to any of claims 1-3, characterized in that the cellular capability is used for connecting to a cellular network and the access point capability is used for creating a wireless network access point.
5. The method according to any one of claims 1-4, further comprising:
And recording the network address of the target terminal equipment, wherein the network address comprises a media access control address and/or a network protocol address.
6. The method according to any one of claims 1-5, further comprising:
and detecting the network connectivity of the wide area network side of the routing equipment periodically or when at least one terminal equipment which is successfully connected with the routing equipment has network abnormality.
7. The method of claim 6, wherein the detecting network connectivity of the wide area network side of the routing device comprises:
Detecting whether the routing equipment has downlink data transmission or not, if so, determining that the network connectivity of the wide area network side is normal;
If not, a network detection request is sent to the wide area network side, wherein the network detection request is used for requesting to perform network connectivity test;
if a response about the network detection request is received, determining that the network connectivity of the wide area network side is normal;
And if no response is received about the network detection request, determining that the network connectivity of the wide area network side is abnormal.
8. The method according to any of claims 1-7, wherein said sending a second message to said target terminal device comprises:
when the number of the target terminal devices is 1, sending the second message to the target terminal devices;
The connecting the target terminal device includes:
and accessing the wireless network access point created by the target terminal equipment.
9. The method according to any of claims 1-7, wherein said sending a second message to said target terminal device comprises:
when the number of the target terminal devices is a plurality of, sending the second message to a first target terminal device, wherein the first target terminal device is the terminal device which is closest to the routing device and/or has the best connection performance;
The connecting the target terminal device includes:
and accessing the wireless network access point created by the first target terminal equipment.
10. A method of recovering a network, applied to a terminal device, the method comprising:
sending a first message to a routing device, wherein the first message comprises capability information of the terminal device;
If the capability information of the terminal equipment meets the target capability, and if the capability information meets the preset condition, receiving a second message sent by the routing equipment, wherein the second message is used for indicating the terminal equipment to start the target capability;
and starting the target capability based on the second message.
11. The method of claim 10, wherein 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.
12. The method of claim 11, wherein the method further comprises:
A network connection is established with the routing device based on the response of the routing device with respect to the probe request, the authentication request, the association request, and the dynamic host configuration protocol.
13. The method according to any one of claims 10-12, wherein the preset condition includes that the terminal device is successfully connected with the routing device, and a network abnormality occurs on a wide area network side of the routing device.
14. The method according to any one of claims 10-13, wherein the preset condition further comprises that the terminal device is the terminal device closest to the routing device and/or the terminal device with the best connectivity.
15. The method according to any of claims 10-14, wherein the cellular capability is used for connecting to a cellular network and the access point capability is used for creating a wireless network access point.
16. A routing device, comprising:
the receiving unit is used for receiving first messages respectively sent by one or more terminal devices, wherein the first messages comprise capability information of the corresponding terminal devices;
An identification unit that identifies whether capability information of each terminal device satisfies a target capability including a cellular capability and an access point capability;
a determining unit, configured to determine, as a target terminal device, a terminal device that satisfies the capability information in the one or more terminal devices and that is successfully connected, as the target capability;
A sending unit, configured to send a second message to the target terminal device when a network abnormality occurs on a wide area network side of the routing device;
And the connection unit is used for connecting the target terminal equipment if the target terminal equipment starts the target capability.
17. A terminal device, comprising:
A sending unit, configured to send a first message to a routing device, where the first message includes capability information of the terminal device;
The receiving unit is used for receiving a second message sent by the routing equipment if the capability information of the terminal equipment meets the target capability, wherein the second message is used for indicating the terminal equipment to start the target capability;
and the starting unit is used for starting the target capability based on the second message.
18. A routing device comprising a memory for storing a computer program and a processor for executing the computer program stored in the memory, such that the routing device performs the method of any of claims 1-9.
19. A terminal device, characterized in that the device comprises a memory for storing a computer program and a processor for executing the computer program stored in the memory, such that the terminal device performs the method of any of claims 10-15.
20. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program, which is executed by the processor to implement the method of any one of claims 1-9 or to implement the method of any one of claims 10-15.
21. A computer program comprising instructions for execution by a computing device to implement the method of any one of claims 1-9 or to implement the method of any one of claims 10-15.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311330146.8A CN119865839A (en) | 2023-10-13 | 2023-10-13 | Method for recovering network and related equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311330146.8A CN119865839A (en) | 2023-10-13 | 2023-10-13 | Method for recovering network and related equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN119865839A true CN119865839A (en) | 2025-04-22 |
Family
ID=95389560
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311330146.8A Pending CN119865839A (en) | 2023-10-13 | 2023-10-13 | Method for recovering network and related equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN119865839A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130110942A1 (en) * | 2011-10-31 | 2013-05-02 | Jun Shen | Intelligent Message Routing And Delivery In A Telecommunications Network |
CN106487584A (en) * | 2016-09-30 | 2017-03-08 | 北京小米移动软件有限公司 | The management method of router, router and mobile terminal |
WO2020164026A1 (en) * | 2019-02-13 | 2020-08-20 | Oppo广东移动通信有限公司 | Random access method, terminal device, and network device |
CN114258037A (en) * | 2020-09-22 | 2022-03-29 | 华为技术有限公司 | Network control method and device and electronic equipment |
US20230171620A1 (en) * | 2021-11-26 | 2023-06-01 | Dish Network, L.L.C. | Enhanced network reliability and/or boosted network speed |
-
2023
- 2023-10-13 CN CN202311330146.8A patent/CN119865839A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130110942A1 (en) * | 2011-10-31 | 2013-05-02 | Jun Shen | Intelligent Message Routing And Delivery In A Telecommunications Network |
CN106487584A (en) * | 2016-09-30 | 2017-03-08 | 北京小米移动软件有限公司 | The management method of router, router and mobile terminal |
WO2020164026A1 (en) * | 2019-02-13 | 2020-08-20 | Oppo广东移动通信有限公司 | Random access method, terminal device, and network device |
CN114258037A (en) * | 2020-09-22 | 2022-03-29 | 华为技术有限公司 | Network control method and device and electronic equipment |
US20230171620A1 (en) * | 2021-11-26 | 2023-06-01 | Dish Network, L.L.C. | Enhanced network reliability and/or boosted network speed |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP7645382B2 (en) | COMMUNICATION APPARATUS AND METHOD FOR MULTI-LINK PEER-TO-PEER COMMUNICATION - Patent application | |
US11277744B2 (en) | Wi-Fi hotspot connection method and terminal | |
US9055430B2 (en) | Rapid local address assignment for wireless communication networks | |
JP5474098B2 (en) | Wireless home mesh network bridge adapter | |
US20180069726A1 (en) | Communication device, communication method, communication system, and computer program product | |
US20180124111A1 (en) | System and method for network entity assisted honeypot access point detection | |
TW201841517A (en) | Techniques for preventing abuse of bootstrapping information in an authentication protocol | |
CN107734528B (en) | Wireless network detection method, device, storage medium and terminal | |
JP4659864B2 (en) | Communication system, authentication server, and communication method | |
WO2017038179A1 (en) | Device, system and method | |
US20240031799A1 (en) | Subscription Identifier Concealment in a Communication Network | |
JP2015070571A (en) | Radio base station device, control method for radio base station device, and program | |
CN119865839A (en) | Method for recovering network and related equipment | |
WO2016139922A1 (en) | Communication device, communication method, communication system, and computer program product | |
CN119255231B (en) | Hotspot control method, system, program product, device and storage medium | |
US20250063526A1 (en) | Offloading network communications to a shared modem | |
JP6142169B2 (en) | Radio communication system, radio communication system control method, program, and radio base station apparatus | |
US20250294460A1 (en) | Method and system for fast network reconnection | |
EP4583587A1 (en) | Router connecting method and apparatus | |
CN117715149A (en) | Processing methods and devices in router connection | |
Senga et al. | Denial-of-Service Attacks on Wi-Fi Protected Management Frames Preventing Reconnection | |
WO2023201551A1 (en) | Information processing method and apparatus, communication device, and storage medium | |
CN119254573A (en) | Wireless device bridging method, system, device and storage medium | |
CN117793678A (en) | Network connection method, electronic equipment and system | |
CN120358631A (en) | Communication method and communication device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |