US20160119833A1 - Network Switching Method and Terminal Device - Google Patents

Network Switching Method and Terminal Device Download PDF

Info

Publication number
US20160119833A1
US20160119833A1 US14/988,956 US201614988956A US2016119833A1 US 20160119833 A1 US20160119833 A1 US 20160119833A1 US 201614988956 A US201614988956 A US 201614988956A US 2016119833 A1 US2016119833 A1 US 2016119833A1
Authority
US
United States
Prior art keywords
network
accessed
allowed
target
resource parameter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
US14/988,956
Other versions
US10045263B2 (en
Inventor
Hao Wu
Kangmin Huang
Mingjie DONG
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Assigned to HUAWEI TECHNOLOGIES CO., LTD. reassignment HUAWEI TECHNOLOGIES CO., LTD. ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: HUANG, Kangmin, WU, HAO, DONG, MINGJIE
Publication of US20160119833A1 publication Critical patent/US20160119833A1/en
Application granted granted Critical
Publication of US10045263B2 publication Critical patent/US10045263B2/en
Active legal-status Critical Current
Adjusted expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0055Transmission or use of information for re-establishing the radio link
    • H04W36/0072Transmission or use of information for re-establishing the radio link of resource information of target access point
    • 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
    • H04W36/0022Control or signalling for completing the hand-off for data sessions of end-to-end connection for transferring data sessions between adjacent core network technologies
    • 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/16Performing reselection for specific purposes
    • H04W36/18Performing reselection for specific purposes for allowing seamless reselection, e.g. soft reselection
    • 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
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/06Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals

Definitions

  • the present disclosure relates to the field of wireless communications technologies, and in particular, to a network switching method and a terminal device.
  • a wireless mobile communications network in which multiple radio access technologies and standards are complementary provides a ubiquitous information communications service for a user, and a user terminal can be freely switched between multiple different wireless mobile communications networks.
  • a wireless communications system when moving from a current network in which the user terminal is located to a target network, the user terminal needs to perform network switching, where the target network refers to a next communications network to which the user terminal moves.
  • an application program that is run on the user terminal and needs to perform network communication is run according to a network status of the target network by using a parameter that adapts to the network status. This switching manner usually causes that the application program that is run on the user terminal and needs to perform network communication is not smoothly switched.
  • Embodiments of the present disclosure provide a network switching method and a terminal device, which are used to enable an application program that is run on the terminal device to implement, to some extent, seamless network switching.
  • an embodiment of the present disclosure provides a network switching method, where the method includes, before network switching is performed, acquiring a network resource parameter of a network allowed to be accessed, determining, from the network allowed to be accessed and according to the network resource parameter of the network allowed to be accessed, a target network to be switched to and a network resource parameter of the target network, where the network resource parameter of the target network is used to determine and set a running parameter of an application program that is to be run in the target network, and switching from a current network to the target network, and starting or continuing running the application program in the target network.
  • the running parameter of the application program includes resolution
  • the determining and setting, according to the network resource parameter of the target network, the running parameter of the application program that is to be run in the target network includes, determining and setting, according to the network resource parameter of the target network, the resolution of the application program that is to be run in the target network, where the application program includes a video type application that uses network communications.
  • the network resource parameter includes network quality, bandwidth, or a network charge rate
  • the determining and setting, according to the network resource parameter of the target network, the running parameter of the application program that is to be run in the target network includes, determining and setting, according to the network quality of the target network, the running parameter of the application program that is to be run in the target network, or determining and setting, according to the bandwidth of the target network, the running parameter of the application program that is to be run in the target network, or determining and setting, according to the network charge rate of the target network, the running parameter of the application program that is to be run in the target network.
  • the method further includes, establishing a network connection between the application program and a network server in the target network.
  • the acquiring a network resource parameter of a network allowed to be accessed includes, self-detecting and acquiring the network resource parameter of the network allowed to be accessed; or receiving the network resource parameter that is of the network allowed to be accessed and is sent by a network management device, or receiving the network resource parameter that is of the network allowed to be accessed and is sent by a terminal device of a communication peer.
  • the determining, from the network allowed to be accessed and according to the network resource parameter of the network allowed to be accessed, a target network to be switched to includes, the network resource parameter includes bandwidth, a network charge rate, or network stability, determining, from the network allowed to be accessed and according to the bandwidth of the network allowed to be accessed, a network with largest bandwidth as the target network to be switched to; or determining, from the network allowed to be accessed and according to the network charge rate of the network allowed to be accessed, a network with a lowest charge as the target network to be switched to, or determining, from the network allowed to be accessed and according to the network stability of the network allowed to be accessed, a network with highest stability as the target network to be switched to.
  • an embodiment of the present disclosure provides a switching notifying method, where the method includes, before network switching, acquiring a network resource parameter of a network allowed to be accessed; determining, from the network allowed to be accessed and according to the network resource parameter of the network allowed to be accessed, a target network to be switched to, sending a network resource parameter of the target network to a specified terminal device, so that the specified terminal device determines, according to the network resource parameter, a running parameter of an application program that is run on the terminal device, and switching from current network to the target network.
  • the acquiring a network resource parameter of a network allowed to be accessed includes, self-detecting and acquiring the network resource parameter of the network allowed to be accessed, or receiving the network resource parameter that is of the network allowed to be accessed and is sent by a network management device.
  • the determining, from the network allowed to be accessed and according to the network resource parameter of the network allowed to be accessed, a target network to be switched to includes, the network resource parameter includes bandwidth, a network charge rate, or network stability, determining, from the network allowed to be accessed and according to the bandwidth of the network allowed to be accessed, a network with largest bandwidth as the target network to be switched to, or determining, from the network allowed to be accessed and according to the network charge rate of the network allowed to be accessed, a network with a lowest charge as the target network to be switched to, or determining, from the network allowed to be accessed and according to the network stability of the network allowed to be accessed, a network with highest stability as the target network to be switched to.
  • an embodiment of the present disclosure further provides a terminal device, where the terminal device includes an acquiring unit configured to, before network switching is performed, acquire a network resource parameter of a network allowed to be accessed, a determining unit configured to determine, from the network allowed to be accessed and according to the network resource parameter of the network allowed to be accessed, a target network to be switched to and a network resource parameter of the target network, where the network resource parameter of the target network is used to determine and set a running parameter of an application program that is to be run in the target network, and a switching unit configured to switch from a current network to the target network, and a running unit configured to start or continue running the application program in the target network.
  • the terminal device includes an acquiring unit configured to, before network switching is performed, acquire a network resource parameter of a network allowed to be accessed, a determining unit configured to determine, from the network allowed to be accessed and according to the network resource parameter of the network allowed to be accessed, a target network to be switched to and a network resource parameter of the target
  • the determining unit before switching from the current network to the target network, is further configured to determine and set, according to the network resource parameter of the target network, the running parameter of the application program that is to be run in the target network and the running unit is further configured to run the application program, and after switching from the current network to the target network, the running unit is further configured to continue running the application program in the target network.
  • the running parameter of the application program includes resolution
  • the determining unit is further configured to determine and set, according to the network resource parameter of the target network, the resolution of the application program that is to be run in the target network, where the application program includes a video type application that uses network communications.
  • the running parameter of the application program includes a heartbeat period
  • the determining unit is further configured to determine and set, according to the network resource parameter of the target network, the heartbeat period of the application program that is to be run in the target network.
  • the network resource parameter includes network quality, bandwidth, or a network charge rate
  • the determining unit is further configured to determine and set, according to the network quality of the target network, the running parameter of the application program that is to be run in the target network, or the determining unit is further configured to determine and set, according to the bandwidth of the target network, the running parameter of the application program that is to be run in the target network, or the determining unit is further configured to determine and set, according to the network charge rate of the target network, the running parameter of the application program that is to be run in the target network.
  • the terminal device further includes a connecting unit, where the connecting unit is configured to establish a network connection between the application program and a network server in the target network.
  • the acquiring unit is further configured to self-detect and acquire the network resource parameter of the network allowed to be accessed, or the acquiring unit is further configured to receive the network resource parameter that is of the network allowed to be accessed and is sent by a network management device; or the acquiring unit is further configured to receive the network resource parameter that is of the network allowed to be accessed and is sent by a terminal device.
  • the network resource parameter includes bandwidth, a network charge rate, or network stability
  • the determining unit is further configured to determine, from the network allowed to be accessed and according to the bandwidth of the network allowed to be accessed, a network with largest bandwidth as the target network to be switched to, or the determining unit is further configured to determine, from the network allowed to be accessed and according to the network charge rate of the network allowed to be accessed, a network with a lowest charge as the target network to be switched to, or the determining unit is further configured to determine, from the network allowed to be accessed and according to the network stability of the network allowed to be accessed, a network with highest stability as the target network to be switched to.
  • an embodiment of the present disclosure further provides a terminal device, where the terminal device includes, an acquiring unit configured to acquire a network resource parameter of a network allowed to be accessed; a determining unit configured to determine, from the network allowed to be accessed and according to the network resource parameter of the network allowed to be accessed, a target network to be switched to, a sending unit configured to send a network resource parameter of the target network to a terminal device, so that the terminal device determines, according to the network resource parameter, a running parameter of an application program that is run on the terminal device, and a switching unit configured to switch from a current network to the target network.
  • the acquiring unit is further configured to self-detect and acquire the network resource parameter of the network allowed to be accessed, or the acquiring unit is further configured to receive the network resource parameter that is of the network allowed to be accessed and is sent by a network management device.
  • the network resource parameter includes bandwidth, a network charge rate, or network stability
  • the determining unit is further configured to determine, from the network allowed to be accessed and according to the bandwidth of the network allowed to be accessed, a network with largest bandwidth as the target network to be switched to, or the determining unit is further configured to determine, from the network allowed to be accessed and according to the network charge rate of the network allowed to be accessed, a network with a lowest charge as the target network to be switched to; or the determining unit is further configured to determine, from the network allowed to be accessed and according to the network stability of the network allowed to be accessed, a network with highest stability as the target network to be switched to.
  • a network resource parameter of a target network to be switched to is determined before network switching, so that a running parameter of an application program that is to be run in the target network is determined and set according to the network resource parameter of the target network.
  • the network switching method described in the solutions is used to enable the application program to implement, to some extent, seamless network switching.
  • FIG. 1 is a schematic diagram of an application scenario of a network switching method according to an embodiment of the present disclosure
  • FIG. 2A is a schematic flowchart of a network switching method according to an embodiment of the present disclosure
  • FIG. 2B is a schematic flowchart of a network switching method according to an embodiment of the present disclosure
  • FIG. 3 is a schematic structural diagram of a terminal device according to an embodiment of the present disclosure.
  • FIG. 4 is a schematic structural diagram of a terminal device according to an embodiment of the present disclosure.
  • FIG. 5 is a schematic flowchart of a network switching method according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present disclosure.
  • FIG. 7 is a schematic structural diagram of another terminal device according to an embodiment of the present disclosure.
  • FIG. 1 is a schematic diagram of an application scenario of a network switching method according to an embodiment of the present disclosure.
  • a terminal device When moving in a direction shown by arrows in FIG. 1 , a terminal device needs to pass through five different mobile communications networks and may perform network switching for four times. As shown in FIG. 1 , overlapping areas exist between the mobile communications networks, and when passing through the overlapping areas, the terminal device may select one of networks that cover the overlapping areas for access.
  • overlapping areas exist among a long term evolution (LTE) network, an universal mobile telecommunications system (UMTS) network, and a WiFi network, and then when moving from the LTE network to an overlapping area, the terminal device may select one network of the LTE network, the UMTS network, and the WiFi network to perform network switching and access, for example, select the WiFi network as a next access network.
  • LTE long term evolution
  • UMTS universal mobile telecommunications system
  • WiFi Wireless Fidelity
  • FIG. 2A is a schematic flowchart of a network switching method according to an embodiment of the present disclosure.
  • the terminal device in the application scenario shown in FIG. 1 may perform network switching by using the network switching method described in this embodiment of the present disclosure.
  • the network switching method provided in this embodiment of the present disclosure may be applied to a computer network system and various communications systems.
  • the computer system may be located in one physical host, or may be distributed and located in multiple physical hosts.
  • the computer system may be located in one or more terminals whose types include a computer, a portable computer, a handheld device (such as a mobile phone and a personal digital assistant), a server, and the like.
  • the various communications systems are, for example, a global system for mobile communications (GSM) system, a code division multiple access (CDMA) system, a wideband code division multiple access (WCDMA) system, a general packet radio service (GPRS), a LTE system, a LTE frequency division duplex (FDD) system, a LTE time division duplex (TDD) system, an universal mobile telecommunications system UMTS, and a worldwide interoperability for microwave access (WiMAX) communications system.
  • GSM global system for mobile communications
  • CDMA code division multiple access
  • WCDMA wideband code division multiple access
  • GPRS general packet radio service
  • LTE Long Term Evolution
  • FDD frequency division duplex
  • TDD LTE time division duplex
  • UMTS universal mobile telecommunications system
  • WiMAX worldwide interoperability for microwave access
  • the terminal device may be referred to as a terminal, a mobile station (MS), a mobile terminal, and the like.
  • the user equipment may communicate with one or more core networks by using a radio access network (RAN).
  • RAN radio access network
  • the terminal device may be a mobile phone (or referred to as a “cellular” phone), or a computer with a mobile terminal.
  • the terminal device may also be a portable, pocket-sized, handheld, computer built-in, or in-vehicle mobile apparatus, which exchanges voice and/or data with the radio access network.
  • FIG. 2A is a schematic flowchart of a network switching method according to an embodiment of the present disclosure, where the method includes:
  • the terminal device detects in real time all wireless communications networks that cover the terminal device, and selects one of the all wireless communications networks as a target network according to a certain rule, the network allowed to be accessed refers to the all wireless communications networks. If the terminal device moves from a place A to a place B, and a network that covers the place A cannot cover the place B, the terminal device needs to select, based on a certain rule, one of all wireless communications networks that cover the place B as the target network to be switched to.
  • network switching may occur when the terminal device moves from one wireless communications network to another wireless communications network, or may occur when the terminal device is covered by multiple wireless communications networks, and performance of a wireless communications network in which the terminal device is currently located is poorer than performance of another wireless communications network that covers the terminal device.
  • the terminal device determines, according to a certain rule by detecting network resource parameters of the WiFi and the UMTS, one of the WiFi and the UMTS as the target network.
  • the network resource parameter may be set by a user that uses the terminal device, or may be set by default by an operating system of the terminal device.
  • the network resource parameter may include but is not limited to an Internet Protocol (IP) address, a network type, network bandwidth, network quality, and a charge status that are of the target network, or may only be one or more of the IP address, the network type, the network bandwidth, the network quality, and the charge status that are of the target network.
  • IP Internet Protocol
  • the acquiring a network resource parameter of a network allowed to be accessed may be self-detecting and acquiring, by the terminal device, the network resource parameter of the network allowed to be accessed, or may be receiving, by the terminal device, the network resource parameter that is of the network allowed to be accessed and is sent by a network management device (or a network server), or receiving, by the terminal device, the network resource parameter that is of the network allowed to be accessed and is sent by a terminal device of a communication peer.
  • S 203 Determine, from the network allowed to be accessed and according to the network resource parameter of the network allowed to be accessed, a target network to be switched to and a network resource parameter of the target network, where the network resource parameter of the target network is used to determine and set a running parameter of an application program that is to be run in the target network.
  • a network with largest bandwidth may be determined, from the network allowed to be accessed and according to the bandwidth of the network allowed to be accessed, as the target network to be switched to
  • the network resource parameter includes a network charge rate
  • a network with a lowest charge may be determined, from the network allowed to be accessed and according to the network charge rate of the network allowed to be accessed, as the target network to be switched to
  • the network resource parameter includes network stability
  • a network with highest stability may be determined, from the network allowed to be accessed and according to the network stability of the network allowed to be accessed, as the target network to be switched to.
  • the network resource parameter that may be based on includes but is not limited to the foregoing bandwidth, network charge rate, or network stability, and may further include a network type, and the like, which is not limited in the present disclosure. All network resource parameters that can be used to determine the target network from the network allowed to be accessed fall within the protection scope of the present disclosure and are not listed one by one herein again.
  • S 205 Switch from a current network to the target network, and run the application program in the target network.
  • the application program may be run in a manner that adapts to the network resource parameter of the target network, or at a same time when network switching occurs, the application program is run in a manner that adapts to the network resource parameter of the target network, that is, the application program changes a running manner of the application program at a same time when network switching occurs, so as to adapt to a network status of the target network, or after network switching occurs, actually after accessing the target network, the application program is run in a manner that adapts to the network resource parameter of the target network.
  • FIG. 2B refers to a schematic flowchart of a network switching method shown in FIG. 2B , which further includes:
  • S 214 Determine and set, according to the network resource parameter of the target network, the running parameter of the application program that is to be run in the target network.
  • a common embodiment of the application program refers to an application program that is run on the terminal device and needs to use network communications, such as a video viewing application including Youku, Sohu, IQIYI, and the like, a video communications application including QQ, MSN, and the like, a voice call application including QQ, WeChat, and the like.
  • the application program may be all application programs that are run on the terminal device and need to use network communications, or may be some application programs that are run on the terminal device and need to use network communications. It is worth noting that the some application programs that are run on the terminal device and need to use network communications may be specified by the user that uses the terminal device, or may be set by default by the operating system of the terminal device.
  • the reason to determine the running parameter of the application program that is run in the target network is that the running parameter of the application program that is run on the terminal device varies with a network status that the application program is in. For example, if bandwidth of a current network in which a Youku video player is located becomes relatively small compared with that at a last moment, and the Youku video player no longer supports high definition video playback, the application changes from high definition playback to standard definition playback.
  • the determining and setting, according to the network resource parameter of the target network, the running parameter of the application program that is to be run in the target network includes the following cases. If network quality of the target network is deteriorated, bandwidth of the target network is reduced, or a charge of the target network is increased compared with those of the current network in which the terminal device is located, resolution or a heartbeat period of the application program that is run in the target network is lower than resolution or a heartbeat period of the application program that is run in the current network, and accordingly, if the network quality of the target network is improved, the bandwidth of the target network becomes large, or the charge of the target network is reduced compared with those of the current network in which the terminal device is located, the resolution or the heartbeat period of the application program that is run in the target network is higher than the resolution or the heartbeat period of the application program that is run in the current network.
  • the network resource parameter includes but is not limited to the foregoing network quality, bandwidth, or network charge rate, and may further include a network type, network stability, and the like, which is not limited in the present disclosure. All network resource parameters that may implement the network switching method in this embodiment of the present disclosure fall within the protection scope of the present disclosure and are not listed one by one herein again.
  • the network switching method described in this embodiment of the present disclosure further includes, generating visual prompt information and outputting the prompt information to a user interface of the terminal device.
  • the network switching method shown in FIG. 2B further includes steps S 211 , S 213 , and S 215 , which are respectively corresponding to the steps S 201 , S 203 , and S 205 in FIG. 2A , and therefore, for specific content of the steps S 211 , S 213 , and S 215 , reference may be made to the foregoing embodiment, and details are not described herein again.
  • FIG. 2B further includes, S 218 : Establish a network connection between the application program and a network server in the target network.
  • the application program is switched to the target network, if the IP address of the target network is different from an IP address of the current network, the network connection between the application program and the network server in the target network needs to be further re-established within a certain time period.
  • a target network to be switched to and a network resource parameter of the target network have been determined before network switching occurs, so that an application program determines and sets, according to the network resource parameter of the target network, a running parameter that is run in the target network.
  • This solution can be used to directly determine, according to the network resource parameter of the target network, the running parameter that is of the application program and adapts to the target network, so as to enable the application program to implement seamless network switching to some extent.
  • the running parameter of the application program that is run in the target network is determined and set according to the network resource parameter of the target network, the running parameter when the application program is run in the target network has been determined and set before a network is switched to the target network, and therefore after network switching occurs, the application program can be run by directly using the running parameter of the application program, so that the application program can smoothly transit from a current network to the target network, implementing seamless network switching.
  • FIG. 3 is a terminal device 30 according to an embodiment of the present disclosure, where the terminal device 30 may be applied to the application environment shown in FIG. 1 , and further, the terminal device 30 includes:
  • An acquiring unit 31 is configured to acquire a network resource parameter of a network allowed to be accessed.
  • the acquiring unit 31 is further configured to self-detect the network resource parameter of the network allowed to be accessed, or receive the network resource parameter that is of the network allowed to be accessed and is sent by a network management device, or receive the network resource parameter that is of the network allowed to be accessed and is sent by a terminal device of a communication peer.
  • the network resource parameter may be set by a user that uses the terminal device, or may be set by default by an operating system of the terminal device.
  • the network resource parameter may include but is not limited to an IP address, a network type, network bandwidth, network quality, and a charge status that are of a target network, or may only be one or more of the IP address, the network type, the network bandwidth, the network quality, and the charge status that are of the target network.
  • the terminal device detects in real time all wireless communications networks that cover the terminal device, and selects one of the all wireless communications networks as the target network according to a certain rule, the network allowed to be accessed refers to the all wireless communications networks. If the terminal device moves from a place A to a place B, and a network that covers the place A cannot cover the place B, the terminal device needs to select, based on a certain rule, one of all wireless communications networks that cover the place B as the target network to be switched to.
  • a determining unit 32 is configured to determine, from the network allowed to be accessed and according to the network resource parameter of the network allowed to be accessed, a target network to be switched to and a network resource parameter of the target network, where the network resource parameter of the target network is used to determine and set a running parameter of an application program that is to be run in the target network.
  • the determining unit 32 may determine, from the network allowed to be accessed and according to the bandwidth of the network allowed to be accessed, a network with largest bandwidth as the target network to be switched to.
  • the network resource parameter includes a network charge rate
  • the determining unit 32 may determine, from the network allowed to be accessed and according to the network charge rate of the network allowed to be accessed, a network with a lowest charge as the target network to be switched to, or when the network resource parameter includes network stability, the determining unit 32 may determine, from the network allowed to be accessed and according to the network stability of the network allowed to be accessed, a network with highest stability as the target network to be switched to.
  • the network resource parameter that may be based on includes but is not limited to the foregoing bandwidth, network charge rate, or network stability, and may further include a network type, and the like, which is not limited in the present disclosure. All network resource parameters that are of the target network and can be determined from the network allowed to be accessed fall within the protection scope of the present disclosure and are not listed one by one herein again.
  • a switching unit 36 is configured to switch from a current network to the target network.
  • a running unit 38 is configured to run the application program in the target network.
  • the application program may be run in a manner that adapts to the network resource parameter of the target network, or at a same time when network switching occurs, the application program is run in a manner that adapts to the network resource parameter of the target network, that is, the application program changes a running manner of the application program at a same time when network switching occurs, so as to adapt to a network status of the target network, or after network switching occurs, actually after accessing the target network, the application program is run in a manner that adapts to the network resource parameter of the target network.
  • the determining unit 32 is further configured to determine and set, according to the network resource parameter of the target network, the running parameter of the application program that is to be run in the target network.
  • the network resource parameter includes network quality, bandwidth, or a network charge status
  • the determining unit 32 is further configured to determine, according to the network quality of the target network, the running parameter of the application program that is run in the target network, or determine, according to the bandwidth of the target network, the running parameter of the application program that is run in the target network, or determine, according to the network charge status of the target network, the running parameter of the application program that is run in the target network.
  • the network resource parameter includes but is not limited to the foregoing network quality, bandwidth, or network charge rate, and may further include a network type, network stability, and the like, which is not limited in the present disclosure. All network resource parameters that can implement the network switching method in this embodiment of the present disclosure fall within the protection scope of the present disclosure and are not listed one by one herein again.
  • the terminal device 30 further includes a connecting unit 39 configured to, after entering the target network, establish a network connection between the application program and a network server.
  • the connecting unit 39 is configured to re-establish the network connection between the application program and the network server within a certain time period.
  • the foregoing units may be implemented as an independent entity, or may be implemented as one or several entities by any combination.
  • the terminal device before network switching occurs, the terminal device has determined a target network to be switched to and a network resource parameter of the target network, so as to determine and set, according to the network resource parameter of the target network, a running parameter of an application program that is on the terminal device and is run in the target network.
  • This solution can be used to directly determine, according to the network resource parameter of the target network, the running parameter that is of the application program and adapts to the target network, so as to enable the application program to implement seamless network switching to some extent.
  • the running parameter of the application program that is run in the target network is determined and set according to the network resource parameter of the target network, after network switching occurs, the application program may be run by directly using the running parameter of the application program, so that the application program can be relatively smoothly transited from a current network to the target network, implementing seamless network switching.
  • FIG. 4 is a schematic structural diagram of another terminal device according to an embodiment of the present disclosure, where the terminal device may be similarly applied to the application environment shown in FIG. 1 .
  • the terminal device may include at least one processor 401 such as a central processing unit (CPU), at least one network interface 404 such as a physical network interface controller (NIC) or another user interface 403 , a memory 405 , and at least one communications bus 402 .
  • processor 401 such as a central processing unit (CPU)
  • network interface 404 such as a physical network interface controller (NIC) or another user interface 403
  • NIC physical network interface controller
  • the communications bus 402 is configured to implement connection and communication between these components.
  • the network interface 404 is configured to implement connection and communication between the physical host and a network.
  • the network interface 404 may be configured to be connected to a device such as a physical NIC and/or a physical switch.
  • the user interface 403 may include a monitor, a keypad, or another click device such as a mouse cursor, a trackball, a touchpad, or a touchscreen.
  • the memory 405 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one magnetic disk memory.
  • the memory 405 may further include at least one storage apparatus far from the foregoing processor 401 .
  • the memory 405 stores the following elements: an executable module or a data structure, or a subset of the executable module or the data structure, or an extension set of the executable module or the data structure, an operating system 4051 , which includes various system programs and is configured to implement various basic services and process a hardware-based task, and an application module 4052 , which includes various application programs and is configured to implement various application services.
  • the application module 4052 includes but not limited to an acquiring unit, a determining unit, a switching unit, a running unit, and the like.
  • the processor 401 is configured to acquire a network resource parameter of a network allowed to be accessed; determine, from the network allowed to be accessed and according to the network resource parameter of the network allowed to be accessed, a target network to be switched to and a network resource parameter of the target network, where the network resource parameter of the target network is used to determine and set a running parameter of an application program that is to be run in the target network, and switch from a current network to the target network, and run the application program in the target network.
  • the processor 401 is further configured to determine and set, according to the network resource parameter of the target network, the running parameter of the application program that is to be run in the target network.
  • the running parameter of the application program includes resolution
  • the processor 401 is further configured to determine and set, according to the network resource parameter of the target network, the resolution of the application program that is to be run in the target network, where the application program includes a video type application that uses network communications, or the running parameter of the application program includes a heartbeat period
  • the processor 401 is further configured to determine and set, according to the network resource parameter of the target network, the heartbeat period of the application program that is to be run in the target network.
  • the network resource parameter includes network quality, bandwidth, or a network charge status
  • the processor 401 is further configured to determine and set, according to the network quality of the target network, the running parameter of the application program that is to be run in the target network, or determine and set, according to the bandwidth of the target network, the running parameter of the application program that is to be run in the target network, or determine and set, according to the network charge status of the target network, the running parameter of the application program that is to be run in the target network.
  • the processor 401 is further configured to establish a network connection between the application program and a network server in the target network.
  • the processor 401 is further configured to self-detect and acquire the network resource parameter of the network that can be accessed, or receive the network resource parameter that is of the network that can be accessed and is sent by a network management device, or receive the network resource parameter that is of the network that can be accessed and is sent by a terminal device of a communication peer.
  • the processor 401 is further configured to determine, from the network allowed to be accessed and according to the bandwidth of the network allowed to be accessed, a network with largest bandwidth as the target network to be switched to, or determine, from the network allowed to be accessed and according to the network charge rate of the network allowed to be accessed, a network with a lowest charge as the target network to be switched to; or determine, from the network allowed to be accessed and according to the network stability of the network allowed to be accessed, a network with highest stability as the target network to be switched to.
  • the terminal device provided in this embodiment of the present disclosure has determined a target network to be switched to and a network resource parameter of the target network, so as to determine and set, according to the network resource parameter of the target network, a running parameter of an application program that is on the terminal device and is run in the target network.
  • This solution can be used to directly determine, according to the network resource parameter of the target network, the running parameter that is of the application program and adapts to the target network, so as to enable the application program to implement seamless network switching to some extent.
  • the running parameter of the application program that is run in the target network is determined and set according to the network resource parameter of the target network, after network switching occurs, the application program may be run by directly using the running parameter of the application program, so that the application program is relatively smoothly transited from a current network to the target network, implementing relatively seamless network switching.
  • FIG. 5 is a schematic flowchart of a switching notifying method according to an embodiment of the present disclosure.
  • the switching notifying method provided in this embodiment of the present disclosure may be similarly applied to the application scenario shown in FIG. 1 .
  • the switching notifying method provided in this embodiment of the present disclosure may also be similarly applied to a computer network system and various communications systems.
  • the computer system may be located in one physical host, or may be distributed and located in multiple physical hosts.
  • the computer system may be located in one or more terminals whose types include a computer, a portable computer, a handheld device (such as a mobile phone and a PAD), a server, and the like.
  • the various communications systems are, for example, a GSM system, a CDMA system, a WCDMA system, a GPRS, a LTE system, a LTE FDD system, a LTE TDD system, a UMTS, and a WiMAX communications system.
  • the terminal device may be referred to as a terminal, a mobile station, a mobile terminal, and the like.
  • the user equipment may communicate with one or more core networks by using a RAN.
  • the terminal device may be a mobile phone (or referred to as a “cellular” phone), or a computer with a mobile terminal.
  • the terminal device may also be a portable, pocket-sized, handheld, computer built-in, or in-vehicle mobile apparatus, which exchanges voice and/or data with the RAN.
  • FIG. 5 is a schematic flowchart of a pre-switching notifying method according to an embodiment of the present disclosure, where the method includes:
  • the terminal device detects in real time all wireless communications networks that cover the terminal device, and selects one of the all wireless communications networks as a target network according to a certain rule, the network allowed to be accessed refers to the all wireless communications networks. If the terminal device moves from a place A to a place B, and a network that covers the place A cannot cover the place B, the terminal device needs to select, based on a certain rule, one of all wireless communications networks that cover the place B as the target network to be switched to.
  • network switching may occur when the terminal device moves from one wireless communications network to another wireless communications network, or may occur when the terminal device is covered by multiple wireless communications networks, and performance of a wireless communications network in which the terminal device is currently located is poorer than performance of another wireless communications network that covers the terminal device.
  • the terminal device determines, according to a certain rule by detecting network resource parameters of the WiFi and the UMTS, one of the WiFi and the UMTS as the target network.
  • the network resource parameter may be set by a user that uses the terminal device, or may be set by default by an operating system of the terminal device.
  • the network resource parameter may include but is not limited to an IP address, a network type, network bandwidth, network quality, and a charge status that are of the target network, or may only be one or more of the IP address, the network type, the network bandwidth, the network quality, and the charge status that are of the target network.
  • the acquiring a network resource parameter of a network allowed to be accessed may be self-detecting and acquiring, by the terminal device, the network resource parameter of the network allowed to be accessed, or may be receiving, by the terminal device, the network resource parameter that is of the network allowed to be accessed and is sent by a network management device (or a network server), or receiving, by the terminal device, the network resource parameter that is of the network allowed to be accessed and is sent by a terminal device of a communication peer.
  • S 503 Determine, from the network allowed to be accessed and according to the network resource parameter of the network allowed to be accessed, a target network to be switched to.
  • a network with largest bandwidth may be determined, from the network allowed to be accessed and according to the bandwidth of the network allowed to be accessed, as the target network to be switched to.
  • the network resource parameter includes a network charge rate
  • a network with a lowest charge may be determined, from the network allowed to be accessed and according to the network charge rate of the network allowed to be accessed, as the target network to be switched to, or when the network resource parameter includes network stability, a network with highest stability may be determined, from the network allowed to be accessed and according to the network stability of the network allowed to be accessed, as the target network to be switched to.
  • the network resource parameter that may be based on includes but is not limited to the foregoing bandwidth, network charge rate, or network stability, and may further include a network type, and the like, which is not limited in the present disclosure. All network resource parameters that are of the target network and can be determined from the network allowed to be accessed fall within the protection scope of the present disclosure and are not listed one by one herein again.
  • S 504 Send a network resource parameter of the target network to a specified terminal device, so that the specified terminal device determines, according to the network resource parameter, a running parameter of an application program that is run on the specified terminal device.
  • the specified terminal device refers to a terminal device that can be communicated with and connected to, and may be all terminal devices that can be communicated with and connected to, or may be some terminal devices that can be communicated with and connected to, and the specified terminal device may be set by default by the system, or may be manually set by the user.
  • the application program refers to an application program that is run on the terminal device and needs to use network communications, such as a video viewing application including Youku, Sohu, IQIYI, and the like, a video communications application including QQ, MSN, and the like, a voice call application including QQ, WeChat, and the like.
  • the application program may be all application programs that are run on the terminal device and need to use network communications, or may be some application programs that are run on the terminal device and need to use network communications. It is worth noting that the some application programs that are run on the terminal device and need to use network communications may be specified by the user that uses the terminal device, or may be set by default by the operating system of the terminal device.
  • the determining, according to the network resource parameter, the running parameter of the application program that is run on the terminal device includes the following cases: If network quality of the target network is deteriorated, the bandwidth of the target network is reduced, or a charge of the target network is increased compared with those of a current network in which the terminal device is located, the specified terminal device may communicate with the terminal device by selecting a communications mode in which a small amount of traffic is consumed, and accordingly, if the network quality of the target network is improved, the bandwidth of the target network becomes large, or the charge of the target network is reduced compared with those of the current network in which the terminal device is located, the specified terminal device may communicate with the terminal device by selecting a communications mode of a high definition video.
  • the specified terminal device may communicate with the terminal device by selecting an instant messaging mode such as QQ or SKYPE, and accordingly, if the terminal device is switched from an IP network (such as a WiFi network) to a non-IP network (such as a GSM network), the specified terminal device may communicate with the terminal device by selecting an short message service (SMS) message and the like.
  • SMS short message service
  • the network resource parameter includes but is not limited to the foregoing network quality, bandwidth, or network charge rate, and may further include a network type, network stability, and the like, which is not limited in the present disclosure. All network resource parameters that can implement the network switching method in this embodiment of the present disclosure fall within the protection scope of the present disclosure and are not listed one by one herein again.
  • a terminal device before network switching actually occurs, a terminal device sends a network resource parameter of a target network to a terminal device, so that the terminal device communicates with the terminal device by selecting a communications mode that adapts to a network status of the target network. Therefore, communication between the terminal device and the terminal device is not affected when network switching occurs in the terminal device.
  • the pre-switching notifying method provided in this embodiment of the present disclosure can implement that communication between terminal devices is not affected by network switching, or implement seamless network switching in communication between terminal devices.
  • FIG. 6 is a schematic structural diagram of a terminal device 60 according to an embodiment of the present disclosure, where the terminal device may also be applied to the schematic diagram of the application scenario shown in FIG. 1 . Furthermore, the terminal device 60 includes:
  • An acquiring unit 61 is configured to acquire a network resource parameter of a network allowed to be accessed.
  • the acquiring unit 61 is further configured to self-detect the network resource parameter of the network allowed to be accessed, or receive the network resource parameter that is of the network allowed to be accessed and is sent by a network management device or receive the network resource parameter that is of the network allowed to be accessed and is sent by a terminal device of a communication peer.
  • the network resource parameter may be set by a user that uses the terminal device, or may be set by default by an operating system of the terminal device.
  • the network resource parameter may include but is not limited to an IP address, a network type, network bandwidth, network quality, and a charge status that are of a target network, or may only be one or more of the IP address, the network type, the network bandwidth, the network quality, and the charge status that are of the target network.
  • the terminal device detects in real time all wireless communications networks that cover the terminal device, and selects one of the all wireless communications networks as the target network according to a certain rule, the network allowed to be accessed refers to the all wireless communications networks. If the terminal device moves from a place A to a place B, and a network that covers the place A cannot cover the place B, the terminal device needs to select, based on a certain rule, one of all wireless communications networks that cover the place B as the target network to be switched to.
  • a determining unit 62 is configured to determine, from the network allowed to be accessed and according to the network resource parameter of the network allowed to be accessed, a target network to be switched to.
  • the determining unit 62 may determine, from the network allowed to be accessed and according to the bandwidth of the network allowed to be accessed, a network with largest bandwidth as the target network to be switched to.
  • the determining unit 62 may determine, from the network allowed to be accessed and according to the network charge rate of the network allowed to be accessed, a network with a lowest charge as the target network to be switched to, or when the network resource parameter includes network stability, the determining unit 62 may determine, from the network allowed to be accessed and according to the network stability of the network allowed to be accessed, a network with highest stability as the target network to be switched to.
  • the determining unit 62 determines the target network from the network allowed to be accessed and according to the network resource parameter of the network allowed to be accessed
  • the network resource parameter that may be based on includes but is not limited to the foregoing bandwidth, network charge rate, or network stability, and may further include a network type, and the like, which is not limited in the present disclosure. All network resource parameters that are of the target network and can be determined from the network allowed to be accessed fall within the protection scope of the present disclosure and are not listed one by one herein again.
  • a sending unit 64 is configured to send a network resource parameter of the target network to a specified terminal device, so that the specified terminal device determines, according to the network resource parameter, a running parameter of an application program that is run on the specified terminal device.
  • the specified terminal device refers to a terminal device that can establish a communication connection, and may be all terminal devices that can establish a communication connection, or may be some terminal devices that can establish a communication connection; and the specified terminal device may be set by default by the system, or may be manually set by the user.
  • the application program refers to an application program that is run on the specified terminal device and needs to use network communications.
  • the application program may be all application programs that are run on the specified terminal device and need to use network communications, or may be some application programs that are run on the specified terminal device and need to use network communications. It is worth noting that the some application programs that are run on the specified terminal device and need to use network communications may be specified by the user that uses the specified terminal device, or may be set by default by the operating system of the specified terminal device.
  • a switching unit 67 is configured to switch from a current network to the target network.
  • the foregoing units may be implemented as an independent entity, or may be implemented as one or several entities by any combination.
  • the terminal device before network switching actually occurs, the terminal device sends a network resource parameter of a target network to a specified terminal device, so that the specified terminal device communicates with the terminal device by selecting a communications mode that adapts to a network status of the target network. Therefore, communication between the terminal device and the specified terminal device is not affected when network switching occurs in the terminal device, that is, it is ensured that the terminal device can keep communication with the specified terminal device when the terminal device performs network switching.
  • FIG. 7 is a schematic structural diagram of another terminal device according to an embodiment of the present disclosure.
  • the terminal device may also be applied to the schematic diagram of the application scenario shown in the FIG. 1 .
  • the terminal device may include at least one processor 701 such as a CPU, at least one network interface 704 such as a physical NIC or another user interface 703 , a memory 705 , and at least one communications bus 702 .
  • the communications bus 702 is configured to implement connection and communication between the components.
  • the network interface 704 is configured to implement connection and communication between the physical host and a network.
  • the network interface 704 may be configured to be connected to a device such as a physical NIC and/or a physical switch.
  • the user interface 703 may include a monitor, a keypad, or another click device such as a mouse cursor, a trackball, a touchpad, or a touchscreen.
  • the memory 705 may include a high-speed RAM, and may also include non-volatile memory, such as at least one magnetic disk memory.
  • the memory 705 may further include at least one storage apparatus far from the foregoing processor 701 .
  • the memory 705 stores the following elements: an executable module or a data structure, or a subset of the executable module or the data structure, or an extension set of the executable module or the data structure, an operating system 7051 , which includes various system programs and is configured to implement various basic services and process a hardware-based task, and an application module 7052 , which includes various application programs and is configured to implement various application services.
  • the application module 7052 includes but is not limited to a determining unit, a sending unit, a switching unit, and the like.
  • the processor 701 is configured to acquire a network resource parameter of a network allowed to be accessed, determine, from the network allowed to be accessed and according to the network resource parameter of the network allowed to be accessed, a target network to be switched to send a network resource parameter of the target network to a specified terminal device, so that the specified terminal device determines, according to the network resource parameter, a running parameter of an application program that is run on the specified terminal device, and switch from the current network to the target network.
  • the processor 701 is further configured to self-detect the network resource parameter of the network that can be accessed, or receive the network resource parameter that is of the network that can be accessed and is sent by a network management device.
  • the network resource parameter includes bandwidth, a network charge rate, or network stability.
  • the processor 701 is further configured to determine, from the network allowed to be accessed and according to the bandwidth of the network allowed to be accessed, a network with largest bandwidth as the target network to be switched to.
  • the processor 701 is further configured to determine, from the network allowed to be accessed and according to the network charge rate of the network allowed to be accessed, a network with a lowest charge as the target network to be switched to.
  • the processor 701 is further configured to determine, from the network allowed to be accessed and according to the network stability of the network allowed to be accessed, a network with highest stability as the target network to be switched to.
  • the terminal device before network switching actually occurs, the terminal device sends a network resource parameter of a target network to a specified terminal device, so that the specified terminal device communicates with the terminal device by selecting a communications mode that adapts to a network status of the target network. Therefore, communication between the terminal device and the specified terminal device is not affected when network switching occurs in the terminal device, that is, it is ensured that the terminal device can keep communication with the specified terminal device when the terminal device performs network switching.
  • the described apparatus embodiment is merely exemplary.
  • 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 position, or may be distributed on a plurality of network units.
  • Some or all of the modules may be selected according to actual requirements to achieve the objectives of the solutions of the embodiments.
  • connection relationships between modules indicate that the modules have communication connections with each other, which may be further implemented as one or more communications buses or signal cables.
  • the plotting apparatus may be implemented by software in addition to necessary universal hardware, or by dedicated hardware, including a dedicated integrated circuit, a dedicated central processing unit (CPU), a dedicated memory, a dedicated component, and the like.
  • dedicated hardware including a dedicated integrated circuit, a dedicated central processing unit (CPU), a dedicated memory, a dedicated component, and the like.
  • CPU central processing unit
  • any functions that can be performed by a computer program can be easily implemented by using corresponding hardware.
  • a specific hardware structure used to achieve a same function may be of various forms, for example, in a form of an analog circuit, a digital circuit, a dedicated circuit, or the like.

Abstract

A network switching method and a terminal device, which relate to the field of communications technologies, includes acquiring a network resource parameter of a network allowed to be accessed, and determining, from the network allowed to be accessed and according to the network resource parameter of the network allowed to be accessed, a target network to be switched to and a network resource parameter of the target network, where the network resource parameter of the target network is used to determine and set a running parameter of an application program that is to be run in the target network, and switching from a current network to the target network, and running the application program in the target network. The solutions can be used to enable the application program to implement, to some extent, seamless network switching.

Description

    CROSS-REFERENCE TO RELATED APPLICATIONS
  • This application is a continuation of International Application No. PCT/CN2014/093453, filed on Dec. 10, 2014, which claims priority to Chinese Patent Application No. 201310671763.4, filed on Dec. 10, 2013, both of which are hereby incorporated by reference in their entireties.
  • TECHNICAL FIELD
  • The present disclosure relates to the field of wireless communications technologies, and in particular, to a network switching method and a terminal device.
  • BACKGROUND
  • At present, a wireless mobile communications network in which multiple radio access technologies and standards are complementary provides a ubiquitous information communications service for a user, and a user terminal can be freely switched between multiple different wireless mobile communications networks. In a wireless communications system, when moving from a current network in which the user terminal is located to a target network, the user terminal needs to perform network switching, where the target network refers to a next communications network to which the user terminal moves. In the prior art, after network switching occurs, an application program that is run on the user terminal and needs to perform network communication is run according to a network status of the target network by using a parameter that adapts to the network status. This switching manner usually causes that the application program that is run on the user terminal and needs to perform network communication is not smoothly switched.
  • SUMMARY
  • Embodiments of the present disclosure provide a network switching method and a terminal device, which are used to enable an application program that is run on the terminal device to implement, to some extent, seamless network switching.
  • According to a first aspect, an embodiment of the present disclosure provides a network switching method, where the method includes, before network switching is performed, acquiring a network resource parameter of a network allowed to be accessed, determining, from the network allowed to be accessed and according to the network resource parameter of the network allowed to be accessed, a target network to be switched to and a network resource parameter of the target network, where the network resource parameter of the target network is used to determine and set a running parameter of an application program that is to be run in the target network, and switching from a current network to the target network, and starting or continuing running the application program in the target network.
  • With reference to the first aspect, in a first implementation manner, before the switching from a current network to the target network, the method further includes, determining and setting, according to the network resource parameter of the target network, the running parameter of the application program that is to be run in the target network, and running the application program, and after switching from the current network to the target network, continuing running the application program in the target network.
  • With reference to the first aspect or a first implementation manner of the first aspect, in a second implementation manner, the running parameter of the application program includes resolution, and the determining and setting, according to the network resource parameter of the target network, the running parameter of the application program that is to be run in the target network includes, determining and setting, according to the network resource parameter of the target network, the resolution of the application program that is to be run in the target network, where the application program includes a video type application that uses network communications.
  • With reference to the first aspect or a first implementation manner of the first aspect, in a third implementation manner, the running parameter of the application program includes a heartbeat period, and the determining and setting, according to the network resource parameter of the target network, the running parameter of the application program that is to be run in the target network includes, determining and setting, according to the network resource parameter of the target network, the heartbeat period of the application program that is to be run in the target network.
  • With reference to the first aspect or a first implementation manner of the first aspect, in a fourth implementation manner, the network resource parameter includes network quality, bandwidth, or a network charge rate, and the determining and setting, according to the network resource parameter of the target network, the running parameter of the application program that is to be run in the target network includes, determining and setting, according to the network quality of the target network, the running parameter of the application program that is to be run in the target network, or determining and setting, according to the bandwidth of the target network, the running parameter of the application program that is to be run in the target network, or determining and setting, according to the network charge rate of the target network, the running parameter of the application program that is to be run in the target network.
  • With reference to the first aspect, the first implementation manner of the first aspect, the second implementation manner of the first aspect, the third implementation manner of the first aspect, or the fourth implementation manner of the first aspect, in a fifth implementation manner, the method further includes, establishing a network connection between the application program and a network server in the target network.
  • With reference to the first aspect, the first implementation manner of the first aspect, the second implementation manner of the first aspect, the third implementation manner of the first aspect, the fourth implementation manner of the first aspect, or the fifth implementation manner of the first aspect, in a sixth implementation manner, the acquiring a network resource parameter of a network allowed to be accessed includes, self-detecting and acquiring the network resource parameter of the network allowed to be accessed; or receiving the network resource parameter that is of the network allowed to be accessed and is sent by a network management device, or receiving the network resource parameter that is of the network allowed to be accessed and is sent by a terminal device of a communication peer.
  • With reference to the first aspect, the first implementation manner of the first aspect, the second implementation manner of the first aspect, the third implementation manner of the first aspect, the fourth implementation manner of the first aspect, the fifth implementation manner of the first aspect, or the sixth implementation manner of the first aspect, in a seventh implementation manner, the determining, from the network allowed to be accessed and according to the network resource parameter of the network allowed to be accessed, a target network to be switched to includes, the network resource parameter includes bandwidth, a network charge rate, or network stability, determining, from the network allowed to be accessed and according to the bandwidth of the network allowed to be accessed, a network with largest bandwidth as the target network to be switched to; or determining, from the network allowed to be accessed and according to the network charge rate of the network allowed to be accessed, a network with a lowest charge as the target network to be switched to, or determining, from the network allowed to be accessed and according to the network stability of the network allowed to be accessed, a network with highest stability as the target network to be switched to.
  • According to a second aspect, an embodiment of the present disclosure provides a switching notifying method, where the method includes, before network switching, acquiring a network resource parameter of a network allowed to be accessed; determining, from the network allowed to be accessed and according to the network resource parameter of the network allowed to be accessed, a target network to be switched to, sending a network resource parameter of the target network to a specified terminal device, so that the specified terminal device determines, according to the network resource parameter, a running parameter of an application program that is run on the terminal device, and switching from current network to the target network.
  • With reference to the second aspect, in a first implementation manner, the acquiring a network resource parameter of a network allowed to be accessed includes, self-detecting and acquiring the network resource parameter of the network allowed to be accessed, or receiving the network resource parameter that is of the network allowed to be accessed and is sent by a network management device.
  • With reference to the second aspect or the first implementation manner of the second aspect, in a second implementation manner, the determining, from the network allowed to be accessed and according to the network resource parameter of the network allowed to be accessed, a target network to be switched to includes, the network resource parameter includes bandwidth, a network charge rate, or network stability, determining, from the network allowed to be accessed and according to the bandwidth of the network allowed to be accessed, a network with largest bandwidth as the target network to be switched to, or determining, from the network allowed to be accessed and according to the network charge rate of the network allowed to be accessed, a network with a lowest charge as the target network to be switched to, or determining, from the network allowed to be accessed and according to the network stability of the network allowed to be accessed, a network with highest stability as the target network to be switched to.
  • According to a third aspect, an embodiment of the present disclosure further provides a terminal device, where the terminal device includes an acquiring unit configured to, before network switching is performed, acquire a network resource parameter of a network allowed to be accessed, a determining unit configured to determine, from the network allowed to be accessed and according to the network resource parameter of the network allowed to be accessed, a target network to be switched to and a network resource parameter of the target network, where the network resource parameter of the target network is used to determine and set a running parameter of an application program that is to be run in the target network, and a switching unit configured to switch from a current network to the target network, and a running unit configured to start or continue running the application program in the target network.
  • With reference to the third aspect, in a first implementation manner, before switching from the current network to the target network, the determining unit is further configured to determine and set, according to the network resource parameter of the target network, the running parameter of the application program that is to be run in the target network and the running unit is further configured to run the application program, and after switching from the current network to the target network, the running unit is further configured to continue running the application program in the target network.
  • With reference to the third aspect or the first implementation manner of the third aspect, in a second implementation manner, the running parameter of the application program includes resolution, and the determining unit is further configured to determine and set, according to the network resource parameter of the target network, the resolution of the application program that is to be run in the target network, where the application program includes a video type application that uses network communications.
  • With reference to the third aspect or the first implementation manner of the third aspect, in a third implementation manner, the running parameter of the application program includes a heartbeat period, and the determining unit is further configured to determine and set, according to the network resource parameter of the target network, the heartbeat period of the application program that is to be run in the target network.
  • With reference to the third aspect or the first implementation manner of the third aspect, in a fourth implementation manner, the network resource parameter includes network quality, bandwidth, or a network charge rate, and the determining unit is further configured to determine and set, according to the network quality of the target network, the running parameter of the application program that is to be run in the target network, or the determining unit is further configured to determine and set, according to the bandwidth of the target network, the running parameter of the application program that is to be run in the target network, or the determining unit is further configured to determine and set, according to the network charge rate of the target network, the running parameter of the application program that is to be run in the target network.
  • With reference to the third aspect, the first implementation manner of the third aspect, the second implementation manner of the third aspect, the third implementation manner of the third aspect, or the fourth implementation manner of the third aspect, in a fifth implementation manner, the terminal device further includes a connecting unit, where the connecting unit is configured to establish a network connection between the application program and a network server in the target network.
  • With reference to the third aspect, the first implementation manner of the third aspect, the second implementation manner of the third aspect, the third implementation manner of the third aspect, the fourth implementation manner of the third aspect, or the fifth implementation manner of the third aspect, in a sixth implementation manner, the acquiring unit is further configured to self-detect and acquire the network resource parameter of the network allowed to be accessed, or the acquiring unit is further configured to receive the network resource parameter that is of the network allowed to be accessed and is sent by a network management device; or the acquiring unit is further configured to receive the network resource parameter that is of the network allowed to be accessed and is sent by a terminal device.
  • With reference to the third aspect, the first implementation manner of the third aspect, the second implementation manner of the third aspect, the third implementation manner of the third aspect, the fourth implementation manner of the third aspect, or the fifth implementation manner of the third aspect, or the sixth implementation manner of the third aspect, in a seventh implementation manner, the network resource parameter includes bandwidth, a network charge rate, or network stability, and the determining unit is further configured to determine, from the network allowed to be accessed and according to the bandwidth of the network allowed to be accessed, a network with largest bandwidth as the target network to be switched to, or the determining unit is further configured to determine, from the network allowed to be accessed and according to the network charge rate of the network allowed to be accessed, a network with a lowest charge as the target network to be switched to, or the determining unit is further configured to determine, from the network allowed to be accessed and according to the network stability of the network allowed to be accessed, a network with highest stability as the target network to be switched to.
  • According to a fourth aspect, an embodiment of the present disclosure further provides a terminal device, where the terminal device includes, an acquiring unit configured to acquire a network resource parameter of a network allowed to be accessed; a determining unit configured to determine, from the network allowed to be accessed and according to the network resource parameter of the network allowed to be accessed, a target network to be switched to, a sending unit configured to send a network resource parameter of the target network to a terminal device, so that the terminal device determines, according to the network resource parameter, a running parameter of an application program that is run on the terminal device, and a switching unit configured to switch from a current network to the target network.
  • With reference to the fourth aspect, in a first implementation manner, the acquiring unit is further configured to self-detect and acquire the network resource parameter of the network allowed to be accessed, or the acquiring unit is further configured to receive the network resource parameter that is of the network allowed to be accessed and is sent by a network management device.
  • With reference to the fourth aspect or the first implementation manner of the fourth aspect, in a second implementation manner, the network resource parameter includes bandwidth, a network charge rate, or network stability, and the determining unit is further configured to determine, from the network allowed to be accessed and according to the bandwidth of the network allowed to be accessed, a network with largest bandwidth as the target network to be switched to, or the determining unit is further configured to determine, from the network allowed to be accessed and according to the network charge rate of the network allowed to be accessed, a network with a lowest charge as the target network to be switched to; or the determining unit is further configured to determine, from the network allowed to be accessed and according to the network stability of the network allowed to be accessed, a network with highest stability as the target network to be switched to.
  • It can be learned from the foregoing that according to the network switching method and the terminal device provided in the embodiments of the present disclosure, a network resource parameter of a target network to be switched to is determined before network switching, so that a running parameter of an application program that is to be run in the target network is determined and set according to the network resource parameter of the target network. The network switching method described in the solutions is used to enable the application program to implement, to some extent, seamless network switching.
  • BRIEF DESCRIPTION OF DRAWINGS
  • To describe the technical solutions in the embodiments of the present application art more clearly, the following briefly introduces the accompanying drawings required for describing the embodiments or the prior art. The accompanying drawings in the following description show some embodiments of the present application, and a person of ordinary skill in the art may still derive other drawings from these accompanying drawings without creative efforts.
  • FIG. 1 is a schematic diagram of an application scenario of a network switching method according to an embodiment of the present disclosure;
  • FIG. 2A is a schematic flowchart of a network switching method according to an embodiment of the present disclosure;
  • FIG. 2B is a schematic flowchart of a network switching method according to an embodiment of the present disclosure;
  • FIG. 3 is a schematic structural diagram of a terminal device according to an embodiment of the present disclosure;
  • FIG. 4 is a schematic structural diagram of a terminal device according to an embodiment of the present disclosure;
  • FIG. 5 is a schematic flowchart of a network switching method according to an embodiment of the present disclosure;
  • FIG. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present disclosure; and
  • FIG. 7 is a schematic structural diagram of another terminal device according to an embodiment of the present disclosure.
  • DESCRIPTION OF EMBODIMENTS
  • The following clearly describes the technical solutions in the embodiments of the present disclosure with reference to the accompanying drawings in the embodiments of the present disclosure. The described embodiments are merely some but not all of the embodiments of the present disclosure. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present disclosure without creative efforts shall fall within the protection scope of the present disclosure.
  • Embodiment 1
  • Referring to FIG. 1, FIG. 1 is a schematic diagram of an application scenario of a network switching method according to an embodiment of the present disclosure. When moving in a direction shown by arrows in FIG. 1, a terminal device needs to pass through five different mobile communications networks and may perform network switching for four times. As shown in FIG. 1, overlapping areas exist between the mobile communications networks, and when passing through the overlapping areas, the terminal device may select one of networks that cover the overlapping areas for access. For example, overlapping areas exist among a long term evolution (LTE) network, an universal mobile telecommunications system (UMTS) network, and a WiFi network, and then when moving from the LTE network to an overlapping area, the terminal device may select one network of the LTE network, the UMTS network, and the WiFi network to perform network switching and access, for example, select the WiFi network as a next access network.
  • Further, referring to FIG. 2A, FIG. 2A is a schematic flowchart of a network switching method according to an embodiment of the present disclosure. The terminal device in the application scenario shown in FIG. 1 may perform network switching by using the network switching method described in this embodiment of the present disclosure. The network switching method provided in this embodiment of the present disclosure may be applied to a computer network system and various communications systems. The computer system may be located in one physical host, or may be distributed and located in multiple physical hosts. Furthermore, the computer system may be located in one or more terminals whose types include a computer, a portable computer, a handheld device (such as a mobile phone and a personal digital assistant), a server, and the like. The various communications systems are, for example, a global system for mobile communications (GSM) system, a code division multiple access (CDMA) system, a wideband code division multiple access (WCDMA) system, a general packet radio service (GPRS), a LTE system, a LTE frequency division duplex (FDD) system, a LTE time division duplex (TDD) system, an universal mobile telecommunications system UMTS, and a worldwide interoperability for microwave access (WiMAX) communications system.
  • It should be further understood that in this embodiment of the present disclosure, the terminal device may be referred to as a terminal, a mobile station (MS), a mobile terminal, and the like. The user equipment may communicate with one or more core networks by using a radio access network (RAN). For example, the terminal device may be a mobile phone (or referred to as a “cellular” phone), or a computer with a mobile terminal. For example, the terminal device may also be a portable, pocket-sized, handheld, computer built-in, or in-vehicle mobile apparatus, which exchanges voice and/or data with the radio access network.
  • Referring to FIG. 2A, FIG. 2A is a schematic flowchart of a network switching method according to an embodiment of the present disclosure, where the method includes:
  • S201: Before network switching is performed, acquire a network resource parameter of a network allowed to be accessed.
  • If the terminal device detects in real time all wireless communications networks that cover the terminal device, and selects one of the all wireless communications networks as a target network according to a certain rule, the network allowed to be accessed refers to the all wireless communications networks. If the terminal device moves from a place A to a place B, and a network that covers the place A cannot cover the place B, the terminal device needs to select, based on a certain rule, one of all wireless communications networks that cover the place B as the target network to be switched to. Therefore, it can be learned that network switching may occur when the terminal device moves from one wireless communications network to another wireless communications network, or may occur when the terminal device is covered by multiple wireless communications networks, and performance of a wireless communications network in which the terminal device is currently located is poorer than performance of another wireless communications network that covers the terminal device. Referring to the schematic diagram of the application scenario shown in FIG. 1, when the terminal device moves from an area covered by the LTE to an area co-covered by the WiFi and the UMTS, the terminal device determines, according to a certain rule by detecting network resource parameters of the WiFi and the UMTS, one of the WiFi and the UMTS as the target network.
  • It should be noted that the network resource parameter may be set by a user that uses the terminal device, or may be set by default by an operating system of the terminal device. The network resource parameter may include but is not limited to an Internet Protocol (IP) address, a network type, network bandwidth, network quality, and a charge status that are of the target network, or may only be one or more of the IP address, the network type, the network bandwidth, the network quality, and the charge status that are of the target network.
  • It is worth noting that the acquiring a network resource parameter of a network allowed to be accessed may be self-detecting and acquiring, by the terminal device, the network resource parameter of the network allowed to be accessed, or may be receiving, by the terminal device, the network resource parameter that is of the network allowed to be accessed and is sent by a network management device (or a network server), or receiving, by the terminal device, the network resource parameter that is of the network allowed to be accessed and is sent by a terminal device of a communication peer.
  • S203: Determine, from the network allowed to be accessed and according to the network resource parameter of the network allowed to be accessed, a target network to be switched to and a network resource parameter of the target network, where the network resource parameter of the target network is used to determine and set a running parameter of an application program that is to be run in the target network.
  • Further, when the network resource parameter includes bandwidth, a network with largest bandwidth may be determined, from the network allowed to be accessed and according to the bandwidth of the network allowed to be accessed, as the target network to be switched to, when the network resource parameter includes a network charge rate, a network with a lowest charge may be determined, from the network allowed to be accessed and according to the network charge rate of the network allowed to be accessed, as the target network to be switched to, or when the network resource parameter includes network stability, a network with highest stability may be determined, from the network allowed to be accessed and according to the network stability of the network allowed to be accessed, as the target network to be switched to. Certainly, when the target network is determined from the network allowed to be accessed and according to the network resource parameter of the network allowed to be accessed, the network resource parameter that may be based on includes but is not limited to the foregoing bandwidth, network charge rate, or network stability, and may further include a network type, and the like, which is not limited in the present disclosure. All network resource parameters that can be used to determine the target network from the network allowed to be accessed fall within the protection scope of the present disclosure and are not listed one by one herein again.
  • S205: Switch from a current network to the target network, and run the application program in the target network.
  • It is worth noting that after the network resource parameter of the target network is determined in step 203, before network switching occurs, the application program may be run in a manner that adapts to the network resource parameter of the target network, or at a same time when network switching occurs, the application program is run in a manner that adapts to the network resource parameter of the target network, that is, the application program changes a running manner of the application program at a same time when network switching occurs, so as to adapt to a network status of the target network, or after network switching occurs, actually after accessing the target network, the application program is run in a manner that adapts to the network resource parameter of the target network.
  • As another embodiment of the present disclosure, refer to a schematic flowchart of a network switching method shown in FIG. 2B, which further includes:
  • S214: Determine and set, according to the network resource parameter of the target network, the running parameter of the application program that is to be run in the target network.
  • It should be noted that, a common embodiment of the application program refers to an application program that is run on the terminal device and needs to use network communications, such as a video viewing application including Youku, Sohu, IQIYI, and the like, a video communications application including QQ, MSN, and the like, a voice call application including QQ, WeChat, and the like. Furthermore, the application program may be all application programs that are run on the terminal device and need to use network communications, or may be some application programs that are run on the terminal device and need to use network communications. It is worth noting that the some application programs that are run on the terminal device and need to use network communications may be specified by the user that uses the terminal device, or may be set by default by the operating system of the terminal device.
  • Furthermore, the reason to determine the running parameter of the application program that is run in the target network is that the running parameter of the application program that is run on the terminal device varies with a network status that the application program is in. For example, if bandwidth of a current network in which a Youku video player is located becomes relatively small compared with that at a last moment, and the Youku video player no longer supports high definition video playback, the application changes from high definition playback to standard definition playback.
  • It is worth noting that the determining and setting, according to the network resource parameter of the target network, the running parameter of the application program that is to be run in the target network includes the following cases. If network quality of the target network is deteriorated, bandwidth of the target network is reduced, or a charge of the target network is increased compared with those of the current network in which the terminal device is located, resolution or a heartbeat period of the application program that is run in the target network is lower than resolution or a heartbeat period of the application program that is run in the current network, and accordingly, if the network quality of the target network is improved, the bandwidth of the target network becomes large, or the charge of the target network is reduced compared with those of the current network in which the terminal device is located, the resolution or the heartbeat period of the application program that is run in the target network is higher than the resolution or the heartbeat period of the application program that is run in the current network. It should be noted that the network resource parameter includes but is not limited to the foregoing network quality, bandwidth, or network charge rate, and may further include a network type, network stability, and the like, which is not limited in the present disclosure. All network resource parameters that may implement the network switching method in this embodiment of the present disclosure fall within the protection scope of the present disclosure and are not listed one by one herein again.
  • It should be noted that for an application program in which interrupt may occur after switching is performed, the network switching method described in this embodiment of the present disclosure further includes, generating visual prompt information and outputting the prompt information to a user interface of the terminal device.
  • Certainly, the network switching method shown in FIG. 2B further includes steps S211, S213, and S215, which are respectively corresponding to the steps S201, S203, and S205 in FIG. 2A, and therefore, for specific content of the steps S211, S213, and S215, reference may be made to the foregoing embodiment, and details are not described herein again.
  • As yet another embodiment of the present disclosure, refer to FIG. 2B, which further includes, S218: Establish a network connection between the application program and a network server in the target network.
  • Furthermore, after the application program is switched to the target network, if the IP address of the target network is different from an IP address of the current network, the network connection between the application program and the network server in the target network needs to be further re-established within a certain time period.
  • It can be learned from the foregoing that according to the network switching method provided in this embodiment of the present disclosure, a target network to be switched to and a network resource parameter of the target network have been determined before network switching occurs, so that an application program determines and sets, according to the network resource parameter of the target network, a running parameter that is run in the target network. This solution can be used to directly determine, according to the network resource parameter of the target network, the running parameter that is of the application program and adapts to the target network, so as to enable the application program to implement seamless network switching to some extent.
  • Furthermore, for that before network switching occurs, the running parameter of the application program that is run in the target network is determined and set according to the network resource parameter of the target network, the running parameter when the application program is run in the target network has been determined and set before a network is switched to the target network, and therefore after network switching occurs, the application program can be run by directly using the running parameter of the application program, so that the application program can smoothly transit from a current network to the target network, implementing seamless network switching.
  • Embodiment 2
  • Referring to FIG. 3, FIG. 3 is a terminal device 30 according to an embodiment of the present disclosure, where the terminal device 30 may be applied to the application environment shown in FIG. 1, and further, the terminal device 30 includes:
  • An acquiring unit 31 is configured to acquire a network resource parameter of a network allowed to be accessed.
  • It is worth noting that the acquiring unit 31 is further configured to self-detect the network resource parameter of the network allowed to be accessed, or receive the network resource parameter that is of the network allowed to be accessed and is sent by a network management device, or receive the network resource parameter that is of the network allowed to be accessed and is sent by a terminal device of a communication peer.
  • Furthermore, the network resource parameter may be set by a user that uses the terminal device, or may be set by default by an operating system of the terminal device. The network resource parameter may include but is not limited to an IP address, a network type, network bandwidth, network quality, and a charge status that are of a target network, or may only be one or more of the IP address, the network type, the network bandwidth, the network quality, and the charge status that are of the target network.
  • It should be noted that if the terminal device detects in real time all wireless communications networks that cover the terminal device, and selects one of the all wireless communications networks as the target network according to a certain rule, the network allowed to be accessed refers to the all wireless communications networks. If the terminal device moves from a place A to a place B, and a network that covers the place A cannot cover the place B, the terminal device needs to select, based on a certain rule, one of all wireless communications networks that cover the place B as the target network to be switched to.
  • A determining unit 32 is configured to determine, from the network allowed to be accessed and according to the network resource parameter of the network allowed to be accessed, a target network to be switched to and a network resource parameter of the target network, where the network resource parameter of the target network is used to determine and set a running parameter of an application program that is to be run in the target network.
  • Furthermore, when the network resource parameter includes bandwidth, the determining unit 32 may determine, from the network allowed to be accessed and according to the bandwidth of the network allowed to be accessed, a network with largest bandwidth as the target network to be switched to. When the network resource parameter includes a network charge rate, the determining unit 32 may determine, from the network allowed to be accessed and according to the network charge rate of the network allowed to be accessed, a network with a lowest charge as the target network to be switched to, or when the network resource parameter includes network stability, the determining unit 32 may determine, from the network allowed to be accessed and according to the network stability of the network allowed to be accessed, a network with highest stability as the target network to be switched to. Certainly, when the determining unit 32 determines the target network from the network allowed to be accessed and according to the network resource parameter of the network allowed to be accessed, the network resource parameter that may be based on includes but is not limited to the foregoing bandwidth, network charge rate, or network stability, and may further include a network type, and the like, which is not limited in the present disclosure. All network resource parameters that are of the target network and can be determined from the network allowed to be accessed fall within the protection scope of the present disclosure and are not listed one by one herein again.
  • A switching unit 36 is configured to switch from a current network to the target network.
  • A running unit 38 is configured to run the application program in the target network.
  • It is worth noting that after the determining unit 32 determines the network resource parameter of the target network, before network switching occurs, the application program may be run in a manner that adapts to the network resource parameter of the target network, or at a same time when network switching occurs, the application program is run in a manner that adapts to the network resource parameter of the target network, that is, the application program changes a running manner of the application program at a same time when network switching occurs, so as to adapt to a network status of the target network, or after network switching occurs, actually after accessing the target network, the application program is run in a manner that adapts to the network resource parameter of the target network.
  • As another embodiment of the present disclosure, in the terminal device shown in FIG. 3, the determining unit 32 is further configured to determine and set, according to the network resource parameter of the target network, the running parameter of the application program that is to be run in the target network.
  • It should be noted that, the network resource parameter includes network quality, bandwidth, or a network charge status, and the determining unit 32 is further configured to determine, according to the network quality of the target network, the running parameter of the application program that is run in the target network, or determine, according to the bandwidth of the target network, the running parameter of the application program that is run in the target network, or determine, according to the network charge status of the target network, the running parameter of the application program that is run in the target network.
  • It is worth noting that the network resource parameter includes but is not limited to the foregoing network quality, bandwidth, or network charge rate, and may further include a network type, network stability, and the like, which is not limited in the present disclosure. All network resource parameters that can implement the network switching method in this embodiment of the present disclosure fall within the protection scope of the present disclosure and are not listed one by one herein again.
  • As yet another embodiment of the present disclosure, referring to FIG. 3, the terminal device 30 further includes a connecting unit 39 configured to, after entering the target network, establish a network connection between the application program and a network server.
  • Furthermore, after the application program is switched to the target network, if the IP address of the target network is different from an IP address of the current network, the connecting unit 39 is configured to re-establish the network connection between the application program and the network server within a certain time period.
  • During specific implementation, the foregoing units may be implemented as an independent entity, or may be implemented as one or several entities by any combination. In addition, for specific implementation of the foregoing units, reference may be made to the foregoing embodiment, and details are not described herein again.
  • It can be learned that according to the terminal device provided in this embodiment of the present disclosure, before network switching occurs, the terminal device has determined a target network to be switched to and a network resource parameter of the target network, so as to determine and set, according to the network resource parameter of the target network, a running parameter of an application program that is on the terminal device and is run in the target network. This solution can be used to directly determine, according to the network resource parameter of the target network, the running parameter that is of the application program and adapts to the target network, so as to enable the application program to implement seamless network switching to some extent.
  • Further, for that before network switching occurs, the running parameter of the application program that is run in the target network is determined and set according to the network resource parameter of the target network, after network switching occurs, the application program may be run by directly using the running parameter of the application program, so that the application program can be relatively smoothly transited from a current network to the target network, implementing seamless network switching.
  • Embodiment 3
  • Referring to FIG. 4, FIG. 4 is a schematic structural diagram of another terminal device according to an embodiment of the present disclosure, where the terminal device may be similarly applied to the application environment shown in FIG. 1. As shown in FIG. 4, the terminal device may include at least one processor 401 such as a central processing unit (CPU), at least one network interface 404 such as a physical network interface controller (NIC) or another user interface 403, a memory 405, and at least one communications bus 402.
  • The communications bus 402 is configured to implement connection and communication between these components.
  • The network interface 404 is configured to implement connection and communication between the physical host and a network. For example, the network interface 404 may be configured to be connected to a device such as a physical NIC and/or a physical switch.
  • Optionally, the user interface 403 may include a monitor, a keypad, or another click device such as a mouse cursor, a trackball, a touchpad, or a touchscreen.
  • The memory 405 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one magnetic disk memory. Optionally, the memory 405 may further include at least one storage apparatus far from the foregoing processor 401.
  • In some implementation manners, the memory 405 stores the following elements: an executable module or a data structure, or a subset of the executable module or the data structure, or an extension set of the executable module or the data structure, an operating system 4051, which includes various system programs and is configured to implement various basic services and process a hardware-based task, and an application module 4052, which includes various application programs and is configured to implement various application services.
  • The application module 4052 includes but not limited to an acquiring unit, a determining unit, a switching unit, a running unit, and the like.
  • Furthermore, the processor 401 is configured to acquire a network resource parameter of a network allowed to be accessed; determine, from the network allowed to be accessed and according to the network resource parameter of the network allowed to be accessed, a target network to be switched to and a network resource parameter of the target network, where the network resource parameter of the target network is used to determine and set a running parameter of an application program that is to be run in the target network, and switch from a current network to the target network, and run the application program in the target network.
  • Further, after determining the network resource parameter of the target network and before switching from the current network to the target network, the processor 401 is further configured to determine and set, according to the network resource parameter of the target network, the running parameter of the application program that is to be run in the target network.
  • It is worth noting that, the running parameter of the application program includes resolution, and the processor 401 is further configured to determine and set, according to the network resource parameter of the target network, the resolution of the application program that is to be run in the target network, where the application program includes a video type application that uses network communications, or the running parameter of the application program includes a heartbeat period, and the processor 401 is further configured to determine and set, according to the network resource parameter of the target network, the heartbeat period of the application program that is to be run in the target network. The network resource parameter includes network quality, bandwidth, or a network charge status, and the processor 401 is further configured to determine and set, according to the network quality of the target network, the running parameter of the application program that is to be run in the target network, or determine and set, according to the bandwidth of the target network, the running parameter of the application program that is to be run in the target network, or determine and set, according to the network charge status of the target network, the running parameter of the application program that is to be run in the target network.
  • Further, the processor 401 is further configured to establish a network connection between the application program and a network server in the target network.
  • It should be noted that the processor 401 is further configured to self-detect and acquire the network resource parameter of the network that can be accessed, or receive the network resource parameter that is of the network that can be accessed and is sent by a network management device, or receive the network resource parameter that is of the network that can be accessed and is sent by a terminal device of a communication peer.
  • Further, when the network resource parameter includes bandwidth, a network charge rate, or network stability, the processor 401 is further configured to determine, from the network allowed to be accessed and according to the bandwidth of the network allowed to be accessed, a network with largest bandwidth as the target network to be switched to, or determine, from the network allowed to be accessed and according to the network charge rate of the network allowed to be accessed, a network with a lowest charge as the target network to be switched to; or determine, from the network allowed to be accessed and according to the network stability of the network allowed to be accessed, a network with highest stability as the target network to be switched to.
  • For specific implementation of the foregoing devices, reference may be made to the foregoing embodiment, and details are not described herein again.
  • It can be learned from the foregoing that before network switching occurs, the terminal device provided in this embodiment of the present disclosure has determined a target network to be switched to and a network resource parameter of the target network, so as to determine and set, according to the network resource parameter of the target network, a running parameter of an application program that is on the terminal device and is run in the target network. This solution can be used to directly determine, according to the network resource parameter of the target network, the running parameter that is of the application program and adapts to the target network, so as to enable the application program to implement seamless network switching to some extent.
  • Further, for that before network switching occurs, the running parameter of the application program that is run in the target network is determined and set according to the network resource parameter of the target network, after network switching occurs, the application program may be run by directly using the running parameter of the application program, so that the application program is relatively smoothly transited from a current network to the target network, implementing relatively seamless network switching.
  • Embodiment 4
  • Referring to FIG. 5, FIG. 5 is a schematic flowchart of a switching notifying method according to an embodiment of the present disclosure. The switching notifying method provided in this embodiment of the present disclosure may be similarly applied to the application scenario shown in FIG. 1. Furthermore, the switching notifying method provided in this embodiment of the present disclosure may also be similarly applied to a computer network system and various communications systems. The computer system may be located in one physical host, or may be distributed and located in multiple physical hosts. Furthermore, the computer system may be located in one or more terminals whose types include a computer, a portable computer, a handheld device (such as a mobile phone and a PAD), a server, and the like. The various communications systems are, for example, a GSM system, a CDMA system, a WCDMA system, a GPRS, a LTE system, a LTE FDD system, a LTE TDD system, a UMTS, and a WiMAX communications system. It should be further understood that in this embodiment of the present disclosure, the terminal device may be referred to as a terminal, a mobile station, a mobile terminal, and the like. The user equipment may communicate with one or more core networks by using a RAN. For example, the terminal device may be a mobile phone (or referred to as a “cellular” phone), or a computer with a mobile terminal. For example, the terminal device may also be a portable, pocket-sized, handheld, computer built-in, or in-vehicle mobile apparatus, which exchanges voice and/or data with the RAN.
  • As shown in FIG. 5, FIG. 5 is a schematic flowchart of a pre-switching notifying method according to an embodiment of the present disclosure, where the method includes:
  • S501: Acquire a network resource parameter of a network allowed to be accessed.
  • If the terminal device detects in real time all wireless communications networks that cover the terminal device, and selects one of the all wireless communications networks as a target network according to a certain rule, the network allowed to be accessed refers to the all wireless communications networks. If the terminal device moves from a place A to a place B, and a network that covers the place A cannot cover the place B, the terminal device needs to select, based on a certain rule, one of all wireless communications networks that cover the place B as the target network to be switched to. Therefore, it can be learned that network switching may occur when the terminal device moves from one wireless communications network to another wireless communications network, or may occur when the terminal device is covered by multiple wireless communications networks, and performance of a wireless communications network in which the terminal device is currently located is poorer than performance of another wireless communications network that covers the terminal device. Referring to the schematic diagram of the application scenario shown in FIG. 1, when the terminal device moves from an area covered by the LTE to an area co-covered by the WiFi and the UMTS, the terminal device determines, according to a certain rule by detecting network resource parameters of the WiFi and the UMTS, one of the WiFi and the UMTS as the target network.
  • It should be noted that the network resource parameter may be set by a user that uses the terminal device, or may be set by default by an operating system of the terminal device. The network resource parameter may include but is not limited to an IP address, a network type, network bandwidth, network quality, and a charge status that are of the target network, or may only be one or more of the IP address, the network type, the network bandwidth, the network quality, and the charge status that are of the target network.
  • It is worth noting that the acquiring a network resource parameter of a network allowed to be accessed may be self-detecting and acquiring, by the terminal device, the network resource parameter of the network allowed to be accessed, or may be receiving, by the terminal device, the network resource parameter that is of the network allowed to be accessed and is sent by a network management device (or a network server), or receiving, by the terminal device, the network resource parameter that is of the network allowed to be accessed and is sent by a terminal device of a communication peer.
  • S503: Determine, from the network allowed to be accessed and according to the network resource parameter of the network allowed to be accessed, a target network to be switched to.
  • Further, when the network resource parameter includes a bandwidth, a network with largest bandwidth may be determined, from the network allowed to be accessed and according to the bandwidth of the network allowed to be accessed, as the target network to be switched to. When the network resource parameter includes a network charge rate, a network with a lowest charge may be determined, from the network allowed to be accessed and according to the network charge rate of the network allowed to be accessed, as the target network to be switched to, or when the network resource parameter includes network stability, a network with highest stability may be determined, from the network allowed to be accessed and according to the network stability of the network allowed to be accessed, as the target network to be switched to. Certainly, when the target network is determined from the network allowed to be accessed and according to the network resource parameter of the network allowed to be accessed, the network resource parameter that may be based on includes but is not limited to the foregoing bandwidth, network charge rate, or network stability, and may further include a network type, and the like, which is not limited in the present disclosure. All network resource parameters that are of the target network and can be determined from the network allowed to be accessed fall within the protection scope of the present disclosure and are not listed one by one herein again.
  • S504: Send a network resource parameter of the target network to a specified terminal device, so that the specified terminal device determines, according to the network resource parameter, a running parameter of an application program that is run on the specified terminal device.
  • It is worth noting that the specified terminal device refers to a terminal device that can be communicated with and connected to, and may be all terminal devices that can be communicated with and connected to, or may be some terminal devices that can be communicated with and connected to, and the specified terminal device may be set by default by the system, or may be manually set by the user.
  • It should be noted that, the application program refers to an application program that is run on the terminal device and needs to use network communications, such as a video viewing application including Youku, Sohu, IQIYI, and the like, a video communications application including QQ, MSN, and the like, a voice call application including QQ, WeChat, and the like. In addition, the application program may be all application programs that are run on the terminal device and need to use network communications, or may be some application programs that are run on the terminal device and need to use network communications. It is worth noting that the some application programs that are run on the terminal device and need to use network communications may be specified by the user that uses the terminal device, or may be set by default by the operating system of the terminal device.
  • It is worth noting that the determining, according to the network resource parameter, the running parameter of the application program that is run on the terminal device includes the following cases: If network quality of the target network is deteriorated, the bandwidth of the target network is reduced, or a charge of the target network is increased compared with those of a current network in which the terminal device is located, the specified terminal device may communicate with the terminal device by selecting a communications mode in which a small amount of traffic is consumed, and accordingly, if the network quality of the target network is improved, the bandwidth of the target network becomes large, or the charge of the target network is reduced compared with those of the current network in which the terminal device is located, the specified terminal device may communicate with the terminal device by selecting a communications mode of a high definition video. Furthermore, if the terminal device is switched from a non-IP network (such as a GSM network) to an IP network (such as a WiFi network), the specified terminal device may communicate with the terminal device by selecting an instant messaging mode such as QQ or SKYPE, and accordingly, if the terminal device is switched from an IP network (such as a WiFi network) to a non-IP network (such as a GSM network), the specified terminal device may communicate with the terminal device by selecting an short message service (SMS) message and the like. It should be noted that the network resource parameter includes but is not limited to the foregoing network quality, bandwidth, or network charge rate, and may further include a network type, network stability, and the like, which is not limited in the present disclosure. All network resource parameters that can implement the network switching method in this embodiment of the present disclosure fall within the protection scope of the present disclosure and are not listed one by one herein again.
  • S507: Switch from a current network to the target network.
  • It can be learned from the step that the sending the network resource parameter of the target network to the specified terminal device occurs before network switching actually occurs.
  • It can be learned from the foregoing that according to the pre-switching notifying method described in this embodiment of the present disclosure, before network switching actually occurs, a terminal device sends a network resource parameter of a target network to a terminal device, so that the terminal device communicates with the terminal device by selecting a communications mode that adapts to a network status of the target network. Therefore, communication between the terminal device and the terminal device is not affected when network switching occurs in the terminal device. The pre-switching notifying method provided in this embodiment of the present disclosure can implement that communication between terminal devices is not affected by network switching, or implement seamless network switching in communication between terminal devices.
  • Embodiment 5
  • Referring to FIG. 6, FIG. 6 is a schematic structural diagram of a terminal device 60 according to an embodiment of the present disclosure, where the terminal device may also be applied to the schematic diagram of the application scenario shown in FIG. 1. Furthermore, the terminal device 60 includes:
  • An acquiring unit 61 is configured to acquire a network resource parameter of a network allowed to be accessed.
  • It is worth noting that the acquiring unit 61 is further configured to self-detect the network resource parameter of the network allowed to be accessed, or receive the network resource parameter that is of the network allowed to be accessed and is sent by a network management device or receive the network resource parameter that is of the network allowed to be accessed and is sent by a terminal device of a communication peer.
  • Furthermore, the network resource parameter may be set by a user that uses the terminal device, or may be set by default by an operating system of the terminal device. The network resource parameter may include but is not limited to an IP address, a network type, network bandwidth, network quality, and a charge status that are of a target network, or may only be one or more of the IP address, the network type, the network bandwidth, the network quality, and the charge status that are of the target network.
  • It should be noted that if the terminal device detects in real time all wireless communications networks that cover the terminal device, and selects one of the all wireless communications networks as the target network according to a certain rule, the network allowed to be accessed refers to the all wireless communications networks. If the terminal device moves from a place A to a place B, and a network that covers the place A cannot cover the place B, the terminal device needs to select, based on a certain rule, one of all wireless communications networks that cover the place B as the target network to be switched to.
  • A determining unit 62 is configured to determine, from the network allowed to be accessed and according to the network resource parameter of the network allowed to be accessed, a target network to be switched to.
  • Furthermore, when the network resource parameter includes a bandwidth, the determining unit 62 may determine, from the network allowed to be accessed and according to the bandwidth of the network allowed to be accessed, a network with largest bandwidth as the target network to be switched to. When the network resource parameter includes a network charge rate, the determining unit 62 may determine, from the network allowed to be accessed and according to the network charge rate of the network allowed to be accessed, a network with a lowest charge as the target network to be switched to, or when the network resource parameter includes network stability, the determining unit 62 may determine, from the network allowed to be accessed and according to the network stability of the network allowed to be accessed, a network with highest stability as the target network to be switched to. Certainly, when the determining unit 62 determines the target network from the network allowed to be accessed and according to the network resource parameter of the network allowed to be accessed, the network resource parameter that may be based on includes but is not limited to the foregoing bandwidth, network charge rate, or network stability, and may further include a network type, and the like, which is not limited in the present disclosure. All network resource parameters that are of the target network and can be determined from the network allowed to be accessed fall within the protection scope of the present disclosure and are not listed one by one herein again.
  • A sending unit 64 is configured to send a network resource parameter of the target network to a specified terminal device, so that the specified terminal device determines, according to the network resource parameter, a running parameter of an application program that is run on the specified terminal device.
  • It is worth noting that the specified terminal device refers to a terminal device that can establish a communication connection, and may be all terminal devices that can establish a communication connection, or may be some terminal devices that can establish a communication connection; and the specified terminal device may be set by default by the system, or may be manually set by the user.
  • It should be noted that the application program refers to an application program that is run on the specified terminal device and needs to use network communications. In addition, the application program may be all application programs that are run on the specified terminal device and need to use network communications, or may be some application programs that are run on the specified terminal device and need to use network communications. It is worth noting that the some application programs that are run on the specified terminal device and need to use network communications may be specified by the user that uses the specified terminal device, or may be set by default by the operating system of the specified terminal device.
  • A switching unit 67 is configured to switch from a current network to the target network.
  • During specific implementation, the foregoing units may be implemented as an independent entity, or may be implemented as one or several entities by any combination. In addition, for specific implementation of the foregoing units, reference may be made to the foregoing embodiment, and details are not described herein again.
  • It can be learned from the foregoing that according to the terminal device provided in this embodiment of the present disclosure, before network switching actually occurs, the terminal device sends a network resource parameter of a target network to a specified terminal device, so that the specified terminal device communicates with the terminal device by selecting a communications mode that adapts to a network status of the target network. Therefore, communication between the terminal device and the specified terminal device is not affected when network switching occurs in the terminal device, that is, it is ensured that the terminal device can keep communication with the specified terminal device when the terminal device performs network switching.
  • Embodiment 6
  • Referring to FIG. 7, FIG. 7 is a schematic structural diagram of another terminal device according to an embodiment of the present disclosure. The terminal device may also be applied to the schematic diagram of the application scenario shown in the FIG. 1. As shown in FIG. 7, the terminal device may include at least one processor 701 such as a CPU, at least one network interface 704 such as a physical NIC or another user interface 703, a memory 705, and at least one communications bus 702.
  • The communications bus 702 is configured to implement connection and communication between the components.
  • The network interface 704 is configured to implement connection and communication between the physical host and a network. For example, the network interface 704 may be configured to be connected to a device such as a physical NIC and/or a physical switch.
  • Optionally, the user interface 703 may include a monitor, a keypad, or another click device such as a mouse cursor, a trackball, a touchpad, or a touchscreen.
  • The memory 705 may include a high-speed RAM, and may also include non-volatile memory, such as at least one magnetic disk memory. Optionally, the memory 705 may further include at least one storage apparatus far from the foregoing processor 701.
  • In some implementation manners, the memory 705 stores the following elements: an executable module or a data structure, or a subset of the executable module or the data structure, or an extension set of the executable module or the data structure, an operating system 7051, which includes various system programs and is configured to implement various basic services and process a hardware-based task, and an application module 7052, which includes various application programs and is configured to implement various application services.
  • The application module 7052 includes but is not limited to a determining unit, a sending unit, a switching unit, and the like.
  • The processor 701 is configured to acquire a network resource parameter of a network allowed to be accessed, determine, from the network allowed to be accessed and according to the network resource parameter of the network allowed to be accessed, a target network to be switched to send a network resource parameter of the target network to a specified terminal device, so that the specified terminal device determines, according to the network resource parameter, a running parameter of an application program that is run on the specified terminal device, and switch from the current network to the target network.
  • It should be noted that the processor 701 is further configured to self-detect the network resource parameter of the network that can be accessed, or receive the network resource parameter that is of the network that can be accessed and is sent by a network management device. The network resource parameter includes bandwidth, a network charge rate, or network stability. The processor 701 is further configured to determine, from the network allowed to be accessed and according to the bandwidth of the network allowed to be accessed, a network with largest bandwidth as the target network to be switched to. The processor 701 is further configured to determine, from the network allowed to be accessed and according to the network charge rate of the network allowed to be accessed, a network with a lowest charge as the target network to be switched to. The processor 701 is further configured to determine, from the network allowed to be accessed and according to the network stability of the network allowed to be accessed, a network with highest stability as the target network to be switched to.
  • For specific implementation of the foregoing devices, reference may be made to the foregoing embodiment, and details are not described herein again.
  • It can be learned from the foregoing that according to the terminal device provided in this embodiment of the present disclosure, before network switching actually occurs, the terminal device sends a network resource parameter of a target network to a specified terminal device, so that the specified terminal device communicates with the terminal device by selecting a communications mode that adapts to a network status of the target network. Therefore, communication between the terminal device and the specified terminal device is not affected when network switching occurs in the terminal device, that is, it is ensured that the terminal device can keep communication with the specified terminal device when the terminal device performs network switching.
  • The described apparatus embodiment is merely exemplary. 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 position, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual requirements to achieve the objectives of the solutions of the embodiments. In addition, in the accompanying drawings of the apparatus embodiments provided by the present disclosure, connection relationships between modules indicate that the modules have communication connections with each other, which may be further implemented as one or more communications buses or signal cables. A person of ordinary skill in the art may understand and implement the embodiments of the present disclosure without creative efforts.
  • Based on the description of the foregoing implementation manners, a person skilled in the art may clearly understand that the plotting apparatus according to embodiments of the present disclosure may be implemented by software in addition to necessary universal hardware, or by dedicated hardware, including a dedicated integrated circuit, a dedicated central processing unit (CPU), a dedicated memory, a dedicated component, and the like. Generally, any functions that can be performed by a computer program can be easily implemented by using corresponding hardware. Moreover, a specific hardware structure used to achieve a same function may be of various forms, for example, in a form of an analog circuit, a digital circuit, a dedicated circuit, or the like.
  • The foregoing descriptions are merely specific implementation manners of the present disclosure, but are not intended to limit the protection scope of the present disclosure. Any variation or replacement readily figured out by a person skilled in the art within the technical scope disclosed in the present disclosure shall fall within the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.

Claims (22)

What is claimed is:
1. A network switching method, comprising:
acquiring a network resource parameter of a network allowed to be accessed before network switching is performed;
determining, from the network allowed to be accessed and according to the network resource parameter of the network allowed to be accessed, a target network to be switched to and a network resource parameter of the target network, wherein the network resource parameter of the target network is used to determine and set a running parameter of an application program that is to be run in the target network;
switching from a current network to the target network; and
starting or continuing to run the application program in the target network.
2. The network switching method according to claim 1, wherein before the switching from a current network to the target network, the method further comprises:
determining and setting, according to the network resource parameter of the target network, the running parameter of the application program that is to be run in the target network;
running the application program; and
continuing to run, after switching from the current network to the target network, the application program in the target network.
3. The network switching method according to claim 1, wherein the running parameter of the application program comprises resolution, and wherein the determining and setting, according to the network resource parameter of the target network, the running parameter of the application program that is to be run in the target network comprises:
determining and setting, according to the network resource parameter of the target network, the resolution of the application program that is to be run in the target network, wherein the application program comprises a video type application that uses network communications.
4. The network switching method according to claim 1, wherein the running parameter of the application program comprises a heartbeat period, and wherein the determining and setting, according to the network resource parameter of the target network, the running parameter of the application program that is to be run in the target network comprises:
determining and setting, according to the network resource parameter of the target network, the heartbeat period of the application program that is to be run in the target network.
5. The network switching method according to claim 1, wherein the network resource parameter comprises at least one of network quality, a bandwidth, and a network charge rate, and wherein determining and setting, according to the network resource parameter of the target network, the running parameter of the application program that is to be run in the target network further comprises one of:
determining and setting, according to the network quality of the target network, the running parameter of the application program that is to be run in the target network;
determining and setting, according to the bandwidth of the target network, the running parameter of the application program that is to be run in the target network; and
determining and setting, according to the network charge rate of the target network, the running parameter of the application program that is to be run in the target network.
6. The network switching method according to claim 1, further comprising establishing a network connection between the application program and a network server in the target network.
7. The network switching method according to claim 1, wherein acquiring the network resource parameter of the network allowed to be accessed comprises one of:
self-detecting and acquiring the network resource parameter of the network allowed to be accessed;
receiving the network resource parameter that is of the network allowed to be accessed and is sent by a network management device; and
receiving the network resource parameter that is of the network allowed to be accessed and is sent by a terminal device of a communication peer.
8. The network switching method according to claim 1, wherein the network resource parameter comprises at least one of a bandwidth, a network charge rate, and network stability, wherein determining, from the network allowed to be accessed and according to the network resource parameter of the network allowed to be accessed, the target network to be switched to comprises one of:
determining, from the network allowed to be accessed and according to the bandwidth of the network allowed to be accessed, a network with largest bandwidth as the target network to be switched to;
determining, from the network allowed to be accessed and according to the network charge rate of the network allowed to be accessed, a network with a lowest charge as the target network to be switched to; and
determining, from the network allowed to be accessed and according to the network stability of the network allowed to be accessed, a network with highest stability as the target network to be switched to.
9. A switching notifying method, comprising:
acquiring a network resource parameter of a network allowed to be accessed before network switching;
determining, from the network allowed to be accessed and according to the network resource parameter of the network allowed to be accessed, a target network to be switched to;
sending a network resource parameter of the target network to a specified terminal device, such that the specified terminal device determines, according to the network resource parameter, a running parameter of an application program that is run on the specified terminal device; and
switching from a current network to the target network.
10. The switching notifying method according to claim 9, wherein acquiring the network resource parameter of the network allowed to be accessed comprises one of:
self-detecting and acquiring the network resource parameter of the network allowed to be accessed; and
receiving the network resource parameter that is of the network allowed to be accessed and is sent by a network management device.
11. The switching notifying method according to claim 9, wherein the network resource parameter comprises at least one of a bandwidth, a network charge rate, or network stability, and wherein determining, from the network allowed to be accessed and according to the network resource parameter of the network allowed to be accessed, the target network to be switched to comprises one of:
determining, from the network allowed to be accessed and according to the bandwidth of the network allowed to be accessed, a network with largest bandwidth as the target network to be switched to;
determining, from the network allowed to be accessed and according to the network charge rate of the network allowed to be accessed, a network with a lowest charge as the target network to be switched to; and
determining, from the network allowed to be accessed and according to the network stability of the network allowed to be accessed, a network with highest stability as the target network to be switched to.
12. A terminal device, comprising:
a memory;
a processor coupled to the memory, wherein the processor is configured to:
acquire a network resource parameter of a network allowed to be accessed before network switching is performed;
determine, from the network allowed to be accessed and according to the network resource parameter of the network allowed to be accessed, a target network to be switched to and a network resource parameter of the target network, wherein the network resource parameter of the target network is used to determine and set a running parameter of an application program that is to be run in the target network;
switch from a current network to the target network; and
start or continue running the application program in the target network.
13. The terminal device according to claim 12, wherein before switching from the current network to the target network, the processor is further configured to:
determine and set, according to the network resource parameter of the target network, the running parameter of the application program that is to be run in the target network;
run the application program; and
continue running the application program in the target network after switching from the current network to the target network.
14. The terminal device according to claim 12, wherein the running parameter of the application program comprises resolution, wherein the processor is further configured to determine and set, according to the network resource parameter of the target network, the resolution of the application program that is to be run in the target network, and wherein the application program comprises a video type application that uses network communications.
15. The terminal device according to claim 12, wherein the running parameter of the application program comprises a heartbeat period, and wherein the processor is further configured to determine and set, according to the network resource parameter of the target network, the heartbeat period of the application program that is to be run in the target network.
16. The terminal device according to claim 12, wherein the network resource parameter comprises at least one of network quality, a bandwidth, and a network charge rate, and wherein the processor is further configured to one of:
determine and set, according to the network quality of the target network, the running parameter of the application program that is to be run in the target network;
determine and set, according to the bandwidth of the target network, the running parameter of the application program that is to be run in the target network; and
determine and set, according to the network charge rate of the target network, the running parameter of the application program that is to be run in the target network.
17. The terminal device according to claim 12, wherein the processor is further configured to establish a network connection between the application program and a network server in the target network.
18. The terminal device according to claim 12, wherein the processor is further configured to one of:
self-detect and acquire the network resource parameter of the network allowed to be accessed;
receive the network resource parameter that is of the network allowed to be accessed and is sent by a network management device; and
receive the network resource parameter that is of the network allowed to be accessed and is sent by a terminal device.
19. The terminal device according to claim 12, wherein the network resource parameter comprises at least one of a bandwidth, a network charge rate, and network stability, and wherein the processor is further configured to one of:
determine, from the network allowed to be accessed and according to the bandwidth of the network allowed to be accessed, a network with largest bandwidth as the target network to be switched to;
determine, from the network allowed to be accessed and according to the network charge rate of the network allowed to be accessed, a network with a lowest charge as the target network to be switched to; and
determine, from the network allowed to be accessed and according to the network stability of the network allowed to be accessed, a network with highest stability as the target network to be switched to.
20. A terminal device, comprising:
a memory;
a processor coupled to the memory, wherein the processor is configured to:
acquire a network resource parameter of a network allowed to be accessed;
determine, from the network allowed to be accessed and according to the network resource parameter of the network allowed to be accessed, a target network to be switched to;
send a network resource parameter of the target network to a specified terminal device, such that the specified terminal device determines, according to the network resource parameter, a running parameter of an application program that is run on the specified terminal device; and
switch the terminal device from a current network to the target network.
21. The terminal device according to claim 20, wherein the processor is further configured to one of:
self-detect and acquire the network resource parameter of the network allowed to be accessed; and
receive the network resource parameter that is of the network allowed to be accessed and is sent by a network management device.
22. The terminal device according to claim 20, wherein the network resource parameter comprises at least one of bandwidth, a network charge rate, and network stability, and wherein the processor is further configured to one of:
determine, from the network allowed to be accessed and according to the bandwidth of the network allowed to be accessed, a network with largest bandwidth as the target network to be switched to;
determine, from the network allowed to be accessed and according to the network charge rate of the network allowed to be accessed, a network with a lowest charge as the target network to be switched to; and
determine, from the network allowed to be accessed and according to the network stability of the network allowed to be accessed, a network with highest stability as the target network to be switched to.
US14/988,956 2013-12-10 2016-01-06 Network switching method and terminal device Active 2035-01-17 US10045263B2 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN201310671763.4 2013-12-10
CN201310671763 2013-12-10
CN201310671763.4A CN104703238A (en) 2013-12-10 2013-12-10 Network switching method and terminal device
PCT/CN2014/093453 WO2015085923A1 (en) 2013-12-10 2014-12-10 Network handover method and terminal device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/093453 Continuation WO2015085923A1 (en) 2013-12-10 2014-12-10 Network handover method and terminal device

Publications (2)

Publication Number Publication Date
US20160119833A1 true US20160119833A1 (en) 2016-04-28
US10045263B2 US10045263B2 (en) 2018-08-07

Family

ID=53349912

Family Applications (1)

Application Number Title Priority Date Filing Date
US14/988,956 Active 2035-01-17 US10045263B2 (en) 2013-12-10 2016-01-06 Network switching method and terminal device

Country Status (6)

Country Link
US (1) US10045263B2 (en)
EP (2) EP3651495B1 (en)
JP (1) JP6345245B2 (en)
KR (1) KR101789609B1 (en)
CN (1) CN104703238A (en)
WO (1) WO2015085923A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110582117A (en) * 2018-06-08 2019-12-17 中国移动通信有限公司研究院 Resource scheduling method, service transmission method, network side equipment and terminal
CN111787552A (en) * 2019-04-04 2020-10-16 安克创新科技股份有限公司 Network operation control method and device
US11063875B2 (en) * 2016-02-23 2021-07-13 Level 3 Communications, Llc Network flow control
CN113727403A (en) * 2021-09-08 2021-11-30 北京天融信网络安全技术有限公司 Network switching method and device, electronic equipment and readable storage medium

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108430083B (en) * 2018-04-11 2021-01-15 维沃移动通信有限公司 Network switching method and device
US10897493B2 (en) * 2019-02-11 2021-01-19 Verizon Patent And Licensing Inc. Systems and methods for predictive user location and content replication
CN111343683A (en) * 2020-03-12 2020-06-26 Oppo(重庆)智能科技有限公司 Network switching method, device, storage medium and terminal
CN112312505B (en) * 2020-11-20 2022-08-16 Oppo(重庆)智能科技有限公司 Cell selection method, device, electronic equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040170122A1 (en) * 2003-02-28 2004-09-02 Microsoft Corporation Vertical roaming in wireless networks through improved wireless network cell boundary detection
US20070021971A1 (en) * 2001-11-02 2007-01-25 Mckinney Jerry L Service personnel detection system and method
US20080146258A1 (en) * 2006-12-19 2008-06-19 Sap Ag Method and system for monitoring high availability support system
US20100131663A1 (en) * 2006-07-18 2010-05-27 Jin Lee Method for pre-configuration of ip address in mobile communication system
US20110310851A1 (en) * 2010-06-21 2011-12-22 Qualcomm Incorporated Method and apparatus for qos context transfer during inter radio access technology handover in a wireless communication system
US20120296964A1 (en) * 2011-05-17 2012-11-22 Damaka, Inc. System and method for transferring a call bridge between communication devices
US20130217357A1 (en) * 2010-12-17 2013-08-22 Microsoft Corporation Operating system supporting cost aware applications
US20150055490A1 (en) * 2013-08-20 2015-02-26 Cisco Technology, Inc. System and method for managing access point communication channel utilization

Family Cites Families (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7908378B2 (en) * 2002-04-26 2011-03-15 Nokia, Inc. Provisioning seamless applications in mobile terminals through registering and transferring of application context
WO2005036348A2 (en) * 2003-10-06 2005-04-21 Broadbeam Corporation Method and apparatus for intelligent seamless network switching
US8290498B2 (en) * 2004-07-28 2012-10-16 Broadcom Corporation Mobile handoff through multi-network simulcasting
WO2007063901A1 (en) * 2005-12-01 2007-06-07 Sharp Kabushiki Kaisha Wireless communication system and wireless communication method
US20080049755A1 (en) * 2006-08-25 2008-02-28 Motorola, Inc. Method and system for optimizing resource allocations based on quality of service needs of one or more applications
CN101237393B (en) * 2007-01-30 2012-08-22 华为技术有限公司 A method and device and system for realizing quick multicast service switch
CN101409900B (en) * 2008-11-25 2010-06-02 北京交通大学 Self-adapting triggering method for establishing new link for WLAN seamless switch
KR101220176B1 (en) * 2008-12-22 2013-01-11 한국전자통신연구원 System and Method of adapative media transport control for vertical handovers in heterogeneous access networks
JP5448034B2 (en) * 2009-02-05 2014-03-19 独立行政法人情報通信研究機構 Communication connection device
WO2010100315A1 (en) * 2009-03-06 2010-09-10 Valtion Teknillinen Tutkimuskeskus Perceived quality driven multimedia qos optimization
CN101640895B (en) * 2009-08-31 2012-03-21 北京邮电大学 Method and system for ensuring streaming media service quality
CN102137248B (en) 2010-01-21 2015-05-20 腾讯科技(深圳)有限公司 Video resolution switching method and device, terminal and switching system
CN102143544B (en) 2010-11-02 2014-03-05 华为技术有限公司 Method, equipment and system for controlling rate of voice coding
CN102202355A (en) * 2011-05-24 2011-09-28 上海聚力传媒技术有限公司 Method and equipment for switching current network application between user equipment
CN102404858B (en) 2011-11-25 2014-04-02 华为技术有限公司 Radio resource optimizing method, device and system
KR101360835B1 (en) 2012-01-31 2014-02-12 성균관대학교산학협력단 A method for offering handover of mobile terminal
CN103118188B (en) 2013-01-25 2014-08-20 华为终端有限公司 Application heartbeat cycle adjusting method and device, and terminal

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070021971A1 (en) * 2001-11-02 2007-01-25 Mckinney Jerry L Service personnel detection system and method
US20040170122A1 (en) * 2003-02-28 2004-09-02 Microsoft Corporation Vertical roaming in wireless networks through improved wireless network cell boundary detection
US20100131663A1 (en) * 2006-07-18 2010-05-27 Jin Lee Method for pre-configuration of ip address in mobile communication system
US20080146258A1 (en) * 2006-12-19 2008-06-19 Sap Ag Method and system for monitoring high availability support system
US20110310851A1 (en) * 2010-06-21 2011-12-22 Qualcomm Incorporated Method and apparatus for qos context transfer during inter radio access technology handover in a wireless communication system
US20130217357A1 (en) * 2010-12-17 2013-08-22 Microsoft Corporation Operating system supporting cost aware applications
US20120296964A1 (en) * 2011-05-17 2012-11-22 Damaka, Inc. System and method for transferring a call bridge between communication devices
US20150055490A1 (en) * 2013-08-20 2015-02-26 Cisco Technology, Inc. System and method for managing access point communication channel utilization

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11063875B2 (en) * 2016-02-23 2021-07-13 Level 3 Communications, Llc Network flow control
US11601372B2 (en) * 2016-02-23 2023-03-07 Level 3 Communications, Llc Network flow control
US20230208768A1 (en) * 2016-02-23 2023-06-29 Level 3 Communications, Llc Network flow control
CN110582117A (en) * 2018-06-08 2019-12-17 中国移动通信有限公司研究院 Resource scheduling method, service transmission method, network side equipment and terminal
CN111787552A (en) * 2019-04-04 2020-10-16 安克创新科技股份有限公司 Network operation control method and device
CN113727403A (en) * 2021-09-08 2021-11-30 北京天融信网络安全技术有限公司 Network switching method and device, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
KR20160091404A (en) 2016-08-02
EP3651495B1 (en) 2021-10-27
EP3651495A1 (en) 2020-05-13
US10045263B2 (en) 2018-08-07
EP3010285A1 (en) 2016-04-20
JP6345245B2 (en) 2018-06-20
KR101789609B1 (en) 2017-10-25
EP3010285B1 (en) 2019-08-14
WO2015085923A1 (en) 2015-06-18
CN104703238A (en) 2015-06-10
JP2017504998A (en) 2017-02-09
EP3010285A4 (en) 2016-08-24

Similar Documents

Publication Publication Date Title
US10045263B2 (en) Network switching method and terminal device
JP6274211B2 (en) Wireless communication terminal, communication method, program, information processing apparatus, and distribution server
CN106851782B (en) Data transmission method and device
US9894500B2 (en) Status information update method and mobile terminal
JP2020529165A (en) Information transmission method and information transmission device
EP2605582A1 (en) Processing method, device and system for bandwidth control
US10405213B2 (en) Called service processing method, mobility management entity, and home subscriber server
EP3846580A1 (en) Network state identifier display control method and related product
US9025448B2 (en) Methods and apparatuses for accessing internet
CN109462863B (en) Method and equipment for voice called
US20150289183A1 (en) Wireless communication apparatus, wireless communication method, and computer-readable recording medium
US20210195671A1 (en) Control Method for Displaying Service Identifier in Electronic Device, Electronic Device, and Storage
US20210084568A1 (en) Communication Method, Network Device and Terminal Device
CN111757283B (en) Charging method and device
KR20190034157A (en) Communication method and communication device
JP2015146470A (en) Radio communication terminal, information processing device, communication method, control method, program, and distribution server
CN114268913B (en) Message domain selection method and device, storage medium and electronic equipment
US10327114B2 (en) Message sending method, mobile broadband device, and host
CN108464034B (en) Voice service processing method and device
US9131449B2 (en) Controlling wireless network signals
CN108811162B (en) System information transmission method, terminal and base station
US20230309191A1 (en) Emergency call method and apparatus, storage medium, and terminal
EP3249875A1 (en) Wireless communication method, remote user equipment and relay user equipment
KR20240004621A (en) Triggering of edge server discovery and instantiation by 5GMS-aware applications
CN114760655A (en) Method, device, product, medium and equipment for triggering pilot frequency measurement

Legal Events

Date Code Title Description
AS Assignment

Owner name: HUAWEI TECHNOLOGIES CO., LTD., CHINA

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:WU, HAO;HUANG, KANGMIN;DONG, MINGJIE;SIGNING DATES FROM 20150922 TO 20150923;REEL/FRAME:037420/0796

STCF Information on status: patent grant

Free format text: PATENTED CASE

CC Certificate of correction
MAFP Maintenance fee payment

Free format text: PAYMENT OF MAINTENANCE FEE, 4TH YEAR, LARGE ENTITY (ORIGINAL EVENT CODE: M1551); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY

Year of fee payment: 4