CN110868742A - Network switching method and device - Google Patents

Network switching method and device Download PDF

Info

Publication number
CN110868742A
CN110868742A CN201911152440.8A CN201911152440A CN110868742A CN 110868742 A CN110868742 A CN 110868742A CN 201911152440 A CN201911152440 A CN 201911152440A CN 110868742 A CN110868742 A CN 110868742A
Authority
CN
China
Prior art keywords
network
connection
current
connection capability
unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911152440.8A
Other languages
Chinese (zh)
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.)
Shanghai Sunmi Technology Group Co Ltd
Original Assignee
Shanghai Sunmi Technology Group 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 Shanghai Sunmi Technology Group Co Ltd filed Critical Shanghai Sunmi Technology Group Co Ltd
Priority to CN201911152440.8A priority Critical patent/CN110868742A/en
Publication of CN110868742A publication Critical patent/CN110868742A/en
Pending legal-status Critical Current

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/0011Control or signalling for completing the hand-off for data sessions of end-to-end connection
    • 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
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a method and a device for switching networks, wherein the method comprises the following steps: determining a current connection network and a connectable network of the intelligent business terminal; respectively scoring the connection capacity of the current connection network and the connectable network; when the connection capability score of the current connection network is higher than a first threshold value, if the connection capability score of the connectable network is higher than the connection capability score of the current connection network and exceeds a second threshold value, the connectable network is taken as a candidate network; and when the connection capability score of the current network is lower than or equal to a first threshold value, switching the candidate network into the current connection network of the intelligent business terminal. The invention can solve the problem of intelligent network switching in a multi-network scene and improve the network switching speed.

Description

Network switching method and device
Technical Field
The embodiment of the invention relates to the technical field of terminals, in particular to a network switching method and device applied to an intelligent commercial terminal.
Background
Wireless Fidelity (WiFi) is a Wireless lan technology, and is also suitable for Wireless broadband access. At present, a large number of WiFi hotspots are operated globally, and free or paid wireless internet access services are provided for mobile terminal users. The convenient and reliable use of WiFi is an essential part of the mobile terminal design. However, when the mobile terminal user uses WiFi, when the network to which the mobile terminal is connected is a first network, and the network speed of the first network is slow and the signal is poor, if there is one or more networks available in the environment where the mobile terminal is currently located besides the first network, and the network speed and the signal of the available network are better than those of the first network, the mobile terminal user may switch from the first network to the network with good network speed and signal.
It should be noted that the above background description is only for the sake of clarity and complete description of the technical solutions of the present invention and for the understanding of those skilled in the art. Such solutions are not considered to be known to the person skilled in the art merely because they have been set forth in the background section of the invention.
Disclosure of Invention
In view of the foregoing problems, an object of embodiments of the present invention is to provide a method and an apparatus for network handover, which can solve network intelligent handover in a multi-network scenario and improve network handover speed.
In order to achieve the above object, an embodiment of the present invention provides a network switching method, where the method is applied to an intelligent business terminal under multiple networks, and the method includes: determining a current connection network and a connectable network of the intelligent business terminal; respectively scoring the connection capacity of the current connection network and the connectable network; when the connection capability score of the current connection network is higher than a first threshold value, if the connection capability score of the connectable network is higher than the connection capability score of the current connection network and exceeds a second threshold value, the connectable network is taken as a candidate network; and when the connection capability score of the current network is lower than or equal to a first threshold value, switching the candidate network into the current connection network of the intelligent business terminal.
The embodiment of the invention provides a network switching device, which is applied to an intelligent commercial terminal and comprises: the evaluation unit is used for determining the current connection network and the connectable network and respectively evaluating the connection capacity of the current connection network and the connectable network; a candidate network evaluation unit, configured to, when the connection capability score of the current connection network is higher than a first threshold, if the connection capability score of the connectable network is higher than the connection capability score of the current connection network and exceeds a second threshold, take the connectable network as a candidate network; and the network switching unit is used for switching the candidate network into the current connection network of the intelligent business terminal when the connection capability score of the current network is lower than or equal to a first threshold value.
In an embodiment of the present invention, there is also provided a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps of the method of the above-described embodiment.
In an embodiment of the present invention, there is also provided a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the method of the above-mentioned embodiment.
As can be seen from the above, the method and apparatus for network switching provided by the embodiments of the present invention score a wired network, a wireless network, and a mobile network, which are connectable to an intelligent business terminal, respectively, for a situation that the intelligent business terminal is often connected by a wired network, and switch the networks according to the scores, thereby solving a problem that it is difficult to implement limited network switching in the prior art; according to the embodiment of the invention, serial judgment is not adopted, scores of different networks are periodically calculated, the network with better connection performance is used as a candidate network according to the scores, when the connection performance of the current connection network is not good, the candidate network can be quickly switched to the current connection network, and the network switching speed is greatly improved; in addition, when the current connection network and the connectable network are connected to the corresponding network types, the connection capabilities of the current connection network and the connectable network of the intelligent business terminal are periodically scored respectively, so that the situation that a user pays extra cost due to speed measurement in a mobile network is avoided, the number of bytes of PING instructions sent by acquiring the network connectivity in the mobile network is less than that of PING instructions sent by acquiring the network delay in a wired network and a wireless network, and the flow consumption is further reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts. In the drawings:
fig. 1 is a flowchart illustrating a network handover method according to an embodiment of the present invention.
Fig. 2 is a schematic flowchart of determining a candidate network to be switched according to an embodiment of the present invention.
Fig. 3 is a schematic structural diagram of a network handover apparatus according to an embodiment of the present invention.
Fig. 4 is a schematic structural diagram of a wired network scoring unit, a wireless network scoring unit, and a mobile network scoring unit in the network switching apparatus according to the embodiment of the present invention.
Fig. 5 is a schematic structural diagram of a network switching unit in the network switching apparatus according to the embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be described clearly and completely with reference to the accompanying drawings of the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention. Furthermore, as used in the examples of the invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
In order to make the technical solutions of the present invention better understood by those skilled in the art, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings.
The existing chinese invention patent CN105188101B discloses a network switching scheme, which includes: acquiring the signal strength of a first network; judging whether the signal intensity of the first network is smaller than a first preset threshold value or not; if the signal intensity of the first network is smaller than a first preset threshold value, determining a second network; judging whether the uplink rate and/or the downlink rate of the first network is smaller than a corresponding second preset threshold value or not; if the uplink rate and/or the downlink rate of the first network is smaller than the corresponding second preset threshold, the uplink rate and/or the downlink rate of the second network are/is correspondingly obtained; judging whether the uplink rate and/or the downlink rate of the second network are correspondingly greater than the uplink rate and/or the downlink rate of the first network; and if the uplink rate and/or the downlink rate of the second network are/is correspondingly greater than the uplink rate and/or the downlink rate of the first network, switching from the first network to the second network in a state of keeping the connection network.
However, in the process of implementing the invention, the inventor finds that the prior art has at least the following problems:
1. the existing scheme only aims at the mobile terminal to switch between a wireless network and a mobile network, but for the intelligent commercial terminal in a commercial scene, a wired network is commonly used as a main connecting means, and a public place WIFI and the mobile network are used as standby connecting means, so that the existing scheme is difficult to solve the scene of wired network switching;
2. the existing scheme adopts a serial network evaluation scheme, namely, the signal intensity of a first network is judged firstly, the uplink rate and/or the downlink rate of the first network is judged when the signal intensity of the first network meets the condition, and the uplink rate and/or the downlink rate of a second network is judged when the uplink rate and/or the downlink rate of the first network meets the condition, so that the network switching speed is influenced;
3. the existing scheme can cause the user to pay extra cost when the speed measurement is carried out under a mobile network.
An embodiment of the present invention provides a network switching method, which is applied to an intelligent business terminal in multiple networks, and as shown in fig. 1, the method specifically includes the following steps:
and step S11, determining the current connection network and the connectable network of the intelligent business terminal.
In step S12, the connection capabilities of the current connection network and the connectable network are respectively scored.
In this step, the network types of the current connection network and the connectable network include at least one of a wired network, a wireless network, or a mobile network, and connection capabilities of the current connection network and the connectable network of the intelligent business terminal are periodically scored, respectively, when the current connection network and the connectable network are connected at the corresponding network types.
A wired network is a computer network that is connected using coaxial cable, twisted pair, and fiber optics. Factors affecting the connection capability of the wired network mainly include the current network speed, delay, packet loss rate and the like. In this embodiment, a PING instruction is sent through an ICMP (internet control Message Protocol) to obtain a network delay TTL; obtaining a packet loss ratio LOST according to the number of the sending packets and the number of the receiving packets; the network rate NS is calculated by downloading data from a server. In the embodiment of the present invention, normalization processing is performed in the calculation process for the final scoring comparison. Specifically, values of the combined network speed, the network delay time and the packet loss rate are obtained according to the pre-assigned weights of the network speed NS, the network delay TTL and the packet loss rate LOST, and then the values are assigned to the range of 0-100 through normalization.
In the embodiment of the present invention, the calculation formula of the connection capability score of the wired network is as follows:
(sin(NS×π/200)×0.7+0.2×LOST+sin(0.09×TTL×π/180)×0.1) ×100。
wireless network refers to a network for transmitting data over the air. Factors influencing the wireless network connection capability mainly include the current network speed, signal strength, delay, packet loss rate and the like. Similar to a wired network, a PING instruction is sent through an ICMP protocol to obtain network delay TTL; obtaining a packet loss ratio LOST according to the number of the sending packets and the number of the receiving packets; and calculating the network speed NS according to the server download data. In addition, the signal strength RSV of the wireless network is acquired from the WIFI module through the API. The method comprises the steps of obtaining values of combined network speed, network delay, packet loss rate and signal strength according to network speed NS, network delay TTL, packet loss rate LOST and weight values pre-distributed by signal strength RSV, and distributing the values to the range of 0-100 through normalization. In the embodiment of the present invention, a calculation formula of the wireless network connection capability score is as follows:
(sin (NS × π/200). times.0.6 + RSV/1000+0.2 × LOST + sin (0.09 × TTL × π/180). times.0.1). times.100. Mobile network refers to a way to connect to a network using a mobile device to enable internet access. Factors affecting the mobile network connectivity mainly include network connectivity, signal strength, etc. Similar to the wired network and the wireless network, the PING instruction is sent through the ICMP to obtain the network connectivity TTL, and the signal strength RSV of the wireless network is obtained from the WIFI module through the API, wherein the number of bytes of the PING instruction sent by obtaining the network connectivity in the mobile network is less than that of the PING instruction sent by obtaining the network delay in the wired network and the wireless network. And obtaining values of the network connectivity and the signal strength according to weights pre-distributed by the network connectivity TTL and the signal strength RSV, and distributing the values to the range of 0-100 through normalization.
In the embodiment of the invention, the method for calculating the connection capability score of the mobile network comprises the following steps:
(sin(0.09×TTL×π/180)×0.7+ RSV×3/1000)。
it should be noted that although the connection capability of the wired network, the wireless network or the mobile network involves different parameters, the connection capability of different networks can be reflected by the score values through the three formulas, and the score values are normalized in the three formulas so that the score values are compared at the same latitude. Preferably, in this embodiment, the score of the connection capability of the wired network, the wireless network or the mobile network is normalized to 0-100, so that the connection capability of different networks can be simply and clearly determined.
And step S13, when the connection capability score of the current connection network is higher than the first threshold, if the connection capability score of the connectable network is higher than the connection capability score of the current connection network and exceeds the second threshold, the connectable network is taken as a candidate network.
In this step, a first threshold of the connection capability score of the network is preset, and a second threshold of the difference of the connection capability scores of different networks is preset.
And when the connection capability score of the current connection network is higher than a first threshold value, the communication connection between the intelligent business terminal and the current connection network is stable. If the other connectable networks have a higher connection capability score than the currently connected network, the handover is not performed temporarily. And further judging whether the difference value between the connection capability score of other connectable networks and the connection capability score of the current connected network is higher than a second threshold value, and if so, taking the connectable network as a candidate network.
For example, assume that the first threshold is 40 and the second threshold is 30. The current wired network has a connectivity rating of 50, above a first threshold of 40; if the connection capability score of the wireless network is 70 at the moment, the difference between the score of the wireless network and the score of the current wired network is 20 and is lower than the second threshold value 30, no processing is carried out at the moment, namely the wired network cannot be switched, and the wireless network cannot be selected as a candidate network; if the wireless network has a connection capability score of 90, the difference between the wireless network score and the current wired network score is 40, which is higher than the second threshold value of 30, so that the wireless network is considered as a candidate network although the wired network is not switched.
As shown in fig. 2, after calculating the scores of the wired network, the wireless network, and the mobile network, the step specifically includes:
s21, determining the network with the highest score;
s22, judging whether the network with the highest score is the current connection network; if yes, no operation is required, if no, go to S23;
s23, judging whether the highest score is higher than the score of the current connected network by a second threshold value, if so, entering S24, and if not, needing no operation;
and S24, taking the highest-grade network as a candidate network so as to switch the network when the conditions are met.
And step S14, when the connection capability score of the current network is lower than or equal to a first threshold value, switching the candidate network into the current connection network of the intelligent business terminal.
In this step, when the connection capability score of the currently connected network is lower than or equal to the first threshold, which indicates that the communication connection between the intelligent business terminal and the currently connected network is unstable, the candidate network is switched to the currently connected network of the intelligent business terminal.
An embodiment of the present invention further provides a network switching apparatus, as shown in fig. 2, where the apparatus is applied to an intelligent business terminal, and the apparatus includes:
a scoring unit 21, configured to determine a current connection network and a connectable network, and score connection capabilities of the current connection network and the connectable network respectively;
a candidate network evaluation unit 22, configured to, when the connection capability score of the current connected network is higher than a first threshold, if the connection capability score of the connectable network is higher than the connection capability score of the current connected network and exceeds a second threshold, regard the connectable network as a candidate network;
and the network switching unit 23 is used for switching the candidate network into the current connection network of the intelligent business terminal when the connection capability score of the current network is lower than or equal to a first threshold value.
The scoring unit 21 includes: the system comprises a wired network scoring unit 211, a wireless network scoring unit 212 and a mobile network scoring unit 213, wherein the wired network scoring unit scores the connection capability of the wired network according to the current network speed, network delay and packet loss rate; the wireless network scoring unit scores the connection capability of the wired network according to the current network speed, the signal intensity, the network delay and the packet loss rate; and the mobile network scoring unit scores the connection capability of the mobile network according to the network connectivity and the signal strength. The specific scoring formula is as described in the methods.
As shown in fig. 4, the wired network scoring unit 211, the wireless network scoring unit 212, and the mobile network scoring unit 213 further include: the influence factor calculation unit is used for calculating all factors influencing the network connection capacity; the merging calculation unit is used for performing merging calculation on all factors according to the pre-distributed weight values; the normalization unit is used for carrying out normalization processing on the values after the combination calculation; and the output scoring unit outputs the scores after the normalization processing.
Specifically, the wired network scoring unit 211 further includes a network speed calculating unit, a network delay calculating unit, and a packet loss rate calculating unit, the merging calculating unit merges and calculates the network speed, the network delay and the packet loss rate according to a pre-assigned weight, the normalizing unit normalizes the merged and calculated values, and the output scoring unit outputs a score within a range of 0 to 100 after the normalization processing.
Specifically, the wireless network scoring unit 212 further includes a network speed calculating unit, a network delay calculating unit, a packet loss rate calculating unit, and a signal strength calculating unit, the merging calculating unit merges and calculates the network speed, the network delay, the packet loss rate, and the signal strength according to a pre-assigned weight, the normalizing unit normalizes the merged values, and the output scoring unit outputs a score within a range of 0 to 100 after the normalization processing.
Specifically, the wireless network scoring unit 213 further includes a network connectivity calculating unit and a signal strength calculating unit, the combining calculating unit combines and calculates the network connectivity and the signal strength according to pre-assigned weights, the normalizing unit normalizes the values after the combining calculation, and the output scoring unit outputs the score within the range of 0 to 100 after the normalization processing.
As shown in fig. 5, the network switching unit further includes: a receiving unit, configured to wait for receiving a request for network handover; an acquisition unit configured to acquire a network to be switched; and the calling unit is used for calling the system interface to switch the network.
The technical effects that can be achieved in the embodiments of the network handover apparatus can also be achieved in the embodiments of the network handover method, similarly to the above-described specific technical details of the network handover apparatus and the network handover method. Accordingly, the related technical details mentioned in the embodiments of the apparatus for network handover may also be applied in the embodiments of the method for network handover. To reduce repetition, further description is omitted here.
The network switching method provided by the embodiment of the invention respectively scores the wired network, the wireless network and the mobile network which can be connected with the intelligent business terminal aiming at the condition that the intelligent business terminal is usually connected by the wired network, and switches the network according to the scores, thereby solving the problem that the limited network switching is difficult to realize in the prior art; according to the embodiment of the invention, serial judgment is not adopted, scores of different networks are periodically calculated, the network with better connection performance is used as a candidate network according to the scores, when the connection performance of the current connection network is not good, the candidate network can be quickly switched to the current connection network, and the network switching speed is greatly improved; in addition, when the current connection network and the connectable network are connected to the corresponding network types, the connection capabilities of the current connection network and the connectable network of the intelligent business terminal are periodically scored respectively, so that the situation that a user pays extra cost due to speed measurement in a mobile network is avoided, the number of bytes of PING instructions sent by acquiring the network connectivity in the mobile network is less than that of PING instructions sent by acquiring the network delay in a wired network and a wireless network, and the flow consumption is further reduced.
Embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the method described in the above embodiments.
The embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and when the processor executes the computer program, the steps of the method described in the above embodiments are implemented.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (12)

1. A method for switching networks is applied to an intelligent business terminal under multiple networks, and is characterized by comprising the following steps:
determining a current connection network and a connectable network of the intelligent business terminal;
respectively scoring the connection capacity of the current connection network and the connectable network;
when the connection capability score of the current connection network is higher than a first threshold value, if the connection capability score of the connectable network is higher than the connection capability score of the current connection network and exceeds a second threshold value, the connectable network is taken as a candidate network;
and when the connection capability score of the current network is lower than or equal to a first threshold value, switching the candidate network into the current connection network of the intelligent business terminal.
2. The method according to claim 1, wherein the scoring the connection capabilities of the current connection network and the connectable network respectively comprises:
the network types of the current connection network and the connectable network include at least one of a wired network, a wireless network, or a mobile network;
and periodically and respectively grading the connection capability of the current connection network and the connection capability of the connectable network of the intelligent business terminal when the current connection network and the connectable network are connected at the corresponding network types.
3. The method according to claim 2, wherein if the network type is a wired network, the connection capability of the wired network is scored according to the current network speed, network delay and packet loss rate;
sending a PING instruction through ICMP to obtain network delay TTL; obtaining a packet loss ratio LOST according to the number of the sending packets and the number of the receiving packets; calculating a network rate NS by downloading data from a server; obtaining values of the combined network speed, the network delay time and the packet loss rate according to the weight values pre-distributed by the network speed NS, the network delay TTL and the packet loss rate LOST, and distributing the values to the range of 0-100 through normalization;
the calculation formula of the connection capability score of the wired network is as follows:
(sin(NS×π/200)×0.7+0.2×LOST+sin(0.09×TTL×π/180)×0.1) ×100。
4. the method of network switching according to claim 2, wherein if the network type is a wireless network, the connection capability of the wired network is scored according to a current network speed, a signal strength, a network delay, and a packet loss rate;
sending a PING instruction through ICMP to obtain network delay TTL; obtaining a packet loss ratio LOST according to the number of the sending packets and the number of the receiving packets; calculating a network rate NS by downloading data from a server; acquiring signal strength RSV of a wireless network through an API; obtaining values of the combined network speed, the network delay, the packet loss rate and the signal intensity according to the network speed NS, the network delay TTL, the packet loss rate LOST and the weight value pre-distributed by the signal intensity RSV, and distributing the values to the range of 0-100 through normalization;
the calculation formula of the connection capability score of the wireless network is as follows:
(sin(NS×π/200)×0.6+RSV/1000+0.2×LOST+sin(0.09×TTL×π/180)×0.1)×100。
5. the method of network handover according to claim 3, wherein if the network type is a mobile network, performing connection capability scoring of the mobile network according to network connectivity and signal strength;
sending a PING instruction through ICMP to acquire network connectivity TTL; acquiring signal strength RSV of a wireless network through an API; obtaining values of network connectivity and signal strength according to weights pre-distributed by network connectivity TTL and signal strength RSV, and distributing the values to a range of 0-100 through normalization;
the calculation formula of the connection capability score of the mobile network is as follows:
(sin(0.09×TTL×π/180)×0.7+ RSV×3/1000)。
6. the method of network handover as claimed in claim 5, wherein the PING commands sent to obtain network connectivity in the mobile network are fewer bytes than PING commands sent to obtain network latency in the wired and wireless networks.
7. A network switching device applied to an intelligent business terminal is characterized by comprising:
the evaluation unit is used for determining the current connection network and the connectable network and respectively evaluating the connection capacity of the current connection network and the connectable network;
a candidate network evaluation unit, configured to, when the connection capability score of the current connection network is higher than a first threshold, if the connection capability score of the connectable network is higher than the connection capability score of the current connection network and exceeds a second threshold, take the connectable network as a candidate network;
and the network switching unit is used for switching the candidate network into the current connection network of the intelligent business terminal when the connection capability score of the current network is lower than or equal to a first threshold value.
8. The apparatus for network handover according to claim 7, wherein the scoring unit comprises: a wired network rating unit, a wireless network rating unit, and a mobile network rating unit, wherein,
the wired network scoring unit scores the connection capability of the wired network according to the current network speed, the network delay and the packet loss rate, and the calculation formula of the connection capability scoring of the wired network is as follows:
(sin(NS×π/200)×0.7+0.2×LOST+sin(0.09×TTL×π/180)×0.1) ×100;
the wireless network scoring unit scores the connection capability of the wired network according to the current network speed, the signal intensity, the network delay and the packet loss rate, and the calculation formula of the wireless network connection capability scoring is as follows:
(sin(NS×π/200)×0.6+RSV/1000+0.2×LOST+sin(0.09×TTL×π/180)×0.1)×100;
the mobile network scoring unit scores the connection capability of the mobile network according to the network connectivity and the signal strength, and the calculation formula of the connection capability scoring of the mobile network is as follows:
(sin(0.09×TTL×π/180)×0.7+ RSV×3/1000)。
9. the apparatus for switching networks according to claim 8, wherein the wired network scoring unit, the wireless network scoring unit and the mobile network scoring unit respectively comprise:
the influence factor calculation unit is used for calculating all factors influencing the network connection capacity;
the merging calculation unit is used for performing merging calculation on all factors according to the pre-distributed weight values;
the normalization unit is used for carrying out normalization processing on the values after the combination calculation;
and the output scoring unit outputs the scores after the normalization processing.
10. The apparatus for network handover according to claim 7, wherein the network handover unit specifically comprises:
a receiving unit, configured to wait for receiving a request for network handover;
an acquisition unit configured to acquire a network to be switched;
and the calling unit is used for calling the system interface to switch the network.
11. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of claims 1 to 6.
12. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the steps of the method of claims 1-6 are performed when the program is executed by the processor.
CN201911152440.8A 2019-11-22 2019-11-22 Network switching method and device Pending CN110868742A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911152440.8A CN110868742A (en) 2019-11-22 2019-11-22 Network switching method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911152440.8A CN110868742A (en) 2019-11-22 2019-11-22 Network switching method and device

Publications (1)

Publication Number Publication Date
CN110868742A true CN110868742A (en) 2020-03-06

Family

ID=69654999

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911152440.8A Pending CN110868742A (en) 2019-11-22 2019-11-22 Network switching method and device

Country Status (1)

Country Link
CN (1) CN110868742A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113055962A (en) * 2021-03-05 2021-06-29 南昌黑鲨科技有限公司 Multi-network switching method and system of intelligent terminal and computer readable storage medium
CN113225233A (en) * 2021-05-24 2021-08-06 京东方科技集团股份有限公司 Healthy cabin and network selection method, device and storage medium thereof
CN113365319A (en) * 2021-05-11 2021-09-07 杭州电魂网络科技股份有限公司 Network switching method, system, electronic device and storage medium
CN114531709A (en) * 2020-11-23 2022-05-24 中国联合网络通信集团有限公司 Network switching method and device
CN115209503A (en) * 2022-08-16 2022-10-18 Oppo广东移动通信有限公司 Method and device for realizing switching between networks and electronic equipment
CN115243330A (en) * 2021-04-25 2022-10-25 中国联合网络通信集团有限公司 Method, terminal and storage medium for automatically switching WiFi and cellular network

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101808378A (en) * 2010-04-01 2010-08-18 上海交通大学 Fast vertical handoff method of mobile terminal in heterogeneous network
CN102111838A (en) * 2011-03-02 2011-06-29 上海交通大学 Self-adaptation vertical handover method based on RSS (Really Simple Syndication) variation trend
CN105141474A (en) * 2015-08-18 2015-12-09 浪潮电子信息产业股份有限公司 Method for testing network flow monitoring tool based on linux system
CN105162657A (en) * 2015-08-28 2015-12-16 浪潮电子信息产业股份有限公司 Method for optimizing network test performance
CN106658588A (en) * 2016-12-21 2017-05-10 广东欧珀移动通信有限公司 Network quality detection method and device and computer equipment
CN106972947A (en) * 2017-02-13 2017-07-21 长沙业鑫通讯技术有限公司 Redundancy intelligent entrance guard networking method based on 4G mobile networks and wired internet
CN107197489A (en) * 2017-08-02 2017-09-22 广东欧珀移动通信有限公司 Method for switching network, mobile terminal and computer-readable recording medium
CN107517136A (en) * 2016-06-16 2017-12-26 中兴通讯股份有限公司 The implementation method of heartbeat keep-alive, apparatus and system
CN108174420A (en) * 2018-02-02 2018-06-15 广东欧珀移动通信有限公司 Method for switching network, device, terminal and storage medium
CN108616912A (en) * 2018-08-02 2018-10-02 竞技世界(北京)网络技术有限公司 A kind of network quality optimization method and device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101808378A (en) * 2010-04-01 2010-08-18 上海交通大学 Fast vertical handoff method of mobile terminal in heterogeneous network
CN102111838A (en) * 2011-03-02 2011-06-29 上海交通大学 Self-adaptation vertical handover method based on RSS (Really Simple Syndication) variation trend
CN105141474A (en) * 2015-08-18 2015-12-09 浪潮电子信息产业股份有限公司 Method for testing network flow monitoring tool based on linux system
CN105162657A (en) * 2015-08-28 2015-12-16 浪潮电子信息产业股份有限公司 Method for optimizing network test performance
CN107517136A (en) * 2016-06-16 2017-12-26 中兴通讯股份有限公司 The implementation method of heartbeat keep-alive, apparatus and system
CN106658588A (en) * 2016-12-21 2017-05-10 广东欧珀移动通信有限公司 Network quality detection method and device and computer equipment
CN106972947A (en) * 2017-02-13 2017-07-21 长沙业鑫通讯技术有限公司 Redundancy intelligent entrance guard networking method based on 4G mobile networks and wired internet
CN107197489A (en) * 2017-08-02 2017-09-22 广东欧珀移动通信有限公司 Method for switching network, mobile terminal and computer-readable recording medium
CN108174420A (en) * 2018-02-02 2018-06-15 广东欧珀移动通信有限公司 Method for switching network, device, terminal and storage medium
CN108616912A (en) * 2018-08-02 2018-10-02 竞技世界(北京)网络技术有限公司 A kind of network quality optimization method and device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114531709A (en) * 2020-11-23 2022-05-24 中国联合网络通信集团有限公司 Network switching method and device
CN113055962A (en) * 2021-03-05 2021-06-29 南昌黑鲨科技有限公司 Multi-network switching method and system of intelligent terminal and computer readable storage medium
CN113055962B (en) * 2021-03-05 2022-07-26 南昌黑鲨科技有限公司 Multi-network switching method and system of intelligent terminal and computer readable storage medium
CN115243330A (en) * 2021-04-25 2022-10-25 中国联合网络通信集团有限公司 Method, terminal and storage medium for automatically switching WiFi and cellular network
CN113365319A (en) * 2021-05-11 2021-09-07 杭州电魂网络科技股份有限公司 Network switching method, system, electronic device and storage medium
CN113225233A (en) * 2021-05-24 2021-08-06 京东方科技集团股份有限公司 Healthy cabin and network selection method, device and storage medium thereof
CN115209503A (en) * 2022-08-16 2022-10-18 Oppo广东移动通信有限公司 Method and device for realizing switching between networks and electronic equipment

Similar Documents

Publication Publication Date Title
CN110868742A (en) Network switching method and device
US11974168B2 (en) Method for data transmission through communication link, electronic device, and storage medium
CN105101357B (en) Method and device for controlling network connection
CN112040515B (en) Network switching method and device
JP7229387B2 (en) Method, terminal, system and network access equipment for receiving and transmitting data in wireless LAN
US10986204B2 (en) Terminal device, edge server, data delivery system, and delivery control method
CN106993317B (en) SSID (service set identifier) selection method and device based on dual-frequency wireless router
CN107786676B (en) Relay communication method, system and terminal for relay communication
CN110677875B (en) Wireless network load balancing method facing edge computing environment
WO2018233510A1 (en) Communication method and apparatus
WO2020114048A1 (en) Data transmission method and related apparatus
CN112383948B (en) Data transmission method, device, storage medium and electronic equipment
WO2020078199A1 (en) Link connection method and related apparatus
US10873530B2 (en) Method for controlling data transmission, device, and storage medium
WO2020259862A1 (en) Session establishment with a local serving network
CN112997528A (en) Network switching method and related equipment
EP2445142A1 (en) Dynamic bandwidth adjustment for multiple service support
CN111683413A (en) Method, terminal, network access device and storage medium for establishing multilink connection
CN113692753A (en) Network device and method for searching edge service implemented in network device
US20180176814A1 (en) Communication control device, communication system and communication method
US9344926B2 (en) Base station and handover processing method for digital trunking communication
WO2019158034A1 (en) Resource allocation method and apparatus
KR20120043919A (en) System and method for controlling tethering in mobile communication network
CN108282251B (en) Link adjustment method and device and server
CN111757275A (en) Device connection method and device, storage medium and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination