CN113873598B - 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
CN113873598B
CN113873598B CN202111202292.3A CN202111202292A CN113873598B CN 113873598 B CN113873598 B CN 113873598B CN 202111202292 A CN202111202292 A CN 202111202292A CN 113873598 B CN113873598 B CN 113873598B
Authority
CN
China
Prior art keywords
communication
network
condition
preset
frequency band
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
Application number
CN202111202292.3A
Other languages
Chinese (zh)
Other versions
CN113873598A (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

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 of the first communication link corresponding to the first operator network during communication is obtained, the communication quality condition comprises a communication delay condition and/or a communication packet loss condition, when the communication quality condition does not meet the preset communication condition, the second communication link corresponding to the second operator network is switched to communicate, so that when the communication quality is poor, the automatic switching of the operator network can be performed in time, the stability of network communication is guaranteed, and the efficiency is higher.

Description

Network switching method, device, network equipment and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a network switching method, a device, a network device, and a storage medium.
Background
With the rapid development of mobile communication technology, the fifth generation mobile communication technology (the 5th Generation mobile communication technology,5G) has the characteristics of higher bandwidth, ultra-high reliability and low delay communication than the fourth generation mobile communication technology (the 4th Generation mobile communication technology,4G), and can provide high-quality data transmission service in a virtual private dial-up network (Virtual Private Dial-up Networks, VPDN).
Network speed provided by network operators may be affected by various factors, and there may be differences in network services of different operators in the same geographic location environment. The uplink download rate in the data communication process of the 5G wireless router is high and low, and most of the cases are determined by the signal quality provided by a network operator, and the uplink download rate in the place with good signal quality is high. In order to ensure stability of data communication, in the prior art, when a signal is not good, the signal is manually switched to another operator network, and network switching cannot be performed in time in this way, so that switching efficiency is low.
Disclosure of Invention
An object of an embodiment of the present invention is to provide a network switching method, a device, a network device and a storage medium, which are used for improving the problem of low switching efficiency in the prior art that network switching is performed manually.
In a first aspect, an embodiment of the present application provides a network switching method, applied to a network device, where the method includes:
acquiring the communication quality condition of a first communication link when the first communication link corresponding to a first operator network is utilized 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 the second operator network for communication.
In the implementation process, by acquiring the communication quality condition of the first communication link corresponding to the first operator network during communication, 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, the communication is switched to the second communication link corresponding to the second operator network for communication, so that when the communication quality is poor, the automatic switching of the operator network can be performed in time, the stability of network communication is ensured, and the efficiency is higher.
Optionally, determining whether the communication quality condition satisfies a preset 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 the communication parameters corresponding to the reply message;
judging whether the communication quality condition meets the preset communication condition 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 more accurately judged.
Optionally, the communication parameter includes waiting time of the reply message, and the judging whether the communication quality condition meets a preset communication condition according to the communication parameter 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 performed, and the communication stability is ensured.
Optionally, the communication parameters include waiting time of the reply message and the number of the reply messages, and the judging whether the communication quality condition meets 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 the 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 accurately judged by combining the number of the reply messages and the waiting time.
Optionally, the communication parameter includes the number of reply messages, and the judging, 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 can be performed 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 highest 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 hops due to the signal quality problem to influence the stability 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 and more accurately judged, so that stable switching of 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:
the communication quality acquisition module is used for acquiring the communication quality condition of a first communication link when the first communication link corresponding to a first operator network is utilized for communication, wherein the communication quality condition comprises 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 the 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 message fed back by the network server for the detection message sent by the network device; counting the communication parameters corresponding to the reply message; judging whether the communication quality condition meets the preset communication condition according to the communication parameters.
Optionally, the communication parameter includes a waiting time of the reply message, and the switching module is configured to determine that the communication delay condition does not meet a preset communication condition if the waiting time exceeds a set time.
Optionally, the communication parameter includes waiting time of the reply message and the 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 the 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 reply messages, and the switching module is configured to determine whether the number of reply messages is equal to the number of detection messages; if not, determining that the communication packet loss condition does not meet the preset communication condition.
Optionally, the apparatus further comprises:
the frequency band selection module is used 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 highest 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, embodiments of the present application provide a network device comprising a processor and a memory storing computer readable instructions which, when executed by the processor, perform the steps of the method as provided in the first aspect above.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method as provided in the first aspect above.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the embodiments of the application. The objectives and other advantages of the application will be realized and attained by the structure particularly pointed out in the written description and claims thereof 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 needed 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 should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a network switching method provided in 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 application;
fig. 4 is a schematic structural diagram of a network device for performing 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 embodiments of the present invention may be used interchangeably. "plurality" means two or more, and "plurality" may also be understood as "at least two" in this embodiment of the present invention. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a exists alone, A and B exist together, and B exists alone. The character "/", unless otherwise specified, generally indicates that the associated object is an "or" relationship.
According to the network switching method, the network equipment is used for acquiring the communication quality conditions of the first communication link corresponding to the first operator network when the communication is performed, wherein the communication quality conditions comprise communication delay conditions and/or communication packet loss conditions, when the communication quality conditions do not meet preset communication conditions, the network equipment is switched to the second communication link corresponding to the second operator network to perform communication, so that when the communication quality is poor, the automatic switching of the operator network can be performed in time, the stability of network communication is guaranteed, and the efficiency is higher.
Referring to fig. 1, fig. 1 is a flowchart of a network switching method according to an embodiment of the present application, where the method includes the following steps:
step S110: and acquiring the communication quality condition of a first communication link corresponding to the first operator network when the first communication link is used for communication.
The network switching method is applied to network equipment, wherein the network equipment is equipment 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, corporate, radio and telecommunications, so the operator network may then include four of a mobile network, a corporate network, a radio network and a telecommunications network, wherein the first operator network or the second operator network may be any of these four depending on the operator of the subscriber identity card (Subscriber Identity Module, SIM) card inserted on the network device. Therefore, the network device may provide up to 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, which may be used to insert at least two internet of things cards of different operators, respectively, where slot 1 may default to a primary dial-up link, and slot 2 may default to a backup dial-up link, and typically, use the primary dial-up link to communicate as preferentially as possible. Of course, the primary dial-up link and the standby dial-up link may be backup links, and of course, if the network device may be plugged into four internet of things cards, four communication links may be improved, and at this time, the four communication links may be backup links. The network device can be respectively connected to two operator networks in a dialing mode, communication connection is established between the network device and a network server (the network server can be an L2TP network server, for example), various server resources of an enterprise internal office network and a production network can be accessed after the authentication passes, and the overall network architecture can be shown as a figure 2.
It may be understood that the first communication link in the embodiments of the present application may refer to one of the communication links, such as a main dial-up link, if the slot 1 is inserted into an internet of things network card of a mobile operator, the first operator network is a mobile network, and if the slot 2 is inserted into a physical network card of a telecom operator, the second operator network is a telecom network.
In order to ensure communication stability, the network device may detect, in real time or periodically, a communication quality condition of the first communication link of the 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 serious, consider that the communication quality is bad, and the first communication link of the current communication is unstable and cannot ensure the communication quality, so that whether to switch the network 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 the second operator network for communication.
After the communication quality condition is obtained, whether the communication quality condition meets a preset communication condition or not can be judged, wherein the preset communication condition refers to a 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, by acquiring the communication quality condition of the first communication link corresponding to the first operator network during communication, 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, the communication is switched to the second communication link corresponding to the second operator network for communication, so that when the communication quality is poor, the automatic switching of the operator network can be performed in time, the stability of network communication is ensured, and the efficiency is higher.
On the basis of the above-described embodiment, whether or not the communication quality condition satisfies the preset communication condition can be judged by: 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 preset communication conditions 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, may use an IP address of a network interface (e.g., a 5G interface of a 5G router) on the network device as a source address, and an IP address of a physical interface of the network server as a destination IP address, so as to package 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, wherein 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 device receives the reply message, the communication parameters of the reply message can be counted, and the communication parameters can represent the communication quality of the communication between the network device 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 more accurately judged.
Based on the above embodiment, the communication parameters may include a waiting time of the reply message, and if the waiting time exceeds the set time, it is determined that the communication delay condition does not meet the preset communication condition.
For example, the network device may periodically send a probe packet (such as ICMP request) to the network server, where the sending period T is 2s, if the network device sends 5 probe packets and receives 5 reply packets to the network server in 5 periods, the waiting time of each reply packet is counted, and if the waiting time of each reply packet exceeds a set time (such as 500 ms, of course, a specific value may be flexibly set according to the actual requirement), it is determined that the communication delay is relatively large, and the communication delay condition does not meet the preset communication condition, where the preset communication condition may be understood that the waiting time of each reply packet does not exceed 500 ms.
Or after counting the waiting time of each reply message, if the waiting time of the reply message exceeding the set proportion exceeds the set time, the communication delay can be considered to be larger, 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 not meet the preset communication condition, and the preset communication condition can be understood as that the waiting time of the reply message exceeding the set proportion is not more than 500 milliseconds, namely the number of the reply messages with the waiting time not more than 500 milliseconds is larger than the set proportion.
Or, after counting the waiting time of each reply message, if the waiting time of any reply message exceeds the set time, the communication delay is considered to be larger, and the communication delay condition does not meet the preset communication condition.
Or, after counting the waiting time of each reply message, calculating to obtain an average waiting time, if the average waiting time exceeds the set time, considering that the communication delay is larger, and the communication delay condition does not meet the preset communication condition, wherein the preset communication condition can be understood that the time average waiting time does not exceed the set time.
Of course, in the above cases, if the waiting time does not exceed the set time, it is determined that the communication delay condition satisfies the preset communication condition (which may be considered as poor network signal quality at this time), and at this time, the communication under the first operator network may be maintained without performing the network handover.
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 performed, and the communication stability is ensured.
On the basis of the above embodiment, the communication parameters may further include the number of reply messages, and when judging whether the communication quality condition meets the preset communication condition, it may be judged whether the number of reply messages is equal to the number of detection messages, if not, it is determined that the communication packet loss condition does not meet the preset communication condition.
For example, if the network device sends 5 probe messages to the network server, if no packet loss occurs, 5 reply messages should be received, so that it can be determined whether the number of received reply messages is equal to the number of probe messages, if not, that is, if the number of general reply messages is smaller than the number of probe messages, it is considered that there is a communication packet loss (at this time, it may be considered that a communication link between the base station and the network server is faulty), the communication quality is poor, at this time, it may be considered that the communication packet loss does not meet a preset communication condition, and at this time, the preset communication condition may be considered that the number of reply messages is equal to the number of probe messages. In this case, it is indicated that the communication quality of the current first communication link is poor, and network handover is required. Otherwise, if the number of the reply messages is equal to the number of the detection messages, the situation that the packet loss occurs is indicated, and network switching is not needed at this time.
In order to more accurately judge the communication packet loss situation, it may also be determined whether the number of reply messages received in the set period is equal to the number of 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 reply messages received in the set period is not equal to the number of detection messages, it indicates that there is a possibility of packet loss situation, and the communication packet loss situation does not meet the preset communication condition. Otherwise, if the number of the received reply messages is equal to the number of the detection messages in the set period, the packet loss condition is indicated not to occur, and network switching is not required at this time.
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 can be performed in time.
On the basis of the above embodiment, the communication parameters may include a waiting time of the reply message and the number of the reply messages, when judging whether the communication quality condition satisfies the preset communication condition, it may be judged whether the number of the reply messages is equal to the number of the detection messages, if so, it is judged 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 further determined whether there is a communication delay, at this time, if there is a communication delay, it is determined that the communication delay does not meet the preset communication condition, and if the number of reply messages is not equal to the number of detection messages, it is directly considered that there is a packet loss, and network switching can be directly performed.
It can be appreciated that the above embodiments illustrate that network switching is required when the communication delay condition or the communication packet loss condition does not satisfy the preset communication condition, so as to ensure network stability, and that network switching is required when neither of the cases satisfies the preset communication condition. If the preset communication condition is met, the network switching can be automatically performed without switching and the communication quality condition of the first communication link can be continuously detected 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 a signal strength, so that when determining 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 refer to a signal strength of the first operator network, which may obtain a signal-to-interference-and-noise ratio (Signal to Interference plus Noise Ratio, SINR) of a network signal, and the signal strength is represented by the SINR, and if the SINR is smaller than a set SINR, the signal strength is smaller than the set signal strength, so that it may be determined that the communication quality condition does not meet a preset communication condition, and at this time, network handover may also be performed.
That is, whether the network switching is performed can be determined by at least one of the communication delay, the packet loss and the signal strength, if at least one of the three conditions does not satisfy the preset communication condition, the network switching is performed, otherwise, if the at least one of the three conditions satisfies the preset communication condition, the 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 is judged only by the signal strength, the judgment may be inaccurate, for example, when an arrearage exists in a certain internet of things card, if the signal strength of the operator network is good, network switching is not performed, but at the moment, a packet loss condition or communication delay exists in a communication link, if the communication is continued by the current operator network, network communication is interrupted, and communication stability cannot be ensured. Therefore, the method and the device can ensure that the communication quality of the link can be detected more accurately by combining the communication packet loss condition and/or the communication delay condition so as to realize stable switching of the network.
On the basis of the embodiment, when the network is switched, the network equipment can acquire recorded access point names (Access Point Name, APNs) of different operators and user name passwords required by equipment dialing authentication, and the information corresponds to the SIM card slot one by one. After the network equipment is switched to the network of the second operator, the APN information and the user information corresponding to the card operator of the Internet of things can be obtained, and dial-up networking is performed.
The network device comprises a very important 5G Modem hardware layer, the system uses AT instructions to interact with the Modem, and the Modem establishes a physical channel (such as a first communication link or a second communication link) connection of data communication with the 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 the operator and the user information are issued to the Modem through the AT instruction, the Modem establishes network connection with the operator and then sends authentication information to the network server for authentication, and after the authentication is passed, the IP address required by data communication is distributed to the user, so that the dial-up internet surfing can be realized.
In order to ensure that the network signal does not jump frequently, the network device can also establish a network registration learning table according to different operators, wherein the network registration learning table is used for recording network frequency bands which are registered successfully in each dialing, selecting the frequency band which is registered with the largest dialing success frequency as the optimal frequency band for data communication, and locking the Modem to the frequency band for communication. For example, after switching to the second operator network, a plurality of communication frequency bands may be determined first, then dial-up networking is performed through each communication frequency band, the probability of successful dial-up networking of each communication frequency band is counted, and the communication frequency band with the highest probability is selected for communication.
For example, assuming that the Modem supports a plurality of communication bands of the second operator including Band1, band2, band, then an attempt may be made to dial-up the internet through each communication Band separately, and then the probability of successful internet surfing for each communication Band is counted. If the number of times of dialing is counted continuously (e.g. N is 10), the number of times of dialing is counted continuously (i.e. 10 times of dialing is performed in each communication frequency band per day), and the network registration learning table is updated in real time by taking the number of times as a counting period, i.e. after the network is switched to the second operator network again next time, dialing and surfing are continuously performed by taking 10 times as a period. Then, the probability P of successful dialing through each communication Band can be calculated, if the number of successful dialing in Band1 Band is M1, the number of successful dialing in Band2 Band is M2, and the number of successful dialing in Band N Band is Mn, then P (Bn) =mn/N.
And then selecting the maximum value in P (Bn) as the communication frequency band with the highest probability, and locking the Modem to the communication frequency band, so that the situation that data communication is unstable due to frequency band jump in the use process (for example, if the data communication cannot stably work in a frequency band with good signals, the problem that the data communication is delayed greatly or has packet loss possibly caused by poor network signal quality) can be avoided.
When the network device switches to the first operator network, the network device may also continue to determine the optimal communication band in the above manner, that is, select the communication band with the best signal quality for communication. If the network device may disconnect the currently connected operator network due to other reasons, if the network device is restarted, the network device continues to connect to the last operator network, and at this time, the selection of the communication frequency band may not be performed again, and at this time, the communication frequency band with the highest probability of dialing success recorded in the network registration learning table may be directly read for communication. For example, after the network device is connected to the first operator network at present and is restarted by unexpectedly disconnecting, whether the last connected network is the first operator network can be detected, so that whether the network switching is performed can be judged, if the last connected network is the first operator network, the communication frequency band with the largest dialing success probability recorded in the network registration learning table can be read to perform communication, so that the quick recovery of network communication can be realized, and if the last connected network is the second operator network, the network switching is indicated, at this time, the optimal communication frequency band can be continuously selected according to the above procedure, namely, the network surfing is performed again through each communication frequency band, then the communication frequency band with the largest dialing success probability is selected to perform communication, so that after the network is switched to the current operator network, the network is enabled to be in the communication frequency band with good quality, and the communication stability can be effectively improved.
On the basis of the above embodiment, in order to achieve stability of network signal switching, before switching to the second operator network, the communication quality condition of the second communication link corresponding to the second operator network may be detected, and if the communication quality condition meets a preset communication condition, switching may be performed.
For example, the communication quality 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, where the preset communication condition may be understood as 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 met, the network switching may be performed. If this condition is not met, the signal strength of the first communication link may be compared with the communication strength of the second communication link, if the signal strength of the first communication link is greater than or equal to the signal strength of the second communication link, communication under the first communication link may be maintained without switching, if the signal strength of the first communication link is less than the signal strength of the second communication link, switching may be continued, and switching to the second communication link may ensure that the network signal is better because the communication quality of the first communication link is not good at this time.
It will be appreciated that after switching to the second communication link, the network device may continue to detect the communication quality of the second communication link, and when the communication quality of the second communication link does not meet the preset communication condition, may continue to switch back to the first communication link. That is, the two communication links are backup links, so that the reliability of the network can be improved, and when the network fails or the data communication quality of a certain physical link is poor, the network can be rapidly switched automatically, thereby realizing the rapid 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 the situations of intelligent medical treatment, high-speed toll stations, driving exams, disaster area emergency network opening and the like, and under the situations, network access is more convenient and rapid, 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 is operated on the above 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 embodiment of the method of fig. 1, and is capable of performing the steps involved in the embodiment of the method of fig. 1, and specific functions of the apparatus 200 may be referred to in the above description, and detailed descriptions thereof are omitted herein as appropriate to avoid redundancy.
Optionally, the apparatus 200 includes:
a communication quality obtaining module 210, configured to obtain a communication quality condition of a first communication link when a communication is performed 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 220 is configured to switch to a second communication link corresponding to the second operator network for communication when the communication quality condition does not meet the preset communication condition.
Optionally, the switching module 220 is configured to receive a reply message fed back by the network server for the probe message sent by the network device; counting the communication parameters corresponding to the reply message; judging whether the communication quality condition meets the preset communication condition according to the communication parameters.
Optionally, the communication parameter includes a waiting time of the reply message, and the switching module 220 is configured to determine that the communication delay condition does not meet a preset communication condition if the waiting time exceeds a set time.
Optionally, the communication parameters include waiting time of the reply message and the number of the reply messages, and the switching module 220 is configured to determine whether the number of the reply messages is equal to the number of the probe messages; if yes, judging whether the waiting time exceeds the 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 reply messages, and the switching module 220 is configured to determine whether the number of reply messages is equal to the number of probe messages; if not, determining that the communication packet loss condition does not meet the preset communication condition.
Optionally, the apparatus 200 further includes:
the frequency band selection module is used 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 highest 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 convenience and brevity, a person skilled in the art will clearly understand that, for the specific working procedure of the apparatus described above, reference may be made to the corresponding procedure in the foregoing method embodiment, and the description will not be repeated here.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a network device for performing a network switching 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 to enable 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 nonvolatile memory (non-volatile memory), such as at least one disk memory. Memory 330 may also optionally be at least one storage device located remotely from the aforementioned processor. The memory 330 has stored therein computer readable instructions which, when executed by the processor 310, cause the network device to perform the method process described above with respect to fig. 1.
It will be appreciated that the architecture shown in fig. 3 is merely illustrative, and that the network device may also 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 having stored thereon a computer program which, when executed by a processor, performs a method procedure performed by a network device in the method embodiment shown in fig. 1.
The present embodiment discloses 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, are capable of performing the methods provided by the above-described method embodiments, for example, comprising: acquiring the communication quality condition of a first communication link when the first communication link corresponding to a first operator network is utilized 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 the second operator network for communication.
In summary, the embodiments of the present application provide a network switching method, device, network equipment, and storage medium, where by acquiring a communication quality condition of a first communication link corresponding to a first operator network during communication, the communication quality condition includes 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 network switching method switches to a second communication link corresponding to a second operator network to perform communication, so when the communication quality is bad, automatic switching of the operator network can be 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 manners. The above-described apparatus embodiments are merely illustrative, for example, the division of the units is merely a logical function division, and there may be other manners of division in actual implementation, and for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some communication interface, device or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form.
Further, the units described as separate units may or may not be physically separate, and units displayed as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
Furthermore, functional modules in various embodiments of the present application may be integrated together to form a single portion, or each module may exist alone, or two or more modules may be integrated to form a single portion.
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 foregoing is merely exemplary embodiments of the present application and is not intended to limit the scope of the present application, and various modifications and variations may be suggested to one skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.

Claims (9)

1. A network switching method, applied to a network device, the method comprising:
acquiring the communication quality condition of a first communication link when the first communication link corresponding to a first operator network is utilized for communication, wherein the communication quality condition comprises a communication delay condition and/or a communication packet loss condition;
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 network equipment is disconnected and restarted, detecting whether the last connected network is the first operator network or not;
if the last connected network is the first operator network, reading a communication frequency band with the largest dialing success probability recorded in a network registration learning table corresponding to the first operator network, and communicating by utilizing the communication frequency band, wherein each operator network is established with a corresponding network registration learning table, and the network registration learning table is used for recording the probability of the communication frequency band successfully registered by each dialing;
if the last connected network is the second operator network, determining a plurality of communication frequency bands, dialing and surfing the internet through each communication frequency band, counting the probability of successful dialing and surfing the internet of each communication frequency band, and selecting the communication frequency band with the highest probability for communication.
2. The method according to claim 1, characterized by determining whether the communication quality condition satisfies a preset communication condition by:
receiving a reply message fed back by a network server aiming at the detection message sent by the network equipment;
counting the communication parameters corresponding to the reply message;
judging whether the communication quality condition meets the preset communication condition according to the communication parameters.
3. The method according to claim 2, wherein the communication parameter includes a waiting time of the reply message, and the determining whether the communication quality condition satisfies a preset communication condition according to the communication parameter 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 message and a number of the reply messages, 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 the 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 parameter includes the number of reply messages, and the determining whether the communication quality condition satisfies a preset communication condition according to the communication parameter 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 according to any of claims 1-5, wherein the communication quality condition further comprises 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.
7. A network switching apparatus operable with a network device, the apparatus comprising:
the communication quality acquisition module is used for acquiring the communication quality condition of a first communication link when the first communication link corresponding to a first operator network is utilized for communication, wherein the communication quality condition comprises a communication delay condition and/or a communication packet loss condition;
the switching module is used for switching to a second communication link corresponding to the second operator network for communication when the communication quality condition does not meet the preset communication condition;
a restarting communication module, configured to detect, after the network device is disconnected and restarted, whether a network connected last time is the first operator network; if the last connected network is the first operator network, reading a communication frequency band with the largest dialing success probability recorded in a network registration learning table corresponding to the first operator network, and communicating by utilizing the communication frequency band, wherein each operator network is established with a corresponding network registration learning table, and the network registration learning table is used for recording the probability of the communication frequency band successfully registered by each dialing; if the last connected network is the second operator network, determining a plurality of communication frequency bands, dialing and surfing the internet through each communication frequency band, counting the probability of successful dialing and surfing the internet of each communication frequency band, and selecting the communication frequency band with the highest probability for communication.
8. A network device comprising a processor and a memory storing computer readable instructions which, when executed by the processor, perform the method of any of claims 1-6.
9. A computer readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, performs the method according to any of claims 1-6.
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 CN113873598A (en) 2021-12-31
CN113873598B true 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)

Families Citing this family (2)

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

Citations (9)

* 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
JP2012023694A (en) * 2010-07-16 2012-02-02 Ntt Docomo Inc Portable terminal device and method
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

Family Cites Families (4)

* 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
US9001784B2 (en) * 2010-09-09 2015-04-07 Qualcomm Incorporated Handover of multimode user equipment between radio access technologies for reduced call setup time
WO2013066679A1 (en) * 2011-11-04 2013-05-10 Interdigital Patent Holdings, Inc. Methods, apparatus and systems for minimization of drive tests (mdt) based on qos verifications
CN110049535B (en) * 2019-04-15 2022-04-15 深圳市万普拉斯科技有限公司 Network searching method, device, equipment and storage medium

Patent Citations (9)

* 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
JP2012023694A (en) * 2010-07-16 2012-02-02 Ntt Docomo Inc Portable terminal device and method
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
CN111542081A (en) * 2020-06-23 2020-08-14 深圳杰睿联科技有限公司 Communication switching method and device and Internet of things communication module

Also Published As

Publication number Publication date
CN113873598A (en) 2021-12-31

Similar Documents

Publication Publication Date Title
US5404392A (en) Digital Cellular Overlay Network (DCON)
CN110495208B (en) Information sending method, receiving method, device, equipment and storage medium
RU2193290C2 (en) Wireless telecommunication networks jointly employing global mobile communication system and code-division multiple access to channels
CN113873598B (en) Network switching method, device, network equipment and storage medium
CN101796864B (en) A method of monitoring cells in wireless communication systems
JP2002521912A (en) High-speed control traffic communication system
CN102340820B (en) Data transmission method, terminal, communication network with a lower probability of erroneous rejection of data
US20070232297A1 (en) Telephone conversation resumption system, telephone conversation resumption program, telephone conversation resumption method, portable terminal and relay apparatus
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
WO2023045304A1 (en) Networking method and apparatus, device and storage medium
US20100097939A1 (en) Fault Detection Method And Apparatus Of Wireless Resource
US10117143B2 (en) Communications processing system, communications processing method, communications control device, and control method and control program for these
US8238914B2 (en) Handoff method, switching device and terminal
US6556827B1 (en) Method of managing a plurality of radio links in wireless local loop
CN112425191A (en) Network state display control method and device
CN114071377B (en) Voice system switching method, core network equipment, cluster group equipment and cluster group
CN112291806B (en) Service migration method and device
WO2023130274A1 (en) Connection establishment method and apparatus, computer device, storage medium, and program product
CN113747421B (en) Method, equipment and system for controlling terminal regression under mobile network sharing mechanism
CN113438608B (en) Wireless intelligent interactive communication method and communication system
CN111565477B (en) Network connection method, wireless station, and storage medium
CN109699049B (en) Method and device for determining user plane protocol stack type
CN112888035B (en) Method and network equipment for prohibiting terminal equipment from switching to single downlink cell
CN110381551B (en) Data transmission method, terminal and system for dual-card bi-pass terminal

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