CN111988824A - Network switching method and device, electronic equipment and storage medium - Google Patents

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

Info

Publication number
CN111988824A
CN111988824A CN202010892334.XA CN202010892334A CN111988824A CN 111988824 A CN111988824 A CN 111988824A CN 202010892334 A CN202010892334 A CN 202010892334A CN 111988824 A CN111988824 A CN 111988824A
Authority
CN
China
Prior art keywords
network
mobile data
data network
interface information
service
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
CN202010892334.XA
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.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network 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 Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202010892334.XA priority Critical patent/CN111988824A/en
Publication of CN111988824A publication Critical patent/CN111988824A/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/0055Transmission or use of information for re-establishing the radio link
    • H04W36/0066Transmission or use of information for re-establishing the radio link of control information between different types of networks in order to establish a new radio link in the target network
    • 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/16Performing reselection for specific purposes
    • H04W36/22Performing reselection for specific purposes for handling the traffic
    • 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 present disclosure provides a method, an apparatus, an electronic device and a storage medium for network switching, wherein the method comprises: responding to the service access request, and detecting the network type started by the user side; under the condition that the user side is detected to simultaneously open the wireless network and the mobile data network and the network currently used by the user side is the wireless network, judging whether network switching is required currently or not according to the service scene requirement corresponding to the service access request; after determining that network switching is needed, acquiring mobile data network interface information corresponding to a mobile data network; and establishing mobile data network connection between the user terminal and the application server based on the acquired mobile data network interface information. The network switching is automatically completed based on the service scene requirements, manual switching by a user is not needed, time and labor are saved, and the network data transmission efficiency is improved.

Description

Network switching method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a method and an apparatus for network handover, an electronic device, and a storage medium.
Background
Currently, users can access networks to obtain various information by using mobile devices such as mobile phones and tablets. The mobile device may have network access via a Wireless Fidelity (WiFi) network, or via a mobile data network.
Generally, under the condition that the WiFi and the mobile data network are simultaneously turned on, the mobile device may automatically select the WiFi network to perform network data transmission, or remind the user to perform network switching when detecting that the WiFi network is unstable.
Disclosure of Invention
The embodiment of the disclosure provides at least one network switching scheme, which automatically completes network switching based on service scene requirements, does not need manual switching of users, saves time and labor, and improves data transmission efficiency.
Mainly comprises the following aspects:
in a first aspect, an embodiment of the present disclosure provides a method for network handover, where the method includes:
responding to the service access request, and detecting the network type started by the user side;
under the condition that a user side is detected to simultaneously start a wireless network and a mobile data network and the network currently used by the user side is the wireless network, judging whether network switching is required currently or not according to the service scene requirement corresponding to the service access request;
after determining that network switching is needed, acquiring mobile data network interface information corresponding to the mobile data network;
and establishing mobile data network connection between the user side and the application server based on the acquired mobile data network interface information.
In a possible implementation manner, the determining whether network switching is currently required according to a service scenario requirement corresponding to the service access request includes:
if the wireless network and the mobile data network are determined to meet the service scene requirements according to the service scene requirements, determining whether network switching is required currently or not according to the network signal intensity of the wireless network;
and if only the mobile data network in the wireless network and the mobile data network meets the service scene requirement according to the service scene requirement, determining that network switching is required.
In a possible implementation manner, the determining that only the mobile data network of the wireless network and the mobile data network satisfies the service scenario requirement according to the service scenario requirement includes:
and if the current service scene is determined to have the requirement of acquiring the user identification information according to the service scene requirement, determining that only the mobile data network in the wireless network and the mobile data network meets the service scene requirement.
In one possible embodiment, the method further comprises:
and under the condition that the wireless network and the mobile data network both meet the requirements of the service scene, if the connection of the mobile data network is failed to be established, a service access request is initiated to the application server based on the wireless network.
In one possible embodiment, the method further comprises:
under the condition that only a mobile data network in the wireless network and the mobile data network meets the requirement of the service scene, if the establishment of the mobile data network connection fails, the service access is ended; or, returning to the step of obtaining the mobile data network interface information corresponding to the mobile data network, and establishing the mobile data network connection again until reaching the preset connection attempt times, and ending the service access.
In one possible implementation, the mobile data network interface information corresponding to the mobile data network is determined according to the following steps:
acquiring network interface information corresponding to at least one network connected by the user terminal in a historical time period by using an application program interface arranged by the user terminal;
based on the set network type of the mobile data network, screening network interface information matched with the set network type from the acquired at least one piece of network interface information;
and determining the screened network interface information as mobile data network interface information corresponding to the mobile data network.
In a possible embodiment, the establishing a mobile data network connection between the user terminal and an application server based on the obtained mobile data network interface information includes:
extracting a network port number corresponding to a network protocol used by the mobile data network and an Internet Protocol (IP) address of an application server to be connected from the acquired interface information of the mobile data network;
and sending a mobile data network connection request to the application server based on the network port number and the IP address so as to establish mobile data network connection between the client and the application server.
In a second aspect, an embodiment of the present disclosure further provides an apparatus for network handover, where the apparatus includes:
the detection module is used for responding to the service access request and detecting the network type started by the user side;
the judging module is used for judging whether network switching is needed currently or not according to the service scene requirement corresponding to the service access request under the condition that the user side is detected to simultaneously start a wireless network and a mobile data network and the network currently used by the user side is the wireless network;
the acquisition module is used for acquiring mobile data network interface information corresponding to the mobile data network after determining that network switching is required;
and the establishing module is used for establishing the mobile data network connection between the user side and the application server based on the acquired mobile data network interface information.
In a third aspect, an embodiment of the present disclosure further provides an electronic device, including: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating via the bus when the electronic device is running, the machine-readable instructions when executed by the processor performing the steps of the method of network switching according to the first aspect and any of its various embodiments.
In a fourth aspect, the disclosed embodiments also provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, performs the steps of the method for network handover according to the first aspect and any of its various embodiments.
By adopting the above network switching scheme, the service access request is responded, and when the situation that the user side simultaneously opens the wireless network and the mobile data network and the network currently used by the user side is the wireless network is detected, whether the network switching is currently required or not is judged according to the service scene requirement corresponding to the service access request, and after the network switching is determined to be required, the mobile data network connection between the user side and the application server can be established based on the acquired mobile data network interface information corresponding to the mobile data network.
In the above network switching scheme, considering that the network types applicable to different service scene requirements are different, in order to satisfy network data transmission in various service scenes, it may be determined whether to perform switching of a wireless network adapted to a general service scene to a mobile data network required to be adopted in a special service scene first according to the service scene requirements, and if so, a mobile data network connection between a user terminal and an application server may be established based on mobile data network interface information corresponding to the mobile data network, so as to perform network data transmission based on the established mobile data network connection.
In order to make the aforementioned objects, features and advantages of the present disclosure more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings required for use in the embodiments will be briefly described below, and the drawings herein incorporated in and forming a part of the specification illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the technical solutions of the present disclosure. It is appreciated that the following drawings depict only certain embodiments of the disclosure and are therefore not to be considered limiting of its scope, for those skilled in the art will be able to derive additional related drawings therefrom without the benefit of the inventive faculty.
Fig. 1 is a flowchart illustrating a method for network handover according to a first embodiment of the present disclosure;
fig. 2 is a flowchart illustrating a specific method for determining interface information of a mobile data network in a network handover method according to an embodiment of the present disclosure;
fig. 3 is a schematic diagram illustrating an apparatus for network handover according to a second embodiment of the present disclosure;
fig. 4 shows a schematic diagram of an electronic device provided in a third embodiment of the present disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present disclosure more clear, the technical solutions of the embodiments of the present disclosure will be described clearly and completely with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are only a part of the embodiments of the present disclosure, not all of the embodiments. The components of the embodiments of the present disclosure, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present disclosure, presented in the figures, is not intended to limit the scope of the claimed disclosure, but is merely representative of selected embodiments of the disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the disclosure without making creative efforts, shall fall within the protection scope of the disclosure.
Research shows that, at present, in the process of network switching, a user is required to manually switch the network, and the network switching can be from a data network to an open wireless network or from the wireless network to the data network, so that the operation is complex, and time and labor are wasted.
Based on the research, the network switching scheme is at least provided, the network switching is automatically completed based on the service scene requirements, manual switching of users is not needed, time and labor are saved, and the network data transmission efficiency is improved.
The above-mentioned drawbacks are the results of the inventor after practical and careful study, and therefore, the discovery process of the above-mentioned problems and the solutions proposed by the present disclosure to the above-mentioned problems should be the contribution of the inventor in the process of the present disclosure.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
To facilitate understanding of the present embodiment, first, a method for network handover disclosed in the embodiments of the present disclosure is described in detail, where an execution subject of the method for network handover provided in the embodiments of the present disclosure is generally a computer device with certain computing capability, and the computer device includes, for example: a terminal device, which may be a User Equipment (UE), a mobile device, a terminal, a cellular phone, a cordless phone, a Personal Digital Assistant (PDA), a handheld device, a computing device, a vehicle mounted device, a wearable device, or other processing device. In some possible implementations, the method of network switching may be implemented by a processor invoking computer readable instructions stored in a memory.
The method for performing network handover according to the embodiment of the present disclosure is described below by taking the main ue as an example.
Example one
Referring to fig. 1, which is a flowchart of a method for network handover provided in an embodiment of the present disclosure, the method includes steps S101 to S104, where:
s101, responding to a service access request, and detecting a network type started by a user side;
s102, under the condition that a wireless network and a mobile data network are simultaneously started by a user side and the network currently used by the user side is a wireless network, judging whether network switching is needed currently or not according to the service scene requirement corresponding to the service access request;
s103, acquiring mobile data network interface information corresponding to the mobile data network after determining that network switching is required;
and S104, establishing mobile data network connection between the user side and the application server based on the acquired mobile data network interface information.
Here, in order to facilitate understanding of the method for network handover provided by the embodiment of the present disclosure, an application scenario of the method for network handover may be first described in detail. The method for switching networks provided by the embodiment of the present disclosure may be mainly applied to a service scenario that requires a network to perform service access, where the service access may be initiated for a specific function of an Application (APP) set at a user end, for example, a specific service access request may be initiated for registration and login of the Application, and for functions such as data transmission during use of the Application.
After the service access request is responded, under the condition that the currently used network is determined to be a wireless network, whether the mobile data network needs to be switched or not is judged based on the service scene requirement corresponding to the service access request, and the network connection between the user side and the application server can be established under the condition that the network switching needs to be performed.
It should be noted that the Mobile data network may be a Global System for Mobile Communications (GSM) network, a Wideband Code Division Multiple Access (W-CDMA) network, a Time Division-Synchronous Code Division Multiple Access (TD-SCDMA) network, etc., and the present disclosure does not specifically limit this, and considers that the GSM network is widely used, and the following may take the GSM network as an example for illustration. The Wireless network may be a Wireless Fidelity (WiFi) network.
Here, mainly considering that in practical applications, a wireless network is widely applied to various service scenarios due to its characteristics of flexibility in use, economy, and the like, in the method for network handover provided in the embodiment of the present disclosure, the wireless network may be used as a general connection network, that is, in a case where a service access request has not been responded, if it is determined that a user side simultaneously starts the wireless network and a mobile data network, the currently used network may be defaulted to be the wireless network. Therefore, the network is switched to the mobile data network only under the condition that the network is determined to be switched to the mobile data network from the wireless network according to the service scene requirement corresponding to the initiated service access request, so that the extra cost brought to the user to which the user side belongs by the data flow connected with the mobile data network can be reduced as much as possible on the premise of meeting various service scene requirements.
In the embodiment of the present disclosure, whether network switching is required currently may be determined according to a service scenario requirement corresponding to the service access request, where it is considered that different service scenarios are different in applicable network types, and therefore, the embodiment of the present disclosure may determine whether network switching is required on the premise of determining a network to which the current service scenario is applicable.
It is considered that the wireless network can adapt to most service scenarios, that is, most service scenarios can utilize the wireless network to realize connection with the application server without network switching. Therefore, in the embodiment of the present disclosure, a precondition for network handover is that a mobile data network needs to meet a current service scenario, where only the mobile data network may meet a service scenario requirement, or both the wireless network and the mobile data network may meet a service scenario requirement, and a specific implementation manner of network handover is further described in the following two aspects.
In a first aspect: the embodiment of the disclosure determines that network switching is required under the condition that only the mobile data network is determined to meet the requirements of the service scene.
In the embodiment of the present disclosure, the service scenario only adapted to the mobile data network for service access may mainly be a scenario related to user identification information authorized by the user.
The user identification information authorized by the user mainly refers to Subscriber Identity Module (SIM) card information that uniquely identifies a user, such as information of a digital mobile phone user (e.g., name, phone number, identification number, etc.), an encrypted key, and information content of a user's phone book, etc., where the information can be used for a GSM network user to perform operations such as Identity authentication, etc.
In a second aspect: the embodiment of the disclosure can preferentially adopt the wireless network for service access under the condition that the wireless network and the mobile data network both meet the service scene requirement, and here, network switching can be carried out under the condition that a weak wireless network signal is monitored.
Here, it is mainly considered that a radio signal, which is a signal propagated in the air through an electromagnetic wave, will cause a large attenuation in the signal transmission process, and a weak signal strength will directly affect whether a user terminal can successfully access an application server, so in order to ensure a service access to a current service scenario, the network switching method may determine that network switching is required when the network signal strength of the radio network is determined to be less than a preset threshold.
The preset threshold is set to be not too large or too small, the too large preset threshold may cause frequent network switching, the frequent network switching may not utilize the stability of network connection, and the too small preset threshold may cause service access failure due to insufficient signal strength and failure of network switching, where-80 dBm (decibel milliwatt) may be used as the preset threshold.
It should be noted that, in the embodiment of the present disclosure, in addition to determining whether to perform network handover based on the threshold judgment, whether to perform network handover may also be determined by combining with the network environment of the wireless network, for example, when it is determined that the peripheral network is not safe enough or there are too many clients currently connected to the same wireless network, it may be considered that there is an insecure factor in the network environment, and at this time, network handover may be implemented.
After the network switching is realized according to the two aspects, the mobile data network connection between the user terminal and the application server can be established based on the acquired mobile data network interface information corresponding to the mobile data network.
As shown in fig. 2, the mobile data network interface information may be implemented as follows:
s201, acquiring network interface information corresponding to at least one network connected by a user side in a historical time period by using an application program interface set by the user side;
s202, based on the set network type of the mobile data network, screening network interface information matched with the set network type from the acquired at least one piece of network interface information;
s203, determining the screened network interface information as mobile data network interface information corresponding to the mobile data network.
Here, the Application Programming Interface (API) set at the user end may be used to obtain network Interface information corresponding to at least one network connected by the user end in the historical time period, for example, network Interface information of each network connected in the past two days may be determined, where the connected networks may include a wireless network and may also include a mobile data network.
Considering that the mobile data network corresponds to a specific network type, in this case, network interface information matching the set network type may be searched from the obtained network interface information to determine the mobile data network interface information of the mobile data network according to the searched network interface information, for example, it may be determined that one network type corresponding to one network interface information is pdp _ ip0, that is, the network interface information is determined to be the mobile data network interface information.
In the process of establishing the mobile data network connection between the user terminal and the application server, the embodiment of the disclosure may rely on the network port number corresponding to the network Protocol used by the mobile data network and the Internet Protocol (IP) address of the application server to be connected, which are extracted from the obtained mobile data network interface information, so that the mobile data network connection request may be sent to the IP address of the application server according to the network port number corresponding to the network Protocol.
After the application server receives the mobile data network connection request and successfully verifies the mobile data network connection request, confirmation information can be returned to the user side, and at the moment, the success of the mobile data network connection request can be confirmed, so that the mobile data network connection between the client side and the application server is established.
After the mobile data network connection is established, the mobile data network can be used for service application such as data transmission, after the corresponding service application is completed, the mobile data network connection can be closed, at this time, the state of using the wireless network can be recovered, and network switching from the wireless network to the mobile data network is performed until network switching is required according to the service scene requirements.
Considering that in practical applications, a mobile data network connection failure may be caused by a poor network environment, in the case of the mobile data network connection failure, the embodiments of the present disclosure may adopt different solutions according to the network type to which the service scenario is applicable.
Firstly, under the condition that only the mobile data network in the wireless network and the mobile data network meets the requirements of a service scene, if the establishment of the mobile data network connection fails, the service access can be directly ended, the mobile data network connection can also be established again, and the service access can be ended under the condition that the number of connection attempts reaches a preset value (for example, 5 times). The process of establishing the mobile data network connection each time may be determined based on the obtained mobile data network interface information of the mobile data network, which is not described again here.
Secondly, under the condition that the wireless network and the mobile data network both meet the requirements of the service scene, if the establishment of the mobile data network connection fails, a service access request is initiated to the application server based on the wireless network, that is, the service access can be carried out by adopting a replacement network, namely the wireless network, once the mobile data network connection is failed.
It should be noted that the process of accessing services by using a wireless network may be implemented by relying on a specific client system API, which is not described herein again.
The user end System in the embodiment of the present disclosure may be an apple operating System (iOS), and may also be other user end systems that need to perform network switching.
It will be understood by those skilled in the art that in the method of the present invention, the order of writing the steps does not imply a strict order of execution and any limitations on the implementation, and the specific order of execution of the steps should be determined by their function and possible inherent logic.
Based on the same inventive concept, the embodiment of the present disclosure further provides a network handover apparatus corresponding to the network handover method, and as the principle of the apparatus in the embodiment of the present disclosure for solving the problem is similar to the network handover method in the embodiment of the present disclosure, the implementation of the apparatus may refer to the implementation of the method, and repeated details are not repeated.
Example two
Referring to fig. 3, which is a schematic diagram of a network handover apparatus according to a second embodiment of the present disclosure, the apparatus includes:
the detection module 301 is configured to respond to the service access request and detect a network type started by the user side;
the determining module 302 is configured to determine whether network switching is currently required according to a service scene requirement corresponding to a service access request when it is detected that a user side simultaneously opens a wireless network and a mobile data network and a network currently used by the user side is a wireless network;
an obtaining module 303, configured to obtain mobile data network interface information corresponding to a mobile data network after it is determined that network handover is required;
the establishing module 304 is configured to establish a mobile data network connection between the user terminal and the application server based on the obtained mobile data network interface information.
In the network switching device, considering that the network types applicable to different service scene requirements are different, in order to meet network data transmission in various service scenes, whether switching of a wireless network suitable for a general service scene to a mobile data network required for a special service scene needs to be performed or not can be determined according to the service scene requirements, if so, mobile data network connection between a user side and an application server can be established based on mobile data network interface information corresponding to the mobile data network, so that network data transmission is performed based on the established mobile data network connection, the whole process is automatically completed, manual participation is not needed, and time and labor are saved.
In a possible implementation manner, the determining module 302 is configured to determine whether network switching is currently required according to a service scenario requirement corresponding to the service access request according to the following steps:
if the wireless network and the mobile data network meet the requirements of the service scene according to the requirements of the service scene, determining whether network switching is needed at present according to the network signal intensity of the wireless network;
and if only the mobile data network in the wireless network and the mobile data network meets the service scene requirement according to the service scene requirement, determining that network switching is required.
In a possible implementation manner, the determining module 302 is configured to determine, according to the service scenario requirement, that only the mobile data network of the wireless network and the mobile data network satisfies the service scenario requirement according to the following steps:
and if the current service scene is determined to have the requirement of acquiring the user identity identification information according to the service scene requirement, determining that only the mobile data network in the wireless network and the mobile data network meets the service scene requirement.
In one possible embodiment, the apparatus further comprises:
the first access module 305 is configured to, if the wireless network and the mobile data network both meet the service scenario requirement and if the mobile data network connection is failed to be established, initiate a service access request to the application server based on the wireless network.
In one possible embodiment, the apparatus further comprises:
the second access module 306 is configured to, in a case that only the mobile data network in the wireless network and the mobile data network meets a service scenario requirement, end the service access if establishing a mobile data network connection fails; or, returning to the step of obtaining the mobile data network interface information corresponding to the mobile data network, and establishing the mobile data network connection again until the preset connection attempt times are reached, and ending the service access.
In a possible implementation manner, the obtaining module 303 is configured to determine the mobile data network interface information corresponding to the mobile data network according to the following steps:
acquiring network interface information corresponding to at least one network connected by a user side in a historical time period by using an application program interface API (application program interface) arranged by the user side;
based on the set network type of the mobile data network, screening network interface information matched with the set network type from the acquired at least one network interface information;
and determining the screened network interface information as mobile data network interface information corresponding to the mobile data network.
In a possible implementation manner, the establishing module 304 is configured to establish a mobile data network connection between the user terminal and the application server based on the obtained mobile data network interface information according to the following steps, including:
extracting a network port number corresponding to a network protocol used by a mobile data network and an Internet Protocol (IP) address of an application server to be connected from the acquired mobile data network interface information;
and sending a mobile data network connection request to the application server based on the network port number and the IP address so as to establish the mobile data network connection between the client and the application server.
The description of the processing flow of each module in the device and the interaction flow between the modules may refer to the related description in the above method embodiments, and will not be described in detail here.
Example four
An embodiment of the present disclosure further provides an electronic device, as shown in fig. 4, which is a schematic structural diagram of the electronic device provided in the embodiment of the present disclosure, and the electronic device includes: a processor 401, a memory 402, and a bus 403. The memory 402 stores machine-readable instructions executable by the processor 401 (in the network switching apparatus shown in fig. 3, the instructions correspondingly executed by the detecting module 301, the determining module 302, the obtaining module 303, and the establishing module 304), when the electronic device is operated, the processor 401 communicates with the memory 402 via the bus 403, and when the processor 401 is executed, the machine-readable instructions perform the following processes:
responding to the service access request, and detecting the network type started by the user side;
under the condition that the user side is detected to simultaneously open the wireless network and the mobile data network and the network currently used by the user side is the wireless network, judging whether network switching is required currently or not according to the service scene requirement corresponding to the service access request;
after determining that network switching is needed, acquiring mobile data network interface information corresponding to a mobile data network;
and establishing mobile data network connection between the user terminal and the application server based on the acquired mobile data network interface information.
In a possible implementation manner, in the instruction executed by the processor 401, determining whether network switching is currently required according to a service scenario requirement corresponding to the service access request includes:
if the wireless network and the mobile data network meet the requirements of the service scene according to the requirements of the service scene, determining whether network switching is needed at present according to the network signal intensity of the wireless network;
and if only the mobile data network in the wireless network and the mobile data network meets the service scene requirement according to the service scene requirement, determining that network switching is required.
In a possible implementation manner, the instructions executed by the processor 401 for determining, according to the service scenario requirement, that only the mobile data network of the wireless network and the mobile data network satisfies the service scenario requirement includes:
and if the current service scene is determined to have the requirement of acquiring the user identity identification information according to the service scene requirement, determining that only the mobile data network in the wireless network and the mobile data network meets the service scene requirement.
In a possible implementation manner, the instructions executed by the processor 401 further include:
and under the condition that the wireless network and the mobile data network both meet the requirements of a service scene, if the connection of the mobile data network is failed to be established, a service access request is initiated to the application server based on the wireless network.
In a possible implementation manner, the instructions executed by the processor 401 further include:
under the condition that only the mobile data network in the wireless network and the mobile data network meets the requirements of service scenes, if the connection of the mobile data network is failed to be established, the service access is ended; or, returning to the step of obtaining the mobile data network interface information corresponding to the mobile data network, and establishing the mobile data network connection again until the preset connection attempt times are reached, and ending the service access.
In a possible implementation manner, in the instructions executed by the processor 401, the mobile data network interface information corresponding to the mobile data network is determined according to the following steps:
acquiring network interface information corresponding to at least one network connected by a user side in a historical time period by using an application program interface API (application program interface) arranged by the user side;
based on the set network type of the mobile data network, screening network interface information matched with the set network type from the acquired at least one network interface information;
and determining the screened network interface information as mobile data network interface information corresponding to the mobile data network.
In a possible implementation manner, the instructions executed by the processor 401 for establishing a mobile data network connection between the user terminal and the application server based on the obtained mobile data network interface information includes:
extracting a network port number corresponding to a network protocol used by a mobile data network and an Internet Protocol (IP) address of an application server to be connected from the acquired mobile data network interface information;
and sending a mobile data network connection request to the application server based on the network port number and the IP address so as to establish the mobile data network connection between the client and the application server.
The embodiments of the present disclosure also provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program performs the steps of the method for network handover described in the above method embodiments. The storage medium may be a volatile or non-volatile computer-readable storage medium.
The computer program product of the network handover method provided in the embodiments of the present disclosure includes a computer-readable storage medium storing a program code, where instructions included in the program code may be used to execute the steps of the network handover method described in the above method embodiments, which may be referred to in the above method embodiments specifically, and are not described herein again.
The embodiments of the present disclosure also provide a computer program, which when executed by a processor implements any one of the methods of the foregoing embodiments. The computer program product may be embodied in hardware, software or a combination thereof. In an alternative embodiment, the computer program product is embodied in a computer storage medium, and in another alternative embodiment, the computer program product is embodied in a Software product, such as a Software Development Kit (SDK), or the like.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the system and the apparatus described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. In the several embodiments provided in the present disclosure, it should be understood that the disclosed system, apparatus, and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present disclosure. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Finally, it should be noted that: the above-mentioned embodiments are merely specific embodiments of the present disclosure, which are used for illustrating the technical solutions of the present disclosure and not for limiting the same, and the scope of the present disclosure is not limited thereto, and although the present disclosure is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive of the technical solutions described in the foregoing embodiments or equivalent technical features thereof within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present disclosure, and should be construed as being included therein. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.

Claims (10)

1. A method of network handover, the method comprising:
responding to the service access request, and detecting the network type started by the user side;
under the condition that a user side is detected to simultaneously start a wireless network and a mobile data network and the network currently used by the user side is the wireless network, judging whether network switching is required currently or not according to the service scene requirement corresponding to the service access request;
after determining that network switching is needed, acquiring mobile data network interface information corresponding to the mobile data network;
and establishing mobile data network connection between the user side and the application server based on the acquired mobile data network interface information.
2. The method of claim 1, wherein the determining whether network switching is currently required according to a service scenario requirement corresponding to the service access request comprises:
if the wireless network and the mobile data network are determined to meet the service scene requirements according to the service scene requirements, determining whether network switching is required currently or not according to the network signal intensity of the wireless network;
and if only the mobile data network in the wireless network and the mobile data network meets the service scene requirement according to the service scene requirement, determining that network switching is required.
3. The method of claim 2, wherein said determining that only the mobile data network of the wireless network and the mobile data network meets the service scenario requirement according to the service scenario requirement comprises:
and if the current service scene is determined to have the requirement of acquiring the user identification information according to the service scene requirement, determining that only the mobile data network in the wireless network and the mobile data network meets the service scene requirement.
4. The method of claim 2, further comprising:
and under the condition that the wireless network and the mobile data network both meet the requirements of the service scene, if the connection of the mobile data network is failed to be established, a service access request is initiated to the application server based on the wireless network.
5. The method of claim 2, further comprising:
under the condition that only a mobile data network in the wireless network and the mobile data network meets the requirement of the service scene, if the establishment of the mobile data network connection fails, the service access is ended; or, returning to the step of obtaining the mobile data network interface information corresponding to the mobile data network, and establishing the mobile data network connection again until reaching the preset connection attempt times, and ending the service access.
6. The method according to any one of claims 1 to 5, wherein the mobile data network interface information corresponding to the mobile data network is determined according to the following steps:
acquiring network interface information corresponding to at least one network connected by the user terminal in a historical time period by using an application program interface arranged by the user terminal;
based on the set network type of the mobile data network, screening network interface information matched with the set network type from the acquired at least one piece of network interface information;
and determining the screened network interface information as mobile data network interface information corresponding to the mobile data network.
7. The method according to any one of claims 1 to 5, wherein the establishing a mobile data network connection between the user terminal and an application server based on the obtained mobile data network interface information comprises:
extracting a network port number corresponding to a network protocol used by the mobile data network and an Internet Protocol (IP) address of an application server to be connected from the acquired interface information of the mobile data network;
and sending a mobile data network connection request to the application server based on the network port number and the IP address so as to establish mobile data network connection between the client and the application server.
8. An apparatus for network handover, the apparatus comprising:
the detection module is used for responding to the service access request and detecting the network type started by the user side;
the judging module is used for judging whether network switching is needed currently or not according to the service scene requirement corresponding to the service access request under the condition that the user side is detected to simultaneously start a wireless network and a mobile data network and the network currently used by the user side is the wireless network;
the acquisition module is used for acquiring mobile data network interface information corresponding to the mobile data network after determining that network switching is required;
and the establishing module is used for establishing the mobile data network connection between the user side and the application server based on the acquired mobile data network interface information.
9. An electronic device, comprising: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating over the bus when the electronic device is operating, the machine-readable instructions when executed by the processor performing the steps of the method of network switching according to any of claims 1 to 7.
10. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, is adapted to carry out the steps of the method of network handover according to one of the claims 1 to 7.
CN202010892334.XA 2020-08-31 2020-08-31 Network switching method and device, electronic equipment and storage medium Pending CN111988824A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010892334.XA CN111988824A (en) 2020-08-31 2020-08-31 Network switching method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010892334.XA CN111988824A (en) 2020-08-31 2020-08-31 Network switching method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111988824A true CN111988824A (en) 2020-11-24

Family

ID=73439728

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010892334.XA Pending CN111988824A (en) 2020-08-31 2020-08-31 Network switching method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111988824A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114844940A (en) * 2022-03-14 2022-08-02 武汉斗鱼鱼乐网络科技有限公司 Network request method and related equipment
CN115038134A (en) * 2022-06-29 2022-09-09 支付宝(杭州)信息技术有限公司 Service request processing method, device, equipment and medium
CN115103058A (en) * 2022-06-27 2022-09-23 中国银行股份有限公司 Automatic switching method of mobile phone network, related device and computer storage medium
CN115696511A (en) * 2022-12-29 2023-02-03 小米汽车科技有限公司 Network determination method, device, vehicle and medium
CN115883333A (en) * 2022-12-06 2023-03-31 天翼物联科技有限公司 Rule base based information self-adaptive transmission method, system and medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103052144A (en) * 2012-12-14 2013-04-17 北京思特奇信息技术股份有限公司 System and method of mobile terminal for selecting optimal communication network
WO2014148675A1 (en) * 2013-03-20 2014-09-25 주식회사에어플러그 Method for controlling use of network when additionally connected to wireless communications network
CN105554831A (en) * 2016-01-28 2016-05-04 努比亚技术有限公司 Network switching device and method
CN106779648A (en) * 2016-12-16 2017-05-31 广东欧珀移动通信有限公司 A kind of network data sending method and mobile terminal
CN107274178A (en) * 2017-07-21 2017-10-20 广东欧珀移动通信有限公司 Method for switching network and Related product
CN107404740A (en) * 2017-08-07 2017-11-28 广东欧珀移动通信有限公司 Method for switching network, device and the terminal device of safety
CN107466077A (en) * 2017-07-24 2017-12-12 维沃移动通信有限公司 A kind of method for switching network and mobile terminal
CN108337706A (en) * 2018-02-05 2018-07-27 广东欧珀移动通信有限公司 A kind of switching method of wireless network, mobile terminal and storage medium
US20190182734A1 (en) * 2015-10-30 2019-06-13 Investel Capital Corporation Data network access selection, migration and quality management systems and methods
CN110891292A (en) * 2019-11-20 2020-03-17 三星电子(中国)研发中心 Method and device for automatically switching network for terminal

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103052144A (en) * 2012-12-14 2013-04-17 北京思特奇信息技术股份有限公司 System and method of mobile terminal for selecting optimal communication network
WO2014148675A1 (en) * 2013-03-20 2014-09-25 주식회사에어플러그 Method for controlling use of network when additionally connected to wireless communications network
US20190182734A1 (en) * 2015-10-30 2019-06-13 Investel Capital Corporation Data network access selection, migration and quality management systems and methods
CN105554831A (en) * 2016-01-28 2016-05-04 努比亚技术有限公司 Network switching device and method
CN106779648A (en) * 2016-12-16 2017-05-31 广东欧珀移动通信有限公司 A kind of network data sending method and mobile terminal
CN107274178A (en) * 2017-07-21 2017-10-20 广东欧珀移动通信有限公司 Method for switching network and Related product
CN107466077A (en) * 2017-07-24 2017-12-12 维沃移动通信有限公司 A kind of method for switching network and mobile terminal
CN107404740A (en) * 2017-08-07 2017-11-28 广东欧珀移动通信有限公司 Method for switching network, device and the terminal device of safety
CN108337706A (en) * 2018-02-05 2018-07-27 广东欧珀移动通信有限公司 A kind of switching method of wireless network, mobile terminal and storage medium
CN110891292A (en) * 2019-11-20 2020-03-17 三星电子(中国)研发中心 Method and device for automatically switching network for terminal

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114844940A (en) * 2022-03-14 2022-08-02 武汉斗鱼鱼乐网络科技有限公司 Network request method and related equipment
CN115103058A (en) * 2022-06-27 2022-09-23 中国银行股份有限公司 Automatic switching method of mobile phone network, related device and computer storage medium
CN115103058B (en) * 2022-06-27 2024-01-26 中国银行股份有限公司 Automatic switching method of mobile phone network, related device and computer storage medium
CN115038134A (en) * 2022-06-29 2022-09-09 支付宝(杭州)信息技术有限公司 Service request processing method, device, equipment and medium
CN115038134B (en) * 2022-06-29 2024-04-26 支付宝(中国)网络技术有限公司 Service request processing method, device, equipment and medium
CN115883333A (en) * 2022-12-06 2023-03-31 天翼物联科技有限公司 Rule base based information self-adaptive transmission method, system and medium
CN115696511A (en) * 2022-12-29 2023-02-03 小米汽车科技有限公司 Network determination method, device, vehicle and medium
CN115696511B (en) * 2022-12-29 2024-02-06 小米汽车科技有限公司 Network determination method, device, vehicle and medium

Similar Documents

Publication Publication Date Title
CN111988824A (en) Network switching method and device, electronic equipment and storage medium
US10631160B2 (en) Apparatuses, methods and systems for virtualizing a reprogrammable universal integrated circuit chip
CN105338515B (en) Data service transmission method and mobile communication equipment
CN105162748B (en) The processing of electronic user identification module application identifier
US11172352B2 (en) Apparatuses, methods, and systems for configuring a trusted java card virtual machine using biometric information
WO2017049736A1 (en) Mobile communications network access method and device
CN107634845B (en) Adaptation method and device for operator network
US20170127371A1 (en) Method for Updating RPLMN Information and User Equipment
CN108810123B (en) Method and apparatus for provisioning mobile cellular network services
US20220022014A1 (en) Imei binding and dynamic imei provisioning for wireless devices
KR20160143333A (en) Method for Double Certification by using Double Channel
CN107332578A (en) The method of plurality of SIM cards mobile terminal network-locking
CN108432339B (en) Wireless communication network registration method and terminal
CN103945345A (en) Information prompt method and mobile terminal
CN101616468B (en) Mobile communication terminal and data service control method thereof
CN104486803B (en) Adaptation method, terminal device and the cloud server of cellular mobile network
CN105704705A (en) Method for switching terminals with shared eSIM information, terminal and server
CN105898047A (en) Contact dialing management method, dialing method and related devices
WO2012062192A1 (en) Method and device for identifying user card
CN113727323B (en) Communication method and device of dual-frequency client, dual-frequency client and communication system
CN110719586B (en) Service establishing method, device and server
CN103369721A (en) Wireless communication module and operation method thereof
CN109413761B (en) Calling method applied to network calling platform and network calling platform
CN104469899B (en) Network selection method and electronic equipment
US10075839B2 (en) Information processing method 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20201124

RJ01 Rejection of invention patent application after publication