CN113873598A - Network switching method, device, network equipment and storage medium - Google Patents

Network switching method, device, network equipment and storage medium Download PDF

Info

Publication number
CN113873598A
CN113873598A CN202111202292.3A CN202111202292A CN113873598A CN 113873598 A CN113873598 A CN 113873598A CN 202111202292 A CN202111202292 A CN 202111202292A CN 113873598 A CN113873598 A CN 113873598A
Authority
CN
China
Prior art keywords
communication
condition
network
preset
communication quality
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.)
Granted
Application number
CN202111202292.3A
Other languages
Chinese (zh)
Other versions
CN113873598B (en
Inventor
李晓文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu Communication Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Maipu Communication Technology Co Ltd filed Critical Maipu Communication Technology Co Ltd
Priority to CN202111202292.3A priority Critical patent/CN113873598B/en
Publication of CN113873598A publication Critical patent/CN113873598A/en
Application granted granted Critical
Publication of CN113873598B publication Critical patent/CN113873598B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0055Transmission or use of information for re-establishing the radio link
    • H04W36/0058Transmission of hand-off measurement information, e.g. measurement reports
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0083Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists
    • H04W36/0085Hand-off measurements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/14Reselecting a network or an air interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/30Reselection being triggered by specific parameters by measured or perceived connection quality data

Abstract

The application provides a network switching method, a network switching device, network equipment and a storage medium, and relates to the technical field of communication. According to the method, the communication quality condition during communication of the first communication link corresponding to the first operator network is obtained, the communication quality condition comprises a communication delay condition and/or a communication packet loss condition, and when the communication quality condition does not meet a preset communication condition, the second communication link corresponding to the second operator network is switched to carry out communication, so that when the communication quality is not good, the automatic switching of the operator network can be carried out in time, the stability of network communication is ensured, and the efficiency is higher.

Description

Network switching method, device, network equipment and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a network switching method, an apparatus, a network device, and a storage medium.
Background
With the rapid development of mobile communication technology, the fifth Generation mobile communication technology (5G) has the characteristics of higher bandwidth, ultra-high reliability and low latency communication than the fourth Generation mobile communication technology (4G), and can provide high-quality data transmission service in Virtual Private Dial-up Networks (VPDN).
However, the network speed provided by the network operator may be affected by various factors, and the network services of different operators may also be different in the same geographical environment. The uplink download rate in the data communication process of the 5G wireless router is high or low, most of the situations depend on the signal quality provided by a network operator, and the uplink download rate is higher in places with good signal quality. In order to ensure the stability of data communication, in the prior art, generally, when a signal is not good, a manual handover is performed to another operator network, which may not perform a network handover in time, and thus the handover efficiency is low.
Disclosure of Invention
An object of the embodiments of the present application is to provide a network switching method, an apparatus, a network device, and a storage medium, so as to solve the problem in the prior art that network switching is performed manually and the switching efficiency is low.
In a first aspect, an embodiment of the present application provides a network handover method, which is applied to a network device, and the method includes:
acquiring a communication quality condition of a first communication link corresponding to a first operator network when the first communication link is used for communication, wherein the communication quality condition comprises a communication delay condition and/or a communication packet loss condition;
and when the communication quality condition does not meet the preset communication condition, switching to a second communication link corresponding to a second operator network for communication.
In the implementation process, the communication quality condition during communication of the first communication link corresponding to the first operator network is obtained, wherein the communication quality condition comprises a communication delay condition and/or a communication packet loss condition, and when the communication quality condition does not meet a preset communication condition, the second communication link corresponding to the second operator network is switched to carry out communication.
Optionally, whether the communication quality condition meets a preset communication condition is judged by the following method:
receiving a reply message fed back by a network server aiming at the detection message sent by the network equipment;
counting communication parameters corresponding to the reply message;
and judging whether the communication quality condition meets a preset communication condition or not according to the communication parameters.
In the implementation process, the communication quality condition is judged by counting the communication parameters of the reply message, so that the actual communication condition of the link can be considered, and the communication quality condition of the link can be judged more accurately.
Optionally, the determining, according to the communication parameter, whether the communication quality condition meets a preset communication condition includes:
and if the waiting time exceeds the set time, determining that the communication delay condition does not meet the preset communication condition.
In the implementation process, whether the communication link fails or not can be timely found by judging the communication delay condition, so that network switching is rapidly carried out, and the communication stability is ensured.
Optionally, the determining, according to the communication parameter, whether the communication quality condition meets a preset communication condition includes:
judging whether the number of the reply messages is equal to the number of the detection messages or not;
if yes, judging whether the waiting time exceeds a set time;
and if the waiting time exceeds the set time, determining that the communication delay condition does not meet the preset communication condition.
In the implementation process, the communication delay condition can be more accurately judged by combining the number of the reply messages and the waiting time.
Optionally, the determining, according to the communication parameter, whether the communication quality condition meets a preset communication condition includes:
judging whether the number of the reply messages is equal to the number of the detection messages or not;
if not, determining that the communication packet loss condition does not meet the preset communication condition.
In the implementation process, whether the communication link fails or not can be known in time by judging the communication packet loss condition, and network switching is carried out in time.
Optionally, after the switching to the second communication link corresponding to the second operator network for communication, the method further includes:
determining a plurality of communication frequency bands;
dial-up networking is carried out through each communication frequency band respectively;
counting the probability of successful dial-up networking of each communication frequency band;
and selecting the communication frequency band with the maximum probability for communication.
In the implementation process, the communication frequency band is selected according to the probability of successful dial-up networking, so that the system can work in the frequency band with better signals, and the problem that equipment frequently jumps due to the problem of signal quality and the stability is influenced is avoided.
Optionally, the communication quality condition further includes signal strength; judging whether the communication quality condition meets a preset communication condition or not by the following method:
detecting a signal strength of the first communication link;
and when the signal intensity is smaller than the set signal intensity, determining that the communication quality condition does not meet the preset communication condition.
In the implementation process, the signal strength is combined, and the communication quality condition is further judged more accurately, so that the stable switching of the signals is realized.
In a second aspect, an embodiment of the present application provides a network switching apparatus, operating in a network device, where the apparatus includes:
a communication quality obtaining module, configured to obtain a communication quality condition of a first communication link when performing communication by using the first communication link corresponding to a first operator network, where the communication quality condition includes a communication delay condition and/or a communication packet loss condition;
and the switching module is used for switching to a second communication link corresponding to a second operator network for communication when the communication quality condition does not meet the preset communication condition.
Optionally, the switching module is configured to receive a reply packet fed back by a network server for the detection packet sent by the network device; counting communication parameters corresponding to the reply message; and judging whether the communication quality condition meets a preset communication condition or not according to the communication parameters.
Optionally, the communication parameter includes a waiting time of the reply packet, and the switching module is configured to determine that the communication delay condition does not satisfy a preset communication condition if the waiting time exceeds a set time.
Optionally, the communication parameters include a waiting time of the reply messages and a number of the reply messages, and the switching module is configured to determine whether the number of the reply messages is equal to the number of the detection messages; if yes, judging whether the waiting time exceeds a set time; and if the waiting time exceeds the set time, determining that the communication delay condition does not meet the preset communication condition.
Optionally, the communication parameter includes the number of the reply packets, and the switching module is configured to determine whether the number of the reply packets is equal to the number of the detection packets; if not, determining that the communication packet loss condition does not meet the preset communication condition.
Optionally, the apparatus further comprises:
a frequency band selection module for determining a plurality of communication frequency bands; dial-up networking is carried out through each communication frequency band respectively; counting the probability of successful dial-up networking of each communication frequency band; and selecting the communication frequency band with the maximum probability for communication.
Optionally, the communication quality condition further includes signal strength; the switching module is further configured to detect a signal strength of the first communication link; and when the signal intensity is smaller than the set signal intensity, determining that the communication quality condition does not meet the preset communication condition.
In a third aspect, an embodiment of the present application provides a network device, including a processor and a memory, where the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the steps in the method as provided in the first aspect are executed.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, performs the steps in the method as provided in the first aspect above.
Additional features and advantages of the present application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the embodiments of the present application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
In order 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 network handover method according to an embodiment of the present application;
fig. 2 is a schematic diagram of a network structure according to an embodiment of the present application;
fig. 3 is a block diagram of a network switching device according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a network device for executing a network handover method according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
It should be noted that the terms "system" and "network" in the embodiments of the present invention may be used interchangeably. The "plurality" means two or more, and in view of this, the "plurality" may also be understood as "at least two" in the embodiments of the present invention. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" generally indicates that the preceding and following related objects are in an "or" relationship, unless otherwise specified.
The network switching method provided by the embodiment of the application is applied to network equipment, and the communication quality condition during communication of a first communication link corresponding to a first operator network is obtained, wherein the communication quality condition comprises a communication delay condition and/or a communication packet loss condition.
Referring to fig. 1, fig. 1 is a flowchart of a network handover method according to an embodiment of the present application, where the method includes the following steps:
step S110: the method comprises the steps of obtaining the communication quality condition of a first communication link corresponding to a first operator network when the first communication link is used for communication.
The network switching method is applied to a network device, and the network device is a device for providing network services and can convert network signals (such as 3G, 4G or 5G signals) of an operator network into wireless signals. In a 5G application scenario, the network device may be a 5G router.
The operator may include mobile, internet, radio, and telecommunications, so the operator network may include four types, namely, a mobile network, a internet network, a radio and telecommunications network, and the first operator network or the second operator network may be any one of the four types, depending on the operator of a Subscriber Identity Module (SIM) card inserted into the network device. Therefore, the network device can provide a maximum of four communication links to communicate with the network server.
The network device may support at least two operator networks, for example, the network device may have at least two SIM card slots, and may be configured to insert at least two internet of things cards of different operators, where, for example, slot 1 may be a main dialing link by default, and slot 2 may be a standby dialing link by default, and generally, the main dialing link is used as preferentially as possible for communication. Certainly, the main dialing link and the standby dialing link may be backup links for each other, and of course, if the network device can be inserted with four internet of things cards, four communication links may be raised, and at this time, the four communication links may be backup links for each other. The network device may access two operator networks respectively by means of dialing, establish communication connection with a network server (the network server may be, for example, an L2TP network server), and access various server resources of an enterprise internal office network and a production network after passing authentication, where the overall network architecture may be as shown in fig. 2.
It can be understood that the first communication link in this embodiment of the application may refer to one of the communication links, such as a main dial-up link, where if the slot 1 is inserted with an internet of things card of a mobile operator, the first operator network is a mobile network, and if the slot 2 is inserted with a physical network card of a telecommunications operator, the second operator network is a telecommunications network.
In order to ensure communication stability, the network device may detect, in real time or periodically, a communication quality condition of a first communication link of current communication, where the communication quality condition includes a communication delay condition and/or a communication packet loss condition, and if the communication delay is large and/or the communication packet loss is severe, the communication quality is considered to be poor, and the first communication link of the current communication is unstable and cannot ensure the communication quality, so that whether to perform network handover may be determined according to the communication delay condition and/or the communication packet loss condition.
Step S120: and when the communication quality condition does not meet the preset communication condition, switching to a second communication link corresponding to a second operator network for communication.
After the communication quality condition is obtained, whether the communication quality condition meets a preset communication condition can be judged, the preset communication condition refers to the communication condition when the communication quality is good, if the communication quality condition does not meet the preset communication condition, the network can be switched to a second operator network, and then a second communication link corresponding to the second operator network is adopted for communication.
In the implementation process, the communication quality condition during communication of the first communication link corresponding to the first operator network is obtained, wherein the communication quality condition comprises a communication delay condition and/or a communication packet loss condition, and when the communication quality condition does not meet a preset communication condition, the second communication link corresponding to the second operator network is switched to carry out communication.
On the basis of the above embodiment, whether the communication quality condition satisfies the preset communication condition may be determined by: and receiving a reply message fed back by the network server aiming at the detection message sent by the network equipment, counting communication parameters corresponding to the reply message, and judging whether the communication quality condition meets a preset communication condition according to the communication parameters.
The network device may send the probe packet to the network server in real time or periodically, and when sending the probe packet, the network device may use an IP address of a network interface (e.g., a 5G interface of a 5G router) as a source address and an IP address of a physical interface of the network server as a destination IP address, so as to encapsulate the probe packet. After receiving the detection message, the network server needs to respond to the detection message, that is, feeds back a reply message to the network device, where the reply message uses the IP address of the physical interface of the network server as a source IP address, and uses the IP address of the network interface of the network device as a destination IP address. After the network equipment receives the reply message, the communication parameters of the reply message can be counted, and the communication parameters can represent the communication quality of communication between the network equipment and the network server, so that whether the communication quality condition meets the preset communication condition can be judged according to the communication parameters.
In the implementation process, the communication quality condition is judged by counting the communication parameters of the reply message, so that the actual communication condition of the link can be considered, and the communication quality condition of the link can be judged more accurately.
On the basis of the above embodiment, the communication parameter may include a waiting time of the reply packet, and if the waiting time exceeds a set time, it is determined that the communication delay condition does not satisfy the preset communication condition.
For example, the network device may periodically send a probe message (e.g., an ICMP request) to the network server, where the sending period T is 2s, if the network device sends 5 probe messages to the network server in 5 periods and receives 5 reply messages, the waiting time of each reply message is counted, and if the waiting time of each reply message exceeds a set time (e.g., 500 ms, and a specific value may be flexibly set according to an actual requirement), it is determined that the communication delay is large, the communication delay condition does not meet a preset communication condition, and the preset communication condition at this time may be understood that the waiting time of each reply message does not exceed 500 ms.
Or after the waiting time of each reply message is counted, if the waiting time of the reply messages exceeding the set proportion exceeds the set time, the communication delay may also be considered to be large, for example, if 5 messages are received, if the waiting time of more than 3 reply messages exceeds 500 milliseconds, the communication delay condition is considered to be not satisfied with the preset communication condition, and the preset communication condition at this time may be understood as that the waiting time of the reply messages exceeding the set proportion does not exceed 500 milliseconds, that is, the number of the reply messages whose waiting time does not exceed 500 milliseconds is greater than the set proportion.
Or, after the waiting time of each reply message is counted, as long as the waiting time of any reply message exceeds the set time, the communication delay is considered to be large, and the communication delay condition does not meet the preset communication condition.
Or, after the waiting time of each reply message is counted, calculating to obtain an average waiting time, and if the average waiting time exceeds a set time, considering that the communication delay is large, and the communication delay condition does not meet a preset communication condition, where the preset communication condition may be understood as that the average waiting time does not exceed the set time.
Of course, in some cases, if the waiting time does not exceed the set time, it is determined that the communication delay condition satisfies the preset communication condition (at this time, it may be considered that the network signal quality is poor), and at this time, the network switching may not be performed, and the communication may be maintained in the first operator network.
In the implementation process, whether the communication link fails or not can be timely found by judging the communication delay condition, so that network switching is rapidly carried out, and the communication stability is ensured.
On the basis of the above embodiment, the communication parameter may further include the number of the reply messages, and when it is determined whether the communication quality condition satisfies the preset communication condition, it may be determined whether the number of the reply messages is equal to the number of the detection messages, and if not, it is determined that the communication packet loss condition does not satisfy the preset communication condition.
For example, if the network device sends 5 detection messages to the network server, if packet loss does not occur, the network device should also receive 5 reply messages, so that it may be determined whether the number of received reply messages is equal to the number of detection messages, if not, that is, if the number of general reply messages is less than the number of detection messages, a communication packet loss condition (at this time, it may be considered that a communication link between the base station and the network server has a failure) is determined to exist, communication quality is not good, at this time, it may be considered that the communication packet loss condition does not satisfy a preset communication condition, and at this time, the preset communication condition may be understood that the number of reply messages is equal to the number of detection messages. In this case, it is indicated that the communication quality of the current first communication link is not good, and network handover is required. On the contrary, if the number of the reply messages is equal to the number of the detection messages, it indicates that no packet loss occurs, and at this time, network switching may not be required.
For more accurately determining the communication packet loss condition, it may also be determined whether the number of the reply messages received in the set period is equal to the number of the detection messages, for example, if the network device sends 5 detection messages to the network server in 5 periods, if no communication delay occurs, the reply messages fed back by the network server should also be received in 5 periods, so if the number of the reply messages received in the set period is not equal to the number of the detection messages, it indicates that a packet loss condition may exist, and the communication packet loss condition does not satisfy the preset communication condition. On the contrary, if the number of the reply messages received in the set period is equal to the number of the detection messages, it indicates that no packet loss occurs, and at this time, network switching may not be required.
In the implementation process, whether the communication link fails or not can be known in time by judging the communication packet loss condition, and network switching is carried out in time.
On the basis of the above embodiment, the communication parameters may include the waiting time of the reply message and the number of the reply message, and when it is determined whether the communication quality condition satisfies the preset communication condition, it may be determined whether the number of the reply message is equal to the number of the detection message, if so, it is determined whether the waiting time exceeds the set time, and if the waiting time exceeds the set time, it is determined that the communication delay condition does not satisfy the preset communication condition.
That is, if there is no packet loss, it is determined whether there is a communication delay condition, and at this time, if there is a communication delay, it is determined that the communication delay condition does not satisfy the preset communication condition, and if the number of reply packets is not equal to the number of detection packets, it is directly determined that there is a packet loss condition, and network handover can be directly performed.
It can be understood that the above embodiments describe that when the communication delay condition or the communication packet loss condition does not satisfy the preset communication condition, network handover needs to be performed to ensure network stability, and when neither condition satisfies the preset communication condition, network handover needs to be performed. If the preset communication conditions are met, the switching is not needed, the communication quality condition of the first communication link is continuously detected, and the network switching is needed to be automatically carried out as long as any one of the conditions is met.
On the basis of the above embodiment, in order to further determine the communication quality condition of the communication link, the communication quality condition may further include signal strength, so that when it is determined whether the communication quality condition satisfies the preset communication condition, the signal strength of the first communication link is detected, and when the signal strength is smaller than the set signal strength, it is determined that the communication quality condition does not satisfy the communication condition.
The Signal strength may be a Signal strength of the first operator network, which may obtain a Signal to Interference plus Noise Ratio (SINR) of the network Signal, characterize the Signal strength by an SINR, and if the SINR is less than the set SINR, indicate that the Signal strength is less than the set Signal strength, so as to determine that the communication quality does not satisfy the preset communication condition, and at this time, the network handover may also be performed.
That is to say, whether to perform network switching can be judged according to at least one of communication delay, packet loss and signal strength, if at least one of the three conditions does not satisfy the preset communication condition, network switching is performed, otherwise, network switching is not performed, so that the communication quality of the communication link can be more comprehensively measured, and the problem of unstable signals caused by frequent network switching is avoided.
If the communication quality condition is judged only by the signal strength, the judgment may be inaccurate, for example, when a certain internet of things card has a arrearage, at this time, if the network signal strength of the operator is still good, network switching is not performed, but at this time, a packet loss condition or communication delay already exists in a communication link, and if the communication is continued with the current operator network, network communication is interrupted, and stable communication cannot be ensured. Therefore, the communication quality of the link can be ensured to be detected more accurately by combining the communication packet loss condition and/or the communication delay condition in the application, so as to realize stable switching of the network.
On the basis of the above embodiment, when performing network handover, the network device may obtain the recorded Access Point Name (APN) of different operators and the user Name and password required for device dialing authentication, where the information corresponds to the SIM card slot positions one to one. After the network equipment is switched to a second operator network, the APN information and the user information of the operator corresponding to the Internet of things card can be acquired, and dial-up networking is carried out.
The network device comprises a very important 5G Modem (Modem) hardware layer, the system adopts AT commands to interact with the Modem, and the Modem establishes a physical channel (such as a first communication link or a second communication link) connection for data communication with an operator network. When the network equipment needs to dial, the network equipment can acquire the stored slot position information of the physical network card, the APN of an operator and user information, the APN of the operator and the user information are issued to the Modem through an AT instruction, the Modem establishes network connection with the operator and then sends authentication information to a network server for authentication, and after the authentication is passed, an IP address required by data communication is distributed to a user, so that dial-up networking can be realized.
In order to ensure that the network signal does not hop frequently, the network device may also establish a network registration learning table according to different operators, which is used to record the network frequency band successfully registered for each dialing, select the frequency band registered with the largest number of successful dialing as the optimal frequency band for data communication, and then lock the Modem to the frequency band for communication. For example, after the second operator network is switched to, a plurality of communication frequency bands may be determined, dial-up networking may be performed through each communication frequency band, the probability of successful dial-up networking of each communication frequency band may be counted, and the communication frequency band with the highest probability may be selected for communication.
For example, assuming that the Modem supports a plurality of communication bands of the second operator, including Band1, Band 2. If the result of dialing for N (for example, N is 10) times is continuously counted (that is, dialing for 10 times in each communication frequency band) and the number of times is used as a counting period to update the network registration learning table in real time, that is, after switching to the second operator network next time, dialing for surfing the internet is continuously performed for 10 times as a period. Then, the probability P of successful dialing through each communication Band can be calculated, for example, if the number of successful dialing times of the Band1 Band is M1, the number of successful dialing times of the Band2 Band is M2, and the number of successful dialing times of the Band is Mn, then P (bn) ═ Mn/N.
Then, the maximum value in p (bn) is selected as the communication frequency band with the maximum probability, and then the Modem can be locked to the communication frequency band, so that the situation that data communication is unstable due to frequency band hopping in the using process can be avoided (for example, if the Modem cannot stably operate in the frequency band with good signals, the data communication may cause large data communication delay or packet loss due to poor network signal quality).
It should be noted that, when the network device is handed over to the first operator network, the optimal communication band may be determined continuously as described above, that is, the communication band with the best signal quality is selected for communication. If the network device is disconnected from the currently connected operator network due to other reasons, and if the network device is restarted, the last operator network is continuously connected, at this time, the communication frequency band may not be selected again, and at this time, the communication frequency band with the largest dialing success probability recorded in the network registration learning table may be directly read for communication. For example, the network device is currently connected to a first operator network, and after the network device is unexpectedly disconnected and restarted, it may detect whether the last connected network is the first operator network, so as to determine whether the network switching is performed, if the last connected network is the first operator network, it indicates that the network switching is not performed, it may read the communication frequency band with the maximum dialing success probability recorded in the network registration learning table for communication, so as to implement fast recovery of network communication, and if the last connected network is the second operator network, it indicates that the network switching is performed, at this time, it may continue to select the optimal communication frequency band according to the above procedures, i.e., dial up to access the network again through each communication frequency band, and then select the communication frequency band with the maximum dialing success probability for communication, so as to ensure that the network is in the communication frequency band with excellent quality after being switched to the current operator network, the communication stability can be effectively improved.
In addition to the foregoing embodiments, in order to implement stability of network signal switching, before switching to the second operator network, a communication quality condition of the second communication link corresponding to the second operator network may be detected, and if the communication quality condition satisfies a preset communication condition, the switching is performed.
For example, the communication quality condition of the second communication link may refer to the signal strength of the second operator network, and the signal strength may also refer to the SINR of the signal, in which case the preset communication condition may be that the signal strength is greater than the set signal strength, that is, the SINR of the signal is greater than the set SINR, and if this condition is satisfied, network handover may be performed. If the condition is not met, the signal strength of the first communication link and the communication strength of the second communication link can be compared, if the signal strength of the first communication link is greater than or equal to the signal strength of the second communication link, the switching is not carried out, the communication is maintained under the first communication link, if the signal strength of the first communication link is less than the signal strength of the second communication link, the switching can be continued, and because the communication quality of the first communication link is not good at the moment, the switching to the second communication link can ensure that the network signal is better.
It is understood that after switching to the second communication link, the network device may continue to detect the communication quality of the second communication link, and may continue to switch back to the first communication link when the communication quality of the second communication link does not satisfy the preset communication condition. That is to say, the two communication links are backup links for each other, which can improve the reliability of the network, and when the network fails or the data communication quality of a certain physical link is not good, the network can be switched automatically and quickly, so as to realize the quick recovery of the user data forwarding.
The network switching method can detect the communication quality of the link in real time, can automatically switch the network without human intervention, enhances the stability of the system and reduces the manpower maintenance cost. The method can be applied to situations such as intelligent medical treatment, high-speed toll stations, driving tests, emergency network opening in disaster areas and the like, and under the situations, network access is more convenient and faster, and equipment deployment is more flexible.
Referring to fig. 3, fig. 3 is a block diagram of a network switching apparatus 200 according to an embodiment of the present application, where the apparatus 200 operates on the network device, and the apparatus 200 may be a module, a program segment, or a code on the network device. It should be understood that the apparatus 200 corresponds to the above-mentioned embodiment of the method of fig. 1, and can perform various steps related to the embodiment of the method of fig. 1, and the specific functions of the apparatus 200 can be referred to the above description, and the detailed description is appropriately omitted here to avoid redundancy.
Optionally, the apparatus 200 comprises:
a communication quality obtaining module 210, configured to obtain a communication quality condition of a first communication link corresponding to a first operator network when performing communication by using the first communication link, where the communication quality condition includes a communication delay condition and/or a communication packet loss condition;
a switching module 220, configured to switch to a second communication link corresponding to a second operator network for communication when the communication quality does not meet a preset communication condition.
Optionally, the switching module 220 is configured to receive a reply packet fed back by a network server for the detection packet sent by the network device; counting communication parameters corresponding to the reply message; and judging whether the communication quality condition meets a preset communication condition or not according to the communication parameters.
Optionally, the communication parameter includes a waiting time of the reply packet, and the switching module 220 is configured to determine that the communication delay condition does not satisfy a preset communication condition if the waiting time exceeds a set time.
Optionally, the communication parameters include a waiting time of the reply packets and a number of the reply packets, and the switching module 220 is configured to determine whether the number of the reply packets is equal to the number of the detection packets; if yes, judging whether the waiting time exceeds a set time; and if the waiting time exceeds the set time, determining that the communication delay condition does not meet the preset communication condition.
Optionally, the communication parameter includes the number of the reply packets, and the switching module 220 is configured to determine whether the number of the reply packets is equal to the number of the detection packets; if not, determining that the communication packet loss condition does not meet the preset communication condition.
Optionally, the apparatus 200 further comprises:
a frequency band selection module for determining a plurality of communication frequency bands; dial-up networking is carried out through each communication frequency band respectively; counting the probability of successful dial-up networking of each communication frequency band; and selecting the communication frequency band with the maximum probability for communication.
Optionally, the communication quality condition further includes signal strength; the switching module 220 is further configured to detect a signal strength of the first communication link; and when the signal intensity is smaller than the set signal intensity, determining that the communication quality condition does not meet the preset communication condition.
It should be noted that, for the convenience and brevity of description, the specific working procedure of the above-described apparatus may refer to the corresponding procedure in the foregoing method embodiment, and the description is not repeated herein.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a network device for executing a network handover method according to an embodiment of the present application, where the network device may include: at least one processor 310, such as a CPU, at least one communication interface 320, at least one memory 330, and at least one communication bus 340. Wherein the communication bus 340 is used for realizing direct connection communication of these components. The communication interface 320 of the device in the embodiment of the present application is used for performing signaling or data communication with other node devices. The memory 330 may be a high-speed RAM memory or a non-volatile memory (e.g., at least one disk memory). The memory 330 may optionally be at least one memory device located remotely from the aforementioned processor. The memory 330 stores computer readable instructions which, when executed by the processor 310, cause the network device to perform the method processes described above with reference to fig. 1.
It will be appreciated that the configuration shown in fig. 3 is merely illustrative, and that the network device may include more or fewer components than shown in fig. 3, or have a different configuration than shown in fig. 3. The components shown in fig. 3 may be implemented in hardware, software, or a combination thereof.
Embodiments of the present application provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, performs the method processes performed by a network device in the method embodiment shown in fig. 1.
The present embodiments disclose a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform the methods provided by the above-described method embodiments, for example, comprising: acquiring a communication quality condition of a first communication link corresponding to a first operator network when the first communication link is used for communication, wherein the communication quality condition comprises a communication delay condition and/or a communication packet loss condition; and when the communication quality condition does not meet the preset communication condition, switching to a second communication link corresponding to a second operator network for communication.
To sum up, the embodiments of the present application provide a network switching method, an apparatus, a network device, and a storage medium, where a communication quality condition during communication of a first communication link corresponding to a first operator network is obtained, where the communication quality condition includes a communication delay condition and/or a communication packet loss condition, and when the communication quality condition does not satisfy a preset communication condition, the network is switched to a second communication link corresponding to a second operator network for communication, so that when the communication quality is not good, automatic switching of the operator network is performed in time, stability of network communication is ensured, and efficiency is higher.
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 embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. 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.
Furthermore, the functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, 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 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 (10)

1. A network switching method is applied to a network device, and comprises the following steps:
acquiring a communication quality condition of a first communication link corresponding to a first operator network when the first communication link is used for communication, wherein the communication quality condition comprises a communication delay condition and/or a communication packet loss condition;
and when the communication quality condition does not meet the preset communication condition, switching to a second communication link corresponding to a second operator network for communication.
2. The method of claim 1, wherein the determining whether the communication quality condition satisfies a predetermined communication condition is performed by:
receiving a reply message fed back by a network server aiming at the detection message sent by the network equipment;
counting communication parameters corresponding to the reply message;
and judging whether the communication quality condition meets a preset communication condition or not according to the communication parameters.
3. The method according to claim 2, wherein the communication parameters include a waiting time of the reply packet, and the determining whether the communication quality condition satisfies a preset communication condition according to the communication parameters includes:
and if the waiting time exceeds the set time, determining that the communication delay condition does not meet the preset communication condition.
4. The method according to claim 2, wherein the communication parameters include a waiting time of the reply packets and a number of the reply packets, and the determining whether the communication quality condition satisfies a preset communication condition according to the communication parameters includes:
judging whether the number of the reply messages is equal to the number of the detection messages or not;
if yes, judging whether the waiting time exceeds a set time;
and if the waiting time exceeds the set time, determining that the communication delay condition does not meet the preset communication condition.
5. The method according to claim 2, wherein the communication parameters include the number of the reply packets, and the determining whether the communication quality condition satisfies a preset communication condition according to the communication parameters includes:
judging whether the number of the reply messages is equal to the number of the detection messages or not;
if not, determining that the communication packet loss condition does not meet the preset communication condition.
6. The method of claim 1, wherein after the switching to the second communication link corresponding to the second operator network for communication, further comprising:
determining a plurality of communication frequency bands;
dial-up networking is carried out through each communication frequency band respectively;
counting the probability of successful dial-up networking of each communication frequency band;
and selecting the communication frequency band with the maximum probability for communication.
7. The method of any of claims 1-6, wherein the communication quality condition further comprises a signal strength; judging whether the communication quality condition meets a preset communication condition or not by the following method:
detecting a signal strength of the first communication link;
and when the signal intensity is smaller than the set signal intensity, determining that the communication quality condition does not meet the preset communication condition.
8. A network switching apparatus, operable in a network device, the apparatus comprising:
a communication quality obtaining module, configured to obtain a communication quality condition of a first communication link when performing communication by using the first communication link corresponding to a first operator network, where the communication quality condition includes a communication delay condition and/or a communication packet loss condition;
and the switching module is used for switching to a second communication link corresponding to a second operator network for communication when the communication quality condition does not meet the preset communication condition.
9. A network device comprising a processor and a memory, the memory storing computer readable instructions that, when executed by the processor, perform the method of any one of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 7.
CN202111202292.3A 2021-10-15 2021-10-15 Network switching method, device, network equipment and storage medium Active CN113873598B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111202292.3A CN113873598B (en) 2021-10-15 2021-10-15 Network switching method, device, network equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111202292.3A CN113873598B (en) 2021-10-15 2021-10-15 Network switching method, device, network equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113873598A true CN113873598A (en) 2021-12-31
CN113873598B CN113873598B (en) 2024-04-12

Family

ID=78999658

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111202292.3A Active CN113873598B (en) 2021-10-15 2021-10-15 Network switching method, device, network equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113873598B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115550966A (en) * 2022-08-17 2022-12-30 北京连山科技股份有限公司 Method for anti-destruction capability of mobile public network communication system under dynamic scene of elevator
CN115550976A (en) * 2022-08-17 2022-12-30 北京连山科技股份有限公司 Fragmentation network resource fusion communication system based on mobile public network

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007036960A (en) * 2005-07-29 2007-02-08 Kddi Corp Rtp communication terminal for dynamically switching session, call connecting system, and program
WO2008025769A2 (en) * 2006-09-01 2008-03-06 Nokia Siemens Networks Gmbh & Co. Kg Method for tracking network parameters
US20100208634A1 (en) * 1994-10-11 2010-08-19 Arbinet Corporation System and Method For Managing Multimedia Communications Across Convergent Networks
JP2012023694A (en) * 2010-07-16 2012-02-02 Ntt Docomo Inc Portable terminal device and method
US20120063414A1 (en) * 2010-09-09 2012-03-15 Qualcomm Incorporated Handover of Multimode User Equipment Between Radio Access Technologies for Reduced Call Setup Time
US20130114446A1 (en) * 2011-11-04 2013-05-09 Interdigital Patent Holdings, Inc. Methods, apparatus and systems for minimization of drive tests (mdt) based on qos verifications
WO2016161772A1 (en) * 2015-04-07 2016-10-13 中兴通讯股份有限公司 Frequency range locking method, device and system
CN107682928A (en) * 2017-10-20 2018-02-09 维沃移动通信有限公司 A kind of working frequency range determines method and mobile terminal
CN109963312A (en) * 2017-12-26 2019-07-02 飞狐信息技术(天津)有限公司 A kind of method for switching network, system, link switch equipment and storage medium
CN110072263A (en) * 2019-03-26 2019-07-30 华为技术有限公司 A kind of method and electronic equipment switching card of surfing Internet
CN111542081A (en) * 2020-06-23 2020-08-14 深圳杰睿联科技有限公司 Communication switching method and device and Internet of things communication module
WO2020191525A1 (en) * 2019-03-22 2020-10-01 华为技术有限公司 Cell search method and apparatus
US20220039001A1 (en) * 2019-04-15 2022-02-03 Oneplus Technology (Shenzhen) Co., Ltd. Network search method and apparatus, device and storage medium

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100208634A1 (en) * 1994-10-11 2010-08-19 Arbinet Corporation System and Method For Managing Multimedia Communications Across Convergent Networks
JP2007036960A (en) * 2005-07-29 2007-02-08 Kddi Corp Rtp communication terminal for dynamically switching session, call connecting system, and program
WO2008025769A2 (en) * 2006-09-01 2008-03-06 Nokia Siemens Networks Gmbh & Co. Kg Method for tracking network parameters
JP2012023694A (en) * 2010-07-16 2012-02-02 Ntt Docomo Inc Portable terminal device and method
US20120063414A1 (en) * 2010-09-09 2012-03-15 Qualcomm Incorporated Handover of Multimode User Equipment Between Radio Access Technologies for Reduced Call Setup Time
US20130114446A1 (en) * 2011-11-04 2013-05-09 Interdigital Patent Holdings, Inc. Methods, apparatus and systems for minimization of drive tests (mdt) based on qos verifications
WO2016161772A1 (en) * 2015-04-07 2016-10-13 中兴通讯股份有限公司 Frequency range locking method, device and system
CN107682928A (en) * 2017-10-20 2018-02-09 维沃移动通信有限公司 A kind of working frequency range determines method and mobile terminal
CN109963312A (en) * 2017-12-26 2019-07-02 飞狐信息技术(天津)有限公司 A kind of method for switching network, system, link switch equipment and storage medium
WO2020191525A1 (en) * 2019-03-22 2020-10-01 华为技术有限公司 Cell search method and apparatus
CN110072263A (en) * 2019-03-26 2019-07-30 华为技术有限公司 A kind of method and electronic equipment switching card of surfing Internet
US20220039001A1 (en) * 2019-04-15 2022-02-03 Oneplus Technology (Shenzhen) Co., Ltd. Network search method and apparatus, device and storage medium
CN111542081A (en) * 2020-06-23 2020-08-14 深圳杰睿联科技有限公司 Communication switching method and device and Internet of things communication module

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115550966A (en) * 2022-08-17 2022-12-30 北京连山科技股份有限公司 Method for anti-destruction capability of mobile public network communication system under dynamic scene of elevator
CN115550976A (en) * 2022-08-17 2022-12-30 北京连山科技股份有限公司 Fragmentation network resource fusion communication system based on mobile public network
CN115550966B (en) * 2022-08-17 2023-05-30 北京连山科技股份有限公司 Method for improving anti-destruction capability of mobile public network communication system in maneuvering scene

Also Published As

Publication number Publication date
CN113873598B (en) 2024-04-12

Similar Documents

Publication Publication Date Title
CN110495208B (en) Information sending method, receiving method, device, equipment and storage medium
US5978679A (en) Coexisting GSM and CDMA wireless telecommunications networks
KR960015856B1 (en) Device and method for cdn in amps
JP4939529B2 (en) Hard handoff procedure for dedicated and fast shared channels
KR20220019774A (en) Random access instruction method, apparatus and storage medium
CN113873598B (en) Network switching method, device, network equipment and storage medium
JP2001078242A (en) Radio communication controller and handoff control method
CN102340820B (en) Data transmission method, terminal, communication network with a lower probability of erroneous rejection of data
CN110602704A (en) Non-sensing roaming system and method
WO2008096240A1 (en) Method and apparatus for providing interference coordination in handover signaling
CN109246823B (en) Dual-system dual-connection method, device, storage medium, base station and terminal
CN111294870A (en) Voice service switching method, device and storage medium
US8954057B2 (en) Base station, detection device, communication system and detection method
US10117143B2 (en) Communications processing system, communications processing method, communications control device, and control method and control program for these
CN103748912A (en) Frequency point measurement control method, terminal and base station
EP2048897B1 (en) A method for reducing the risk of dropped calls in a mobile communications network
CN102300233B (en) The processing method of transmission gap pattern sequence, Apparatus and system
US9572076B2 (en) Wireless communication terminal
JP6654937B2 (en) Communication device
CN113747421B (en) Method, equipment and system for controlling terminal regression under mobile network sharing mechanism
CN111954261B (en) Uplink Harq sending method and related product
CN113708861B (en) UE baseband combining prediction method, system, equipment and storage medium
CN113747608B (en) Method, network device and system for establishing multiple connections
US20210058845A1 (en) Communication Method and Network Device
KR100849331B1 (en) Method for managing fails in a mobile communication system

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