CN113395726B - Backup link detection method and device - Google Patents
Backup link detection method and device Download PDFInfo
- Publication number
- CN113395726B CN113395726B CN202110689063.2A CN202110689063A CN113395726B CN 113395726 B CN113395726 B CN 113395726B CN 202110689063 A CN202110689063 A CN 202110689063A CN 113395726 B CN113395726 B CN 113395726B
- Authority
- CN
- China
- Prior art keywords
- network
- backup link
- initial
- access condition
- link
- 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.)
- Active
Links
Images
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
- H04W36/00—Hand-off or reselection arrangements
- H04W36/14—Reselecting a network or an air interface
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/24—Reselection being triggered by specific parameters
- H04W36/30—Reselection being triggered by specific parameters by measured or perceived connection quality data
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The application provides a backup link detection method and a device, which are applied to the field of 5G networks, and the method comprises the following steps: when the communication of the wired main link is normal, detecting the wireless backup link according to a set period; if the available frequency band corresponding to the 5G network is searched, judging whether the 5G network meets the access condition of the backup link; when the 5G network is determined to meet the access condition of the backup link, ending the detection; if the 5G network does not meet the access condition of the backup link, judging whether the 4G network meets the access condition of the backup link; and when the 4G network is determined to meet the access condition of the backup link, ending the detection. In the above scheme, if the switching to the backup link is required, the switching can be directly performed according to the detection result of the backup link in the above steps, so that the time for repeatedly searching the network can be saved and the invalid switching can be avoided, thereby reducing the time delay for switching from the wired main link to the backup link.
Description
Technical Field
The present application relates to the field of 5G networks, and in particular, to a backup link detection method and apparatus.
Background
With the development of 5G technology, more and more fields begin to apply 5G technology. For example, the 5G technology may be applied to a router, and a 5G interface having a function equivalent to that of an ethernet port is added to the router, that is, the ethernet port and the 5G port may exist on the 5G router at the same time. In an actual application scenario, a user may use the ethernet port as a wired main link, and use the 5G interface as a backup link of the wired main link, and when it is detected that the wired main link of the ethernet port is abnormal in communication, the ethernet port is adaptively switched to the backup link corresponding to the wireless 5G interface for communication, and at this time, the backup link needs to bear all services of the wired main link.
However, due to the particularity of the 5G link, the device side cannot perceive the unstable quality of the 5G signal by using the above backup link switching mechanism, so that the switching delay is increased.
Disclosure of Invention
An object of the embodiments of the present application is to provide a method and an apparatus for detecting a backup link, so as to solve the technical problem of a long time delay for switching from a wired main link to a backup link.
In order to achieve the above object, the technical solutions provided in the embodiments of the present application are as follows:
in a first aspect, an embodiment of the present application provides a backup link probing method, including: when the communication of the wired main link is normal, detecting the wireless backup link according to a set period; the wireless backup link supports a 5G network and a 4G network; if the available frequency band corresponding to the 5G network is searched, judging whether the 5G network meets the access condition of a backup link; when the 5G network is determined to meet the access condition of the backup link, ending the detection in the current round; if the 5G network does not meet the backup link access condition, judging whether the 4G network meets the backup link access condition; and when the 4G network is determined to meet the access condition of the backup link, ending the detection in the current round. In the scheme, under the condition that the wired main link is normal in communication, the 5G network of the backup link is detected in advance, and if the 5G network of the backup link meets the access condition of the backup link, the detection can be directly finished; or, when the 5G network of the backup link does not meet the access condition of the backup link, the 4G network of the backup link is detected, and if the 4G network of the backup link meets the access condition of the backup link, the detection can be directly finished. Therefore, if the switching to the backup link is needed, the switching can be directly carried out according to the detection result of the backup link in the steps, so that the time for repeatedly searching the network can be saved, the invalid switching can be avoided, and the time delay for switching from the wired main link to the backup link can be reduced.
In an optional embodiment of the present application, the determining whether the 5G network meets the backup link access condition includes: acquiring Reference Signal Received Power (RSRP) representing the signal quality of the 5G network and a signal to interference plus noise ratio (SINR); judging the signal range of the 5G network according to the RSRP and the SINR; if the signal range of the 5G network represents that the 5G network is a near point signal or a middle point signal, triggering 5G dialing and judging whether the dialing is successful; and if the dialing is successful, determining that the 5G network meets the access condition of the backup link. In the above scheme, the signal range of the 5G network may be determined through two data, namely RSRP and SINR of the 5G network, and the signal quality of the 5G network is determined according to the signal range of the 5G network, so as to determine whether the 5G network meets the access condition of the backup link, thereby further detecting the backup link. Therefore, if the switching to the backup link is needed, the switching can be directly carried out according to the detection result of the backup link in the steps, so that the time for repeatedly searching the network can be saved, the invalid switching can be avoided, and the time delay for switching from the wired main link to the backup link can be reduced.
In an optional embodiment of the present application, the obtaining reference signal received power RSRP and signal-to-interference-plus-noise ratio SINR, which characterize signal quality of the 5G network, includes: sampling the 5G network according to a preset sampling period and preset sampling times to obtain a plurality of initial RSRPs and a plurality of initial SINRs; calculating a standard deviation of a plurality of the initial RSRPs and a standard deviation of a plurality of the initial SINRs; if the standard deviation of the initial RSRPs and the standard deviation of the initial SINRs are smaller than a preset standard deviation threshold, calculating the average value of the initial RSRPs and the average value of the initial SINRs; determining an average of a plurality of the initial RSRPs as an RSRP of the 5G network, and determining an average of a plurality of the initial SINRs as an SINR of the 5G network. In the above solution, the accuracy of the 5G network signal quality determination is improved by performing statistics on the average value of the plurality of initial RSRPs and the average value of the plurality of initial SINRs.
In an optional embodiment of the present application, the obtaining reference signal received power RSRP and signal-to-interference-plus-noise ratio SINR, which characterize signal quality of the 5G network, includes: sampling the 5G network according to a preset sampling period and preset sampling times to obtain a plurality of initial RSRPs and a plurality of initial SINRs; calculating a plurality of standard deviations of the initial RSRP and a plurality of standard deviations of the initial SINR; if the standard deviations of the initial RSRPs and the initial SINRs are smaller than a preset standard deviation threshold, determining that the current sampling is effective sampling, and adding one to the number of the effective sampling; when the number of times of the effective sampling reaches a preset number threshold, calculating the average value of a plurality of initial RSRPs corresponding to the effective sampling and the average value of a plurality of initial SINRs; determining an average of a plurality of the initial RSRPs as the RSRP of the 5G network, and determining an average of a plurality of the initial SINRs as the SINR of the 5G network. In the above scheme, the accuracy of judging the 5G network signal quality is improved by performing statistics on the average value of the initial RSRP and the average values of the multiple initial SINRs, which are continuously and effectively sampled for multiple times.
In an optional embodiment of the present application, after the calculating a plurality of standard deviations for the initial RSRP and a plurality of standard deviations for the initial SINR, the method further comprises: and if the standard deviation of the plurality of initial RSRPs or the standard deviation of the plurality of initial SINRs is larger than a preset standard deviation threshold, determining the current sampling as invalid sampling and clearing the times of the valid sampling. In the above scheme, the accuracy of judging the 5G network signal quality is improved by counting the average value of the initial RSRP and the average values of the initial SINRs of the multiple effective samples continuously.
In an optional embodiment of the present application, after the determining the signal range of the 5G network according to the RSRP and the SINR, the method further includes: if the signal range of the 5G network represents that the 5G network is a far point signal or a far point signal, determining that the 5G network does not meet the access condition of the backup link; the judging whether the 4G network meets the access condition of the backup link comprises the following steps: triggering 4G dialing and judging whether the dialing is successful or not; and if the dialing is successful, determining that the 4G network meets the access condition of the backup link. In the above scheme, when the device end can search for the 5G network but the 5G network is a far-point signal or an extreme far-point signal, the device end can determine whether the 4G network meets the backup link access condition, and when the condition is met, the device end ends the detection of the backup link. Therefore, if switching to the backup link is required, switching can be directly performed according to the detection result of the backup link in the steps, so that the situation that the backup link is unavailable due to poor signal quality is avoided, invalid switching is avoided, and the time delay for switching from the wired main link to the backup link can be reduced.
In an optional embodiment of the present application, after the determining a signal range of the 5G network according to the RSRP and the SINR, the method further comprises: if the signal range of the 5G network represents that the 5G network is a far-point signal, triggering 5G dialing and judging whether the dialing is successful; if the dialing is successful, judging whether a 5G interface corresponding to the 5G network vibrates; if the 5G interface does not vibrate, judging whether the packet loss rate of data transmission is smaller than a preset packet loss threshold value; and if the packet loss rate is smaller than the preset packet loss threshold, determining that the 5G network meets the access condition of the backup link. In the above scheme, when the device end can search for the 5G network and the 5G network signal is a far-point signal, the device end can further determine whether the 5G interface does not vibrate and whether the packet loss rate is low, so that the device end can directly access the 5G network when the signal quality of the 5G network is good, and therefore invalid handover can be avoided.
In an optional embodiment of the present application, after the determining whether the dialing is successful, the method further includes: if the dialing fails, inquiring whether the SIM card is in arrearage, if yes, sending an alarm, and ending the detection in the current round. In the above scheme, when the 5G network or the 4G network cannot dial successfully, the arrearage condition of the device side can be further queried, and the user is reminded to recharge when the arrearage exists, so that invalid switching caused by the arrearage is avoided, and the time delay of switching from the wired main link to the backup link can be reduced.
In an optional embodiment of the present application, after the detecting the wireless backup link according to a set period when the communication of the wired main link is normal, the method further includes: if the available frequency band corresponding to the 5G network is not searched and the available frequency band corresponding to the 4G network is searched, judging whether the 4G network meets the access condition of the backup link; and if the 4G network meets the access condition of the backup link, ending the current detection. In the above scheme, when the 5G network cannot be searched, the 4G network can be probed, and when the 4G network meets the backup link access condition, the probing can be directly finished. Therefore, if the switching to the backup link is needed, the switching can be directly carried out according to the detection result of the backup link in the steps, so that the time for repeatedly searching the network is saved, and the time delay for switching from the wired main link to the backup link can be reduced.
In an optional embodiment of the present application, the determining whether the 4G network meets the backup link access condition includes: triggering 4G dialing and judging whether the dialing is successful or not; and if the dialing is successful, determining that the 4G network meets the access condition of the backup link. In the above scheme, when the 5G network cannot be searched, the 4G network may be probed, and when the 4G network meets the backup link access condition, the probing may be directly ended. Therefore, if the switching to the backup link is needed, the switching can be directly carried out according to the detection result of the backup link in the steps, so that the time for repeatedly searching the network is saved, and the time delay for switching from the wired main link to the backup link can be reduced.
In a second aspect, an embodiment of the present application provides a backup link detecting apparatus, including: the detection module is used for detecting the wireless backup link according to a set period when the communication of the wired main link is normal; the wireless backup link supports a 5G network and a 4G network; the 5G network judging module is used for judging whether the 5G network meets the access condition of the backup link if the available frequency band corresponding to the 5G network is searched; an ending module, configured to end the current round of detection when it is determined that the 5G network meets the backup link access condition; the 4G network judging module is used for judging whether the 4G network meets the access condition of the backup link if the 5G network does not meet the access condition of the backup link; the ending module is further configured to switch to a backup link corresponding to the 4G network when the 4G network meets the backup link access condition and meets the active-standby link switching condition. In the scheme, under the condition that the wired main link is normal in communication, the 5G network of the backup link is detected in advance, and if the 5G network of the backup link meets the access condition of the backup link, the detection can be directly finished; or, when the 5G network of the backup link does not meet the access condition of the backup link, the 4G network of the backup link is detected, and if the 4G network of the backup link meets the access condition of the backup link, the detection can be directly finished. Therefore, if switching to the backup link is required, switching can be directly performed according to the detection result of the backup link in the steps, so that time for repeatedly searching the network can be saved, invalid switching can be avoided, and time delay for switching from the wired main link to the backup link can be reduced.
In an optional embodiment of the present application, the 5G network determining module is further configured to: acquiring Reference Signal Received Power (RSRP) representing the signal quality of the 5G network and a signal to interference plus noise ratio (SINR); judging the signal range of the 5G network according to the RSRP and the SINR; if the signal range of the 5G network represents that the 5G network is a near point signal or a middle point signal, triggering 5G dialing and judging whether the dialing is successful; and if the dialing is successful, determining that the 5G network meets the access condition of the backup link. In the above scheme, the signal range of the 5G network may be determined through two data, namely RSRP and SINR of the 5G network, and the signal quality of the 5G network is determined according to the signal range of the 5G network, so as to determine whether the 5G network meets the access condition of the backup link, thereby further detecting the backup link. Therefore, if the switching to the backup link is needed, the switching can be directly carried out according to the detection result of the backup link in the steps, so that the time for repeatedly searching the network can be saved, the invalid switching can be avoided, and the time delay for switching from the wired main link to the backup link can be reduced.
In an optional embodiment of the present application, the 5G network determining module is further configured to: sampling the 5G network according to a preset sampling period and preset sampling times to obtain a plurality of initial RSRPs and a plurality of initial SINRs; calculating a plurality of standard deviations of the initial RSRP and a plurality of standard deviations of the initial SINR; if the standard deviation of the initial RSRPs and the standard deviation of the initial SINRs are smaller than a preset standard deviation threshold, calculating the average value of the initial RSRPs and the average value of the initial SINRs; determining an average of a plurality of the initial RSRPs as the RSRP of the 5G network, and determining an average of a plurality of the initial SINRs as the SINR of the 5G network. In the above scheme, the accuracy of the 5G network signal quality judgment is improved by performing statistics on the average value of the plurality of initial RSRPs and the average value of the plurality of initial SINRs.
In an optional embodiment of the present application, the 5G network determining module is further configured to: sampling the 5G network according to a preset sampling period and preset sampling times to obtain a plurality of initial RSRPs and a plurality of initial SINRs; calculating a plurality of standard deviations of the initial RSRP and a plurality of standard deviations of the initial SINR; if the standard deviations of the initial RSRPs and the initial SINRs are smaller than a preset standard deviation threshold, determining that the current sampling is effective sampling, and adding one to the number of the effective sampling; when the number of times of the effective sampling reaches a preset number threshold, calculating an average value of a plurality of initial RSRPs and an average value of a plurality of initial SINRs corresponding to the effective sampling; determining an average of a plurality of the initial RSRPs as an RSRP of the 5G network, and determining an average of a plurality of the initial SINRs as an SINR of the 5G network. In the above scheme, the accuracy of judging the 5G network signal quality is improved by counting the average value of the initial RSRP and the average values of the initial SINRs of the multiple effective samples continuously.
In an optional embodiment of the present application, the 5G network determining module is further configured to: and if the standard deviation of the plurality of initial RSRPs or the standard deviation of the plurality of initial SINRs is larger than a preset standard deviation threshold, determining the sampling as invalid sampling and clearing the times of the valid sampling. In the above scheme, the accuracy of judging the 5G network signal quality is improved by performing statistics on the average value of the initial RSRP and the average values of the multiple initial SINRs, which are continuously and effectively sampled for multiple times.
In an optional embodiment of the present application, the 5G network determining module is further configured to: if the signal range of the 5G network represents that the 5G network is a far point signal or a far point signal, determining that the 5G network does not meet the access condition of the backup link; the judging whether the 4G network meets the access condition of the backup link includes: triggering 4G dialing and judging whether the dialing is successful or not; and if the dialing is successful, determining that the 4G network meets the access condition of the backup link. In the above scheme, when the device end can search for the 5G network but the 5G network is a far-point signal or an extremely-far-point signal, the device end can determine whether the 4G network meets the backup link access condition, and when the backup link access condition is met, the device end ends the detection of the backup link. Therefore, if switching to the backup link is required, switching can be directly performed according to the detection result of the backup link in the steps, so that the situation that the backup link is unavailable due to poor signal quality is avoided, invalid switching is avoided, and the time delay for switching from the wired main link to the backup link can be reduced.
In an optional embodiment of the present application, the 5G network determining module is further configured to: if the signal range of the 5G network represents that the 5G network is a far-point signal, triggering 5G dialing and judging whether the dialing is successful; if the dialing is successful, judging whether a 5G interface corresponding to the 5G network vibrates; if the 5G interface does not vibrate, judging whether the packet loss rate of data transmission is smaller than a preset packet loss threshold value; and if the packet loss rate is smaller than the preset packet loss threshold, determining that the 5G network meets the access condition of the backup link. In the above scheme, when the device end can search for the 5G network and the 5G network signal is a far-point signal, the device end can further determine whether the 5G interface does not vibrate and whether the packet loss rate is low, so that the device end can directly access the 5G network when the signal quality of the 5G network is good, and therefore invalid handover can be avoided.
In an optional embodiment of the present application, the backup link probing apparatus further includes: and the query module is used for querying whether the SIM card is arrearage or not if the dialing fails, and sending an alarm to finish the detection of the round if the SIM card is arrearage. In the above scheme, when the 5G network or the 4G network cannot dial successfully, the arrearage condition of the equipment end can be further inquired, the user is reminded to recharge when the arrearage exists, and invalid switching caused by the arrearage is avoided, so that the time delay of switching from the wired main link to the backup link can be reduced.
In an optional embodiment of the present application, the 4G network determining module is further configured to: if the available frequency band corresponding to the 5G network is not searched and the available frequency band corresponding to the 4G network is searched, judging whether the 4G network meets the access condition of the backup link; and if the 4G network meets the access condition of the backup link, ending the current detection. In the above scheme, when the 5G network cannot be searched, the 4G network can be probed, and when the 4G network meets the backup link access condition, the probing can be directly finished. Therefore, if the switching to the backup link is needed, the switching can be directly carried out according to the detection result of the backup link in the steps, so that the time for repeatedly searching the network is saved, and the time delay for switching from the wired main link to the backup link can be reduced.
In an optional embodiment of the present application, the 4G network determining module is further configured to: triggering 4G dialing and judging whether the dialing is successful or not; and if the dialing is successful, determining that the 4G network meets the access condition of the backup link. In the above scheme, when the 5G network cannot be searched, the 4G network can be probed, and when the 4G network meets the backup link access condition, the probing can be directly finished. Therefore, if the switching to the backup link is needed, the switching can be directly carried out according to the detection result of the backup link in the steps, so that the time for repeatedly searching the network is saved, and the time delay for switching from the wired main link to the backup link can be reduced.
In a third aspect, an embodiment of the present application provides an electronic device, including: a processor, a memory, and a bus; the processor and the memory are communicated with each other through the bus; the memory stores program instructions executable by the processor, the processor invoking the program instructions capable of performing a backup link probing method as in the first aspect.
In a fourth aspect, embodiments of the present application provide a non-transitory computer-readable storage medium storing computer instructions that cause the computer to perform the backup link probing method as in the first aspect.
In order to make the aforementioned objects, features and advantages of the present application comprehensible, embodiments accompanied with figures are described in detail below.
Drawings
To more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a flowchart of a backup link detection method according to an embodiment of the present application;
fig. 2 is a flowchart of a specific implementation of step S103 provided in an embodiment of the present application;
fig. 3 is a flowchart of a specific implementation of step S201 provided in an embodiment of the present application;
fig. 4 is a block diagram of a backup link detection apparatus according to an embodiment of the present disclosure;
fig. 5 is a block diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
In an application scenario of the 5G router, a user may use an ethernet port on the router as a wired main link, and use the 5G interface as a backup link of the wired main link. When the wired main link works normally, the 5G interface in the backup link is in a down state; when the communication of the wired main link is interrupted, the 5G interface of the backup link is triggered to dial, so that the equipment end can be switched to the backup 5G link for communication. However, the 5G network has a certain specificity, which causes a problem in the handover process of the backup link.
Firstly, because the coverage area of the current 5G base station is much smaller than that of the 4G base station and the current 5G base station is in a transition stage from the non-independent Networking (NSA) to the independent networking (SA), the signal quality of the 5G network is unstable, and two situations may occur: firstly, a 5G network can be searched and accessed, but immediately drop the line after the access, and the situation of repeated dialing and drop occurs, so that in this situation, although the dialing can be successfully performed, the link switching is equivalent to the invalid switching due to the unstable link quality, so that the backup link cannot play the role of backup; secondly, a 5G network can be searched but cannot be accessed, the equipment end always searches for the network according to the sequence of 5G-4G-3G-2G, and finally the network is successfully accessed, so that the switching time delay is larger;
in addition, in addition to the problem of the handover process caused by the unstable signal quality of the 5G network, when a Subscriber Identity Module (SIM) card defaults, the device side cannot sense the defaults, which also causes the unavailability of the backup link, and the link handover is equivalent to the invalid handover, and the backup link cannot play the role of backup.
Therefore, based on the above analysis, an embodiment of the present application provides a method for detecting a backup link, so as to solve the problem that the time delay for switching from a wired main link to a backup link is long. The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
Referring to fig. 1, fig. 1 is a flowchart of a backup link detection method according to an embodiment of the present disclosure, where the backup link detection method includes the following steps:
step S101: when the communication of the wired main link is normal, the wireless backup link is detected according to a set period.
Step S102: and if the available frequency band corresponding to the 5G network is searched, judging whether the 5G network meets the access condition of the backup link.
Step S103: and when the 5G network is determined to meet the access condition of the backup link, ending the detection in the current round.
Step S104: and if the 5G network does not meet the access condition of the backup link, judging whether the 4G network meets the access condition of the backup link.
Step S105: and when the 4G network is determined to meet the access condition of the backup link, ending the detection in the current round.
The backup link in the embodiment of the application supports a 5G network and a 4G network, and in order to avoid the problem of long switching delay caused by the particularity of the 5G network when the wired main link needs to be switched to the backup link, the backup link can be detected in advance when the wired main link is in normal communication. That is to say, the backup link detection method provided by the embodiment of the present application is executed in a case where the wired main link communication is normal.
Specifically, network search may be performed on the entire network frequency band according to a set period, so as to obtain a current available frequency band corresponding to the current time. The embodiment of the present application does not specifically limit the set period, for example: every other day or every 3 hours, etc. In addition to performing network searches at a set cycle, network searches may also be performed when certain conditions are met, such as: the network search can be carried out when the instruction of the user is received; or, network search and the like may be performed when it is detected that the quality of the wired main link signal is poor, and those skilled in the art may make appropriate adjustments according to actual situations, and the embodiment of the present application is described by taking the result of one network search as an example.
In the process of network search, the device end searches according to the sequence of a 5G network, a 4G network, a 3G network and a 2G network. That is, the available frequency band corresponding to the 5G network is searched first, and if the available frequency band corresponding to the 5G network is searched, the step S102 is executed; if the available frequency band corresponding to the 5G network is not searched, the available frequency band corresponding to the 4G network is searched, and the subsequent steps are executed (which will be described in the subsequent embodiments).
First, a backup link detection method provided in the embodiment of the present application is introduced when an available frequency band corresponding to a 5G network is searched.
The equipment end can judge whether the 5G network meets the access condition of the backup link, if the 5G network meets the access condition of the backup link, the current 5G network can be used as the backup link to be accessed, and the detection of the backup link in the current round can be finished; if the 5G network does not meet the access condition of the backup link, the current 5G network cannot be used as the backup link for access, and whether the 4G network meets the access condition of the backup link can be further judged.
Wherein, the condition that the 5G network does not satisfy the backup link access condition may include: available frequency bands corresponding to the 5G network can be searched, but the signal quality of the 5G network is poor; or, the available frequency band corresponding to the 5G network can be searched, and the signal quality of the 5G network is better, but the dialing is unsuccessful, and the like. And the condition that the 5G network satisfies the backup link access condition may include: the available frequency band corresponding to the 5G network can be searched, the signal quality of the 5G network is good, and the dialing is successful.
It can be understood that, after the detection is finished, when the device side meets the condition of switching the main link and the standby link, the device side can be directly switched from the wired main link to the corresponding backup link according to the detection result. The condition for meeting the switching of the main link and the standby link refers to the condition when the wired main link needs to be switched to the standby link. As an implementation manner, when the communication of the wired main link is abnormal, the switching condition of the main link and the standby link can be considered to be met; as another embodiment, when a user sub-switching instruction is received, it may be considered that the main/standby link switching condition is satisfied. The embodiments of the present application are not specifically limited, and those skilled in the art can appropriately select the embodiments according to actual situations.
As it can be determined whether the 5G network meets the backup link access condition through the signal quality of the 5G network, as an implementation manner, please refer to fig. 2, where fig. 2 is a flowchart of a specific implementation manner of step S102 provided in this embodiment of the present application, and the step S102 may include the following steps:
step S201: and acquiring RSRP and signal and SINR representing the signal quality of the 5G network.
Step S202: and judging the signal range of the 5G network according to the RSRP and the SINR.
Step S203: if the signal range of the 5G network represents that the 5G network is a near point signal or a middle point signal, triggering 5G dialing and judging whether the dialing is successful.
Step S204: and if the dialing is successful, determining that the 5G network meets the access condition of the backup link.
Specifically, the device side may obtain signal quality data of the 5G network, so as to determine the signal quality of the 5G network according to the signal quality data, thereby determining whether the 5G network meets the backup link access condition. The method for acquiring the signal quality data of the 5G network by the device side is various, for example: receiving signal quality data sent by external equipment; or, the searched 5G network is analyzed to obtain signal quality data, etc., which is not specifically limited in the embodiments of the present application.
As an implementation manner, the Signal quality data provided in the embodiment of the present application may include Reference Signal Received Power (RSRP) and Signal to Interference plus Noise Ratio (SINR). The RSRP is one of a key parameter that can represent the wireless signal strength in a Long Term Evolution (LTE) network and a physical layer measurement requirement, and is an average value of signal powers received on all Resource Elements (REs) that carry reference signals within a certain symbol; SINR refers to the ratio of the strength of a received desired signal to the strength of a received interfering signal (noise and interference).
When the RSRP is greater than-85 dbm and the SINR is greater than 25, the signal range of the 5G network can be considered to represent that the 5G network is a near point signal; when the RSRP is greater than-95 dbm and less than-85 dbm and the SINR is greater than 16 and less than 25, the signal range of the 5G network represents that the 5G network is a midpoint signal; when the RSRP is greater than-115 dbm and less than-105 dbm and the SINR is greater than 3 and less than 10, the signal range of the 5G network can be considered to represent that the 5G network is a far-point signal; when RSRP is less than-85-115 dmb and SINR is less than 3, the signal range of the 5G network can be considered to characterize the 5G network as a far-point signal.
Therefore, the signal range of the 5G network can be determined through the RSRP and SINR of the 5G network, and the signal quality of the 5G network is determined according to the signal range of the 5G network, so as to determine whether the 5G network meets the access condition of the backup link, thereby further probing the backup link. Therefore, if the switching to the backup link is needed, the switching can be directly carried out according to the detection result of the backup link in the steps, so that the time for repeatedly searching the network can be saved, the invalid switching can be avoided, and the time delay for switching from the wired main link to the backup link can be reduced.
In the embodiment of the application, when the communication of the wired main link is normal, the 5G interface is in a down state. Therefore, the results obtained by the above determination steps can be divided into two cases, that is, the 5G network is a near point signal or a middle point signal, and the 5G network is a far point signal or an extreme far point signal.
When the result obtained by the above step is that the 5G network is a near point signal or a middle point signal, the signal quality of the 5G network can be considered to be better, so that 5G dialing can be triggered and whether the dialing is successful or not can be judged.
After triggering the 5G dialing, the dialing operation may be performed, and after waiting for a certain time (e.g., 10 minutes, 5 minutes, etc.), it is checked whether the network can be successfully registered. If the network can be successfully registered, the dialing is considered to be successful, the 5G network can be determined to meet the access condition of the backup link, and the detection of the backup link can be directly finished. As an implementation manner, if the network is an NSA network, a backup link corresponding to a 5G network may be accessed in a manner of locking a frequency to a frequency point of the 5G network; if the network is the SA network, the backup link corresponding to the 5G network can be forced to be accessed to the SA network.
If the SIM card can not be successfully registered to the network, the dialing is considered to be failed, the 5G network is determined not to meet the access condition of the backup link, and then whether the SIM card is in arrearage or not is inquired. The equipment end can send a short message to an operator to inquire whether the SIM card of the equipment end is in arrearage. If the operator represents the arrearage of the SIM card according to the content returned by the short message, the equipment end can output prompt information to remind the user that the arrearage is caused; if the operator indicates that the SIM card is not defaulted according to the content returned by the short message, the equipment end can output prompt information to remind the user equipment end or the router of generating an unknown error and needing to further confirm the reason.
It should be noted that, there are various ways for the device side to output the prompt message, for example: outputting voice prompt information; or, a prompt box pops up on the screen, and the like, which is not specifically limited in the embodiment of the present application, and those skilled in the art may make appropriate adjustments according to actual situations.
Therefore, when the 5G network or the 4G network cannot dial successfully, the arrearage condition of the equipment end can be further inquired, the user is reminded to recharge when the arrearage exists, and the invalid switching caused by the arrearage is avoided, so that the time delay of switching from the wired main link to the backup link can be reduced.
When the result obtained by the above step is that the 5G network is a far point signal or an extreme far point signal, it may be considered that the signal quality of the 5G network is poor at this time, and it is determined that the 5G network does not satisfy the backup link access condition, at this time, the above step S104 may be executed, that is, it may be determined whether the 4G network satisfies the backup link access condition.
Similar to the above embodiment, the device side may determine whether the 4G network satisfies the backup link access condition, and if the 4G network satisfies the backup link access condition, it indicates that the current 4G network may be accessed as a backup link, so that the detection on the backup link may be directly ended; and if the 4G network does not meet the access condition of the backup link, indicating that the current 4G network cannot be accessed as the backup link.
Wherein, the condition that the 4G network does not satisfy the backup link access condition may include: available frequency bands corresponding to the 4G network can be searched, but the signal quality of the 4G network is poor; or, the available frequency band corresponding to the 4G network can be searched, and the signal quality of the 4G network is good, but the dialing is unsuccessful, and the like. And the condition that the 5G network satisfies the backup link access condition may include: the available frequency band corresponding to the 4G network can be searched, the signal quality of the 4G network is good, and the dialing is successful.
It is understood that the embodiment of determining whether the 4G network satisfies the backup link access condition is similar to the embodiment of determining whether the 5G network satisfies the backup link access condition, and therefore will not be described here.
After triggering 4G dialing, the operation of dialing may be performed, and after waiting for a certain time, it is checked whether the network can be successfully registered. If the network can be successfully registered, the dialing is considered to be successful, the 4G network can be determined to meet the access condition of the backup link, and the current round of detection is directly finished. As an implementation manner, a frequency locking manner may be adopted to a frequency point of the 4G network or a forced manner to the 4G standard may be adopted to access a backup link corresponding to the 4G network.
If the SIM card cannot be successfully registered to the network, the dialing is considered to be failed, the 4G network can be determined not to meet the access condition of the backup link, and then whether the SIM card is in arrearage or not is inquired. The implementation of the arrearage query is similar to that of the above embodiments, and is not described here again.
Therefore, when the device side can search for the 5G network but the 5G network is a far-point signal or an extremely-far-point signal, the device side can determine whether the 4G network meets the backup link access condition, and when the backup link access condition is met, the device side ends the detection of the backup link. Therefore, if switching to the backup link is required, switching can be directly performed according to the detection result of the backup link in the steps, so that the situation that the backup link is unavailable due to poor signal quality is avoided, invalid switching is avoided, and the time delay for switching from the wired main link to the backup link can be reduced.
In addition to the above-mentioned case where the 5G interface is in the down state, there may be a case where the 5G interface is in the up state. In this case, the results obtained by the determination in the above steps can be classified into three cases, i.e., the 5G network is a near point signal or a middle point signal, the 5G network is a far point signal, and the 5G network is an extremely far point signal. The embodiment of determining whether the 5G network or the 4G network satisfies the backup link access condition when the 5G network is the near point signal or the middle point signal and the 5G network is the far point signal is similar to the embodiment in the foregoing embodiment, and details are not repeated here.
And when the result obtained by the step is that the 5G network is a far point signal, triggering 5G dialing and judging whether the dialing is successful. And if the packet loss rate is less than the preset packet loss threshold, determining that the 5G network meets the backup link access condition, and when the main link and standby link switching condition is met, directly accessing the 5G network.
Therefore, when the device end can search for the 5G network and the 5G network signal is a far-point signal, the device end can further determine whether the 5G interface does not vibrate and whether the packet loss rate is small, so that the device end can directly access the 5G network when the signal quality of the 5G network is good, and therefore invalid switching can be avoided.
To further describe the step S201, please refer to fig. 3 in order to improve the accuracy of determining the 5G network signal quality, where fig. 3 is a flowchart of an embodiment of the step S201 provided in this application, and the step S201 may include the following steps:
step S301: and sampling the 5G network according to a preset sampling period and preset sampling times to obtain a plurality of initial RSRPs and a plurality of initial SINRs.
Step S302: standard deviations of the plurality of initial RSRPs and of the plurality of initial SINRs are calculated.
Step S303: and if the standard deviation of the initial RSRPs and the standard deviation of the initial SINRs are smaller than a preset standard deviation threshold, determining the current sampling as an effective sampling and adding one to the number of the effective sampling.
Step S304: and when the times of the effective sampling reach a preset time threshold, calculating the average value of a plurality of initial RSRPs corresponding to the effective sampling and the average value of a plurality of initial SINRs.
Step S305: determining an average of the plurality of initial RSRPs as an RSRP of the 5G network, and determining an average of the plurality of initial SINRs as an SINR of the 5G network.
Specifically, a sampling period and a sampling frequency may be set in advance, and the 5G network is sampled according to the preset sampling period and the preset sampling frequency, so as to obtain a plurality of initial RSRPs and a plurality of initial SINRs. For example: the sampling period is 1 second, and the sampling times are 15 times, that is, 15 times of sampling within 1 second, and 15 initial RSRPs and 15 initial SINRs are obtained.
And then, calculating the standard deviation of the plurality of initial RSRPs and the standard deviation of the plurality of initial SINRs, and judging whether the calculated standard deviation is smaller than a preset standard deviation threshold value. If the standard deviations of the initial RSRPs and the initial SINRs are smaller than the preset standard threshold, it indicates that the signal jitter is small, and the sampling may be regarded as one effective sampling.
As an embodiment, the average value of the plurality of initial RSRPs and the average value of the plurality of initial SINRs in the sample may be directly calculated, and the average value of the plurality of initial RSRPs is determined to be RSRP of the 5G network, and the average value of the plurality of initial SINRs is determined to be SINR of the 5G network. As another embodiment, the data of multiple effective samples may also be accumulated, when the number of accumulated effective samples reaches a preset number threshold, an average value of all initial RSRPs and an average value of initial SINRs corresponding to each effective sample are calculated, then the average value of multiple initial RSRPs is determined as RSRP of a 5G network, and the average value of multiple initial SINRs is determined as SINR of the 5G network.
If the standard deviation of the initial RSRPs is greater than the preset standard threshold or the standard deviation of the initial SINRs is greater than the preset standard threshold, it indicates that the signal jitter is large, and the sampling may be regarded as an invalid sampling.
As an embodiment, during the process of accumulating the data of multiple valid samples, the data of invalid samples can be excluded, for example: the first and third samples are valid samples and the second sample is invalid sample, the data of the first and third samples can be accumulated. As another embodiment, in the process of accumulating data of multiple valid samples, data of multiple consecutive valid samples may be accumulated, that is, when one of the samples is an invalid sample, the number of valid samples may be cleared, for example: the first, third and fourth samples are valid samples and the second sample is invalid sample, the data of the third and fourth samples can be accumulated, but the data of the first sample is not accumulated.
Therefore, the accuracy of the 5G network signal quality judgment is improved by counting the average value of the plurality of initial RSRPs and the average value of the plurality of initial SINRs.
In the scheme, under the condition that the wired main link is normal in communication, the 5G network of the backup link is detected in advance, and if the 5G network of the backup link meets the access condition of the backup link, the detection can be directly finished; or, when the 5G network of the backup link does not meet the access condition of the backup link, the 4G network of the backup link is detected, and if the 4G network of the backup link meets the access condition of the backup link, the detection can be directly finished. Therefore, if switching to the backup link is required, switching can be directly performed according to the detection result of the backup link in the steps, so that time for repeatedly searching the network can be saved, invalid switching can be avoided, and time delay for switching from the wired main link to the backup link can be reduced.
It should be noted that, because the 5G network corresponds to a plurality of available frequency bands, when searching for an available frequency band corresponding to the 5G network, as an implementation manner, available frequency bands corresponding to all current 5G networks may be first searched, and then the backup link detection method provided in the embodiment of the present application may be executed for all available frequency bands corresponding to the 5G network.
As another embodiment, the available frequency bands corresponding to the current 5G network may also be sequentially searched according to a certain order, and the backup link detection method provided in the embodiment of the present application may be executed for the available frequency band corresponding to each 5G network. For example, the first frequency band is searched, and if the first frequency band is not searched, the second frequency band is searched; if the second frequency band is searched, executing a backup link detection method aiming at the second frequency band; and continuing to search the third frequency band, and if the third frequency band is searched, executing a backup link detection method aiming at the third frequency band until all the frequency bands corresponding to the 5G network are searched. And only when the frequency bands corresponding to all the 5G networks are unavailable, switching to the 4G network.
The search sequence may be a sequence set by a user in advance, or may be a random sequence, which is not specifically limited in the embodiment of the present application. The first frequency band, the second frequency band and the third frequency band are corresponding to a 5G network, and those skilled in the art can set the first frequency band, the second frequency band and the third frequency band appropriately according to actual conditions.
Next, a backup link detection method provided in an embodiment of the present application is described when an available frequency band corresponding to a 5G network is not searched and an available frequency band corresponding to a 4G network is searched.
Similar to the implementation mode when the type of the currently available frequency band is the 5G network, the device side may determine whether the 4G network satisfies the backup link access condition, and if the 4G network satisfies the backup link access condition, may directly end the detection on the backup link.
In the embodiment of the present application, the 4G network meeting the backup link access condition means that the frequency band corresponding to the 4G network can be searched and the dialing success is determined when the 4G dialing is triggered.
In the above scheme, when the 5G network cannot be searched, the 4G network may be detected, and if the 4G network of the backup link satisfies the backup link access condition, the detection may be directly ended. Therefore, if the switching to the backup link is needed, the switching can be directly carried out according to the detection result of the backup link in the steps, so that the time for repeatedly searching the network can be saved, the invalid switching can be avoided, and the time delay for switching from the wired main link to the backup link can be reduced.
In summary, in the case that the wired main link is in normal communication, the 5G network of the backup link may be detected in advance. When the available frequency band corresponding to the 5G network is searched, whether the 5G network meets the access condition of the backup link is judged, if yes, the current 5G network can be used as the backup link to be accessed, and when the switching condition of the main link and the standby link is met, the backup link corresponding to the 5G network can be switched; if the condition is not met, the current 5G network cannot be used as a backup link for access, and whether the 4G network meets the backup link access condition can be judged. When the 4G network meets the access condition of the backup link and meets the switching condition of the main link and the standby link, the backup link corresponding to the 4G network can be switched. When the available frequency band corresponding to the 5G network is not searched and the available frequency band corresponding to the 4G network is searched, whether the 4G network meets the backup link access condition or not can be judged, and when the 4G network meets the backup link access condition and meets the main/standby link switching condition, the backup link corresponding to the 4G network can be switched. Therefore, by adopting the backup link detection method provided by the embodiment of the application, the time for repeatedly searching the network can be saved, and invalid switching can be avoided, so that the time delay for switching from the wired main link to the backup link can be reduced.
Referring to fig. 4, fig. 4 is a block diagram of a backup link detecting device according to an embodiment of the present disclosure, where the backup link detecting device 400 includes: the detection module 401 is configured to detect a wireless backup link according to a set period when communication of the wired main link is normal; the wireless backup link supports a 5G network and a 4G network; a 5G network determining module 402, configured to determine whether the 5G network meets a backup link access condition if an available frequency band corresponding to the 5G network is searched; an ending module 403, configured to end the current round of detection when it is determined that the 5G network meets the backup link access condition; a 4G network determining module 404, configured to determine whether the 4G network satisfies the backup link access condition if the 5G network does not satisfy the backup link access condition; the ending module 403 is further configured to switch to a backup link corresponding to the 4G network when the 4G network meets the backup link access condition and meets a master/backup link switching condition.
In the embodiment of the application, under the condition that the wired main link is normal in communication, the 5G network of the backup link is detected in advance, and if the 5G network of the backup link meets the access condition of the backup link, the detection can be directly finished; or, when the 5G network of the backup link does not meet the access condition of the backup link, the 4G network of the backup link is detected, and if the 4G network of the backup link meets the access condition of the backup link, the detection can be directly finished. Therefore, if the switching to the backup link is needed, the switching can be directly carried out according to the detection result of the backup link in the steps, so that the time for repeatedly searching the network can be saved, the invalid switching can be avoided, and the time delay for switching from the wired main link to the backup link can be reduced.
Further, the 5G network determining module 402 is further configured to: acquiring Reference Signal Received Power (RSRP) and a signal-to-interference-plus-noise ratio (SINR) representing the signal quality of the 5G network; judging the signal range of the 5G network according to the RSRP and the SINR; if the signal range of the 5G network represents that the 5G network is a near point signal or a middle point signal, triggering 5G dialing and judging whether the dialing is successful; and if the dialing is successful, determining that the 5G network meets the access condition of the backup link.
In the embodiment of the application, the signal range of the 5G network can be determined through two data, namely RSRP and SINR of the 5G network, and the signal quality of the 5G network is determined according to the signal range of the 5G network, so that whether the 5G network meets the access condition of the backup link is judged, and the backup link is further detected. Therefore, if the switching to the backup link is needed, the switching can be directly carried out according to the detection result of the backup link in the steps, so that the time for repeatedly searching the network can be saved, the invalid switching can be avoided, and the time delay for switching from the wired main link to the backup link can be reduced.
Further, the 5G network determining module 402 is further configured to: sampling the 5G network according to a preset sampling period and preset sampling times to obtain a plurality of initial RSRPs and a plurality of initial SINRs; calculating a standard deviation of a plurality of the initial RSRPs and a standard deviation of a plurality of the initial SINRs; if the standard deviation of the initial RSRPs and the standard deviation of the initial SINRs are smaller than a preset standard deviation threshold, calculating the average value of the initial RSRPs and the average value of the initial SINRs; determining an average of a plurality of the initial RSRPs as an RSRP of the 5G network, and determining an average of a plurality of the initial SINRs as an SINR of the 5G network.
In the embodiment of the application, the average value of the plurality of initial RSRPs and the average value of the plurality of initial SINRs are counted, so that the accuracy of judging the 5G network signal quality is improved.
Further, the 5G network determining module 402 is further configured to: sampling the 5G network according to a preset sampling period and preset sampling times to obtain a plurality of initial RSRPs and a plurality of initial SINRs; calculating a standard deviation of a plurality of the initial RSRPs and a standard deviation of a plurality of the initial SINRs; if the standard deviations of the plurality of initial RSRPs and the plurality of initial SINRs are smaller than a preset standard deviation threshold, determining the current sampling as an effective sampling and adding one to the number of the effective sampling; when the number of times of the effective sampling reaches a preset number threshold, calculating the average value of a plurality of initial RSRPs corresponding to the effective sampling and the average value of a plurality of initial SINRs; determining an average of a plurality of the initial RSRPs as an RSRP of the 5G network, and determining an average of a plurality of the initial SINRs as an SINR of the 5G network.
In the embodiment of the application, the accuracy of judging the 5G network signal quality is improved by counting the average value of the initial RSRP and the average values of the initial SINRs which are continuously and repeatedly effectively sampled.
Further, the 5G network determining module 402 is further configured to: and if the standard deviation of the plurality of initial RSRPs or the standard deviation of the plurality of initial SINRs is larger than a preset standard deviation threshold, determining the sampling as invalid sampling and clearing the times of the valid sampling.
In the embodiment of the application, the accuracy of judging the 5G network signal quality is improved by counting the average value of the initial RSRP and the average values of the initial SINRs which are continuously and repeatedly effectively sampled.
Further, the 5G network determining module 402 is further configured to: if the signal range of the 5G network represents that the 5G network is a far point signal or a far point signal, determining that the 5G network does not meet the access condition of the backup link; the judging whether the 4G network meets the access condition of the backup link includes: triggering 4G dialing and judging whether the dialing is successful or not; and if the dialing is successful, determining that the 4G network meets the access condition of the backup link.
In this embodiment of the present application, when the device end may search for a 5G network but the 5G network is a far-point signal or an extremely-far-point signal, the device end may determine whether the 4G network meets an access condition of a backup link, and end detection on the backup link when the access condition is met. Therefore, if switching to the backup link is required, switching can be directly performed according to the detection result of the backup link in the steps, so that the situation that the backup link is unavailable due to poor signal quality is avoided, invalid switching is avoided, and the time delay for switching from the wired main link to the backup link can be reduced.
Further, the 5G network determining module 402 is further configured to: if the signal range of the 5G network represents that the 5G network is a far-point signal, triggering 5G dialing and judging whether the dialing is successful; if the dialing is successful, judging whether a 5G interface corresponding to the 5G network vibrates; if the 5G interface does not vibrate, judging whether the packet loss rate of data transmission is smaller than a preset packet loss threshold value; and if the packet loss rate is smaller than the preset packet loss threshold, determining that the 5G network meets the access condition of the backup link.
In the embodiment of the application, when the device end can search for a 5G network and a 5G network signal is a far-point signal, the device end can further determine whether a 5G interface does not vibrate and whether a packet loss rate is low, so that the device end can directly access the 5G network when the signal quality of the 5G network is good, and therefore invalid switching can be avoided.
Further, the backup link probing apparatus 400 further includes: and the query module is used for querying whether the SIM card is in arrearage or not if the dialing fails, and sending an alarm to finish the detection of the current round if the SIM card is in arrearage.
In the embodiment of the application, when the 5G network or the 4G network cannot dial successfully, the arrearage condition of the equipment end can be further inquired, the user is reminded to recharge when the arrearage exists, and invalid switching caused by the arrearage is avoided, so that the time delay of switching from the wired main link to the backup link can be reduced.
Further, the 4G network determining module 404 is further configured to: if the available frequency band corresponding to the 5G network is not searched and the available frequency band corresponding to the 4G network is searched, judging whether the 4G network meets the access condition of the backup link; and if the 4G network meets the access condition of the backup link, ending the current detection.
In the embodiment of the application, when the 5G network cannot be searched, the 4G network can be detected, and when the 4G network meets the backup link access condition, the detection can be directly finished. Therefore, if the switching to the backup link is needed, the switching can be directly carried out according to the detection result of the backup link in the steps, so that the time for repeatedly searching the network is saved, and the time delay for switching from the wired main link to the backup link can be reduced.
Further, the 4G network determining module 404 is further configured to: triggering 4G dialing and judging whether the dialing is successful or not; and if the dialing is successful, determining that the 4G network meets the access condition of the backup link.
In the embodiment of the application, when the 5G network cannot be searched, the 4G network can be detected, and when the 4G network meets the access condition of the backup link, the detection can be directly finished. Therefore, if the switching to the backup link is needed, the switching can be directly carried out according to the detection result of the backup link in the steps, so that the time for repeatedly searching the network is saved, and the time delay for switching from the wired main link to the backup link can be reduced.
Referring to fig. 5, fig. 5 is a block diagram of an electronic device according to an embodiment of the present disclosure, where the electronic device 500 includes: at least one processor 501, at least one communication interface 502, at least one memory 503, and at least one communication bus 504. Wherein the communication bus 504 is used for implementing direct connection communication of these components, the communication interface 502 is used for communicating signaling or data with other node devices, and the memory 503 stores machine readable instructions executable by the processor 501. When the electronic device 500 is in operation, the processor 501 communicates with the memory 503 via the communication bus 504, and the machine-readable instructions, when invoked by the processor 501, perform the backup link probing method described above.
For example, the processor 501 of the embodiment of the present application may read the computer program from the memory 503 through the communication bus 504 and execute the computer program to implement the following method: step S101: when the communication of the wired main link is normal, the wireless backup link is detected according to a set period. Step S102: and if the available frequency band corresponding to the 5G network is searched, judging whether the 5G network meets the access condition of the backup link. Step S103: and when the 5G network is determined to meet the access condition of the backup link, ending the detection in the current round. Step S104: and if the 5G network does not meet the access condition of the backup link, judging whether the 4G network meets the access condition of the backup link. Step S105: and when the 4G network is determined to meet the access condition of the backup link, ending the detection in the current round.
The processor 501 may be an integrated circuit chip having signal processing capabilities. The Processor 501 may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), application Specific Integrated Circuits (ASICs), field-Programmable Gate arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. Which may implement or perform the various methods, steps, and logic blocks disclosed in embodiments of the present application. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The Memory 503 may include, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Read Only Memory (EPROM), an electrically Erasable Read Only Memory (EEPROM), and the like.
It will be appreciated that the configuration shown in FIG. 5 is merely illustrative and that electronic device 500 may include more or fewer components than shown in FIG. 5 or have a different configuration than shown in FIG. 5. The components shown in fig. 5 may be implemented in hardware, software, or a combination thereof. In this embodiment, the electronic device 500 may be, but is not limited to, an entity device such as a desktop, a laptop, a smart phone, an intelligent wearable device, and a vehicle-mounted device, and may also be a virtual device such as a virtual machine. In addition, the electronic device 500 is not necessarily a single device, and may also be a combination of multiple devices, such as a server cluster, and the like. In this embodiment, the device side in the backup link detection method may be implemented by using the electronic device 500 shown in fig. 5.
Embodiments of the present application further provide a computer program product, including a computer program stored on a non-transitory computer-readable storage medium, where the computer program includes program instructions, and when the program instructions are executed by a computer, the computer can perform the steps of the backup link probing method in the foregoing embodiments, for example, including: when the communication of the wired main link is normal, detecting the wireless backup link according to a set period; the wireless backup link supports a 5G network and a 4G network; if the available frequency band corresponding to the 5G network is searched, judging whether the 5G network meets the access condition of the backup link; when the 5G network is determined to meet the access condition of the backup link, ending the detection in the current round; if the 5G network does not meet the backup link access condition, judging whether the 4G network meets the backup link access condition; and when the 4G network is determined to meet the access condition of the backup link, ending the detection in the current round.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described apparatus embodiments are merely illustrative, and for example, the division of the units into only one type of logical function may be implemented in other ways, and for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
In addition, units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist alone, or two or more modules may be integrated to form an independent part.
In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made to the present application by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims (11)
1. A method for backup link probing, comprising:
when the communication of the wired main link is normal, detecting the wireless backup link according to a set period; the wireless backup link supports a 5G network and a 4G network;
if the available frequency band corresponding to the 5G network is searched, judging whether the 5G network meets the access condition of a backup link;
when the 5G network is determined to meet the access condition of the backup link, ending the detection in the current round;
if the 5G network does not meet the backup link access condition, judging whether the 4G network meets the backup link access condition;
when the 4G network is determined to meet the access condition of the backup link, ending the current detection;
the judging whether the 5G network meets the access condition of the backup link comprises the following steps: judging whether the 5G network meets the access condition of a backup link or not according to the signal range of the 5G network;
the judging whether the 4G network meets the access condition of the backup link includes:
triggering 4G dialing and judging whether the 4G network meets the backup link access condition according to whether the dialing is successful.
2. The backup link detection method according to claim 1, wherein before the determining whether the 5G network satisfies the backup link access condition according to the signal range of the 5G network, the method further comprises:
acquiring Reference Signal Received Power (RSRP) and a signal-to-interference-plus-noise ratio (SINR) representing the signal quality of the 5G network;
judging the signal range of the 5G network according to the RSRP and the SINR;
the judging whether the 5G network meets the access condition of the backup link according to the signal range of the 5G network comprises the following steps:
if the signal range of the 5G network represents that the 5G network is a near point signal or a middle point signal, triggering 5G dialing and judging whether the dialing is successful;
and if the dialing is successful, determining that the 5G network meets the access condition of the backup link.
3. The method of claim 2, wherein the obtaining the reference signal received power, RSRP, and the signal to interference plus noise ratio, SINR, that characterize the signal quality of the 5G network comprises:
sampling the 5G network according to a preset sampling period and preset sampling times to obtain a plurality of initial RSRPs and a plurality of initial SINRs;
calculating a standard deviation of a plurality of the initial RSRPs and a standard deviation of a plurality of the initial SINRs;
if the standard deviation of the initial RSRPs and the standard deviation of the initial SINRs are smaller than a preset standard deviation threshold, calculating the average value of the initial RSRPs and the average value of the initial SINRs;
determining an average of a plurality of the initial RSRPs as an RSRP of the 5G network, and determining an average of a plurality of the initial SINRs as an SINR of the 5G network.
4. The method of claim 2, wherein the obtaining the Reference Signal Received Power (RSRP) and the signal-to-interference-plus-noise ratio (SINR) that characterize the signal quality of the 5G network comprises:
sampling the 5G network according to a preset sampling period and preset sampling times to obtain a plurality of initial RSRPs and a plurality of initial SINRs;
calculating a plurality of standard deviations of the initial RSRP and a plurality of standard deviations of the initial SINR;
if the standard deviations of the plurality of initial RSRPs and the plurality of initial SINRs are smaller than a preset standard deviation threshold, determining the current sampling as an effective sampling and adding one to the number of the effective sampling;
when the number of times of the effective sampling reaches a preset number threshold, calculating the average value of a plurality of initial RSRPs corresponding to the effective sampling and the average value of a plurality of initial SINRs;
determining an average of a plurality of the initial RSRPs as an RSRP of the 5G network, and determining an average of a plurality of the initial SINRs as an SINR of the 5G network.
5. The backup link probing method of claim 4 wherein after said calculating a plurality of standard deviations for said initial RSRP and a plurality of standard deviations for said initial SINR, the method further comprises:
and if the standard deviation of the plurality of initial RSRPs or the standard deviation of the plurality of initial SINRs is larger than a preset standard deviation threshold, determining the current sampling as invalid sampling and clearing the times of the valid sampling.
6. The method according to claim 2, wherein the determining whether the 5G network satisfies the backup link access condition according to the signal range of the 5G network comprises:
if the signal range of the 5G network represents that the 5G network is a far point signal or a far point signal, determining that the 5G network does not meet the access condition of the backup link;
the triggering of 4G dialing and the judgment of whether the 4G network meets the backup link access condition according to whether the dialing is successful include:
and if the dialing is successful, determining that the 4G network meets the access condition of the backup link.
7. The method of claim 2, wherein the triggering 4G dialing and determining whether the 4G network satisfies the backup link access condition according to whether the dialing is successful comprises:
if the signal range of the 5G network represents that the 5G network is a far-point signal, triggering 5G dialing and judging whether the dialing is successful;
if the dialing is successful, judging whether a 5G interface corresponding to the 5G network vibrates;
if the 5G interface does not vibrate, judging whether the packet loss rate of data transmission is smaller than a preset packet loss threshold value;
and if the packet loss rate is smaller than the preset packet loss threshold, determining that the 5G network meets the access condition of the backup link.
8. The backup link probing method according to any of claims 2-7 wherein after said determining whether the dialing is successful, the method further comprises:
if the dialing fails, inquiring whether the SIM card is in arrearage, if yes, sending an alarm, and ending the detection in the current round.
9. A backup link probing apparatus, comprising:
the detection module is used for detecting the wireless backup link according to a set period when the communication of the wired main link is normal; the wireless backup link supports a 5G network and a 4G network;
the 5G network judging module is used for judging whether the 5G network meets the access condition of the backup link if the available frequency band corresponding to the 5G network is searched;
an ending module, configured to end the current round of detection when it is determined that the 5G network meets the backup link access condition;
the 4G network judging module is used for judging whether the 4G network meets the access condition of the backup link if the 5G network does not meet the access condition of the backup link;
the ending module is further configured to switch to a backup link corresponding to the 4G network when the 4G network meets the backup link access condition and meets a master/backup link switching condition;
the 5G network judgment module is further configured to: judging whether the 5G network meets a backup link access condition or not according to the signal range of the 5G network;
the 4G network judgment module is further configured to: triggering 4G dialing and judging whether the 4G network meets the access condition of a backup link according to whether the dialing is successful.
10. An electronic device, comprising: a processor, memory, and a bus;
the processor and the memory are communicated with each other through the bus;
the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform the backup link probing method of any of claims 1-8.
11. A non-transitory computer-readable storage medium storing computer instructions which, when executed by a computer, cause the computer to perform the backup link probing method of any one of claims 1-8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110689063.2A CN113395726B (en) | 2021-06-21 | 2021-06-21 | Backup link detection method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110689063.2A CN113395726B (en) | 2021-06-21 | 2021-06-21 | Backup link detection method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113395726A CN113395726A (en) | 2021-09-14 |
CN113395726B true CN113395726B (en) | 2023-02-17 |
Family
ID=77623228
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110689063.2A Active CN113395726B (en) | 2021-06-21 | 2021-06-21 | Backup link detection method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113395726B (en) |
Citations (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1812342A (en) * | 2006-01-23 | 2006-08-02 | 北京朗通环球科技有限公司 | Link backup method and apparatus for computer network |
CN1976311A (en) * | 2006-11-24 | 2007-06-06 | 中兴通讯股份有限公司 | Multi-loop contact Ethernet loop network loop protection switchover method |
CN101170459A (en) * | 2007-11-28 | 2008-04-30 | 中兴通讯股份有限公司 | Failure detection and link recovery method based on bidirectional forward link |
EP1964326A1 (en) * | 2005-12-22 | 2008-09-03 | Telefonaktiebolaget LM Ericsson (publ) | Admission control utilizing backup links in an ethernet-based access network |
CN101841408A (en) * | 2010-05-07 | 2010-09-22 | 北京星网锐捷网络技术有限公司 | Primary/standby route equipment switching method and route equipment |
CN101841429A (en) * | 2010-04-30 | 2010-09-22 | 广州合立正通信息网络集成有限公司 | Method for implementing backup of wireless IP network, 3G and GPRS link |
CN102387087A (en) * | 2011-12-18 | 2012-03-21 | 西安安智科技有限公司 | Method and system for realizing standby route based on active detection technique |
CN102984743A (en) * | 2012-12-13 | 2013-03-20 | 迈普通信技术股份有限公司 | Main/standby link switching method and wireless route equipment |
CN103812710A (en) * | 2014-02-28 | 2014-05-21 | 广州供电局有限公司 | Communication terminal special for power communication |
CN104796329A (en) * | 2014-01-16 | 2015-07-22 | ***通信集团北京有限公司 | Automatic link switching method and automatic link switching device |
WO2015135280A1 (en) * | 2014-03-14 | 2015-09-17 | 中兴通讯股份有限公司 | Method, system and access router for realizing on demand smart dialing |
CN105933939A (en) * | 2016-04-13 | 2016-09-07 | 杭州华三通信技术有限公司 | Link maintenance method and device |
CN106332201A (en) * | 2015-07-07 | 2017-01-11 | 西安中兴新软件有限责任公司 | Wireless hotspot switching method and mobile terminal |
CN110519148A (en) * | 2019-07-25 | 2019-11-29 | 深圳震有科技股份有限公司 | Method, system and the storage medium in the multilink backup creation channel VPN |
CN110661702A (en) * | 2018-06-28 | 2020-01-07 | 中兴通讯股份有限公司 | Link backup method and device and computer readable storage medium |
CN112243282A (en) * | 2020-09-03 | 2021-01-19 | 深圳市鸿启富科技有限公司 | Distributed wifi networking link backup method |
CN112867099A (en) * | 2020-12-30 | 2021-05-28 | 惠州Tcl移动通信有限公司 | 5G terminal access 5G network optimization processing method, device, equipment and medium |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8040795B2 (en) * | 2006-05-10 | 2011-10-18 | Cisco Technology, Inc. | Backup path convergence in the APS environment |
CN102299830B (en) * | 2011-09-20 | 2014-02-05 | 杭州华三通信技术有限公司 | Dial-up link detection method and equipment |
CN104080119B (en) * | 2013-03-29 | 2018-05-11 | 华为技术有限公司 | Signaling method and equipment |
US10069538B2 (en) * | 2015-10-16 | 2018-09-04 | Honeywell International Inc. | Fault tolerant physical layer solution for FOUNDATION FIELDBUS H1 networks or other networks in industrial process control and automation systems |
CN111148137B (en) * | 2019-12-30 | 2023-06-27 | 宇龙计算机通信科技(深圳)有限公司 | Data transmission method and device, storage medium and terminal |
CN112788691B (en) * | 2021-03-03 | 2023-06-30 | 北京小米移动软件有限公司 | Method, device and storage medium for controlling network connection |
CN112954755B (en) * | 2021-04-20 | 2023-10-17 | 努比亚技术有限公司 | Optimized network switching method and device and computer readable storage medium |
-
2021
- 2021-06-21 CN CN202110689063.2A patent/CN113395726B/en active Active
Patent Citations (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1964326A1 (en) * | 2005-12-22 | 2008-09-03 | Telefonaktiebolaget LM Ericsson (publ) | Admission control utilizing backup links in an ethernet-based access network |
CN1812342A (en) * | 2006-01-23 | 2006-08-02 | 北京朗通环球科技有限公司 | Link backup method and apparatus for computer network |
CN1976311A (en) * | 2006-11-24 | 2007-06-06 | 中兴通讯股份有限公司 | Multi-loop contact Ethernet loop network loop protection switchover method |
CN101170459A (en) * | 2007-11-28 | 2008-04-30 | 中兴通讯股份有限公司 | Failure detection and link recovery method based on bidirectional forward link |
CN101841429A (en) * | 2010-04-30 | 2010-09-22 | 广州合立正通信息网络集成有限公司 | Method for implementing backup of wireless IP network, 3G and GPRS link |
CN101841408A (en) * | 2010-05-07 | 2010-09-22 | 北京星网锐捷网络技术有限公司 | Primary/standby route equipment switching method and route equipment |
CN102387087A (en) * | 2011-12-18 | 2012-03-21 | 西安安智科技有限公司 | Method and system for realizing standby route based on active detection technique |
CN102984743A (en) * | 2012-12-13 | 2013-03-20 | 迈普通信技术股份有限公司 | Main/standby link switching method and wireless route equipment |
CN104796329A (en) * | 2014-01-16 | 2015-07-22 | ***通信集团北京有限公司 | Automatic link switching method and automatic link switching device |
CN103812710A (en) * | 2014-02-28 | 2014-05-21 | 广州供电局有限公司 | Communication terminal special for power communication |
WO2015135280A1 (en) * | 2014-03-14 | 2015-09-17 | 中兴通讯股份有限公司 | Method, system and access router for realizing on demand smart dialing |
CN106332201A (en) * | 2015-07-07 | 2017-01-11 | 西安中兴新软件有限责任公司 | Wireless hotspot switching method and mobile terminal |
CN105933939A (en) * | 2016-04-13 | 2016-09-07 | 杭州华三通信技术有限公司 | Link maintenance method and device |
CN110661702A (en) * | 2018-06-28 | 2020-01-07 | 中兴通讯股份有限公司 | Link backup method and device and computer readable storage medium |
CN110519148A (en) * | 2019-07-25 | 2019-11-29 | 深圳震有科技股份有限公司 | Method, system and the storage medium in the multilink backup creation channel VPN |
CN112243282A (en) * | 2020-09-03 | 2021-01-19 | 深圳市鸿启富科技有限公司 | Distributed wifi networking link backup method |
CN112867099A (en) * | 2020-12-30 | 2021-05-28 | 惠州Tcl移动通信有限公司 | 5G terminal access 5G network optimization processing method, device, equipment and medium |
Non-Patent Citations (3)
Title |
---|
张龙江等.基于ARP链路检测技术的固网语音业务双路由保护方案.《山东通信技术》.2018,(第02期), * |
李铭超等.基于BFD的IPRAN路由器快速切换功能.《计算机与现代化》.2017,(第02期), * |
林鸿等.一种蓝牙网络接入点快速切换机制.《计算机研究与发展》.2003,(第10期), * |
Also Published As
Publication number | Publication date |
---|---|
CN113395726A (en) | 2021-09-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11290173B2 (en) | Radio link monitoring method and apparatus | |
US9801010B2 (en) | ZIGBEE network-based data transmission method, apparatus, and system | |
CN105517080B (en) | A kind of network formats switching method, device and terminal | |
CN110691384A (en) | Network slice using method and device | |
CN112564954B (en) | Network quality prediction method and device | |
US9402172B2 (en) | Message combination method and device | |
CN112311600A (en) | Strategy suggestion generation method and device based on network data analysis | |
CN110856188B (en) | Communication method, apparatus, system, and computer-readable storage medium | |
CN110381603B (en) | Random access method and terminal | |
CN110461023B (en) | Cell residence method and device for voice service, storage medium and main base station | |
CN112235780B (en) | Data service switching method, equipment, device and storage medium | |
CN113395726B (en) | Backup link detection method and device | |
CN107018088B (en) | Transmission link selection method and device | |
CN111343647A (en) | Method, apparatus, device and medium for user perception evaluation | |
CN106717064B (en) | Data transmission method, device and system of time division duplex wireless data transmission system | |
CN112383660B (en) | Throughput rate testing method and device of intelligent terminal, storage medium and terminal | |
CN113727386B (en) | Communication method and device | |
CN111787584B (en) | Data acquisition method and system based on Internet of things | |
CN109714722B (en) | Management method and device of indoor antenna, electronic equipment and storage medium | |
CN111328101B (en) | Measurement event response method and device and terminal equipment | |
CN114245364B (en) | Method and device for analyzing attribution of wireless access network device | |
CN115529605B (en) | Method and device for identifying cell configuration repeater and electronic equipment | |
CN113727398B (en) | Pilot frequency switching method and device | |
CN116233909A (en) | Abnormal base station determining method and device, electronic equipment and storage medium | |
CN115150933A (en) | Slice determining method and device and storage medium |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |