CN111970738B - Network switching control method, device and computer readable storage medium - Google Patents

Network switching control method, device and computer readable storage medium Download PDF

Info

Publication number
CN111970738B
CN111970738B CN202010891804.0A CN202010891804A CN111970738B CN 111970738 B CN111970738 B CN 111970738B CN 202010891804 A CN202010891804 A CN 202010891804A CN 111970738 B CN111970738 B CN 111970738B
Authority
CN
China
Prior art keywords
network
data request
request message
response
switching
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010891804.0A
Other languages
Chinese (zh)
Other versions
CN111970738A (en
Inventor
王建刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN202010891804.0A priority Critical patent/CN111970738B/en
Publication of CN111970738A publication Critical patent/CN111970738A/en
Application granted granted Critical
Publication of CN111970738B publication Critical patent/CN111970738B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/14Reselecting a network or an air interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0011Control or signalling for completing the hand-off for data sessions of end-to-end connection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/16Performing reselection for specific purposes
    • H04W36/165Performing reselection for specific purposes for reducing network power consumption
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention discloses a network switching control method, equipment and a computer readable storage medium, wherein the method comprises the following steps: monitoring a current data request message in a first network state; then, analyzing the data request message to obtain a response name and a response value in the data request message; then, determining the data request scale of the tape out according to the response name and/or the response value; and finally, if the data request scale is larger than a preset value, switching the first network into a second network, and responding to the data request message after the second network is successfully switched, wherein the network bandwidth of the second network is larger than that of the first network. The humanized network switching control scheme is realized, so that the switching time from the 4G network to the 5G network is more in line with the network requirement of a user, the network switching power consumption is reduced, the network switching accuracy is improved, and the user experience is improved.

Description

Network switching control method, device and computer readable storage medium
Technical Field
The present invention relates to the field of mobile communications, and in particular, to a network handover control method, apparatus, and computer readable storage medium.
Background
In the prior art, operators prefer to select the 5G network based on NSA in the early development stage of the 5G network due to the high construction cost of the 5G network. The Chinese name of NSA is a mixed networking, which is formed by upgrading and reforming the existing 4G network. In short, in NSA networking, operators use a mode that a 4G network/5G network shares a core network. Thus, the existing huge 4G network can be utilized to rapidly popularize 5G network coverage, and the cost of accessing the 5G network by a user can be reduced. However, because the power consumption of the 5G terminal is higher than that of the 4G terminal due to the characteristics of the 5G network, in order to provide a better quality 5G terminal use experience for the user, each terminal manufacturer tries to reduce the power consumption, wherein one direction is based on the characteristics of the NSA network, and in the NSA networking mode, an operator adopts a mode that the 4G network/5G network shares a core network. It is based on this feature of NSA that the handover between the 5G network and the 4G network of NSA is smooth and fast, and hardly perceived by the user.
Because the 5G network has the advantage of higher speed compared with the 4G network, the 5G network can enable the user to respond more quickly for the scene of the large data request of the user, and the 4G network can basically completely meet the requirements for the common use scene of the user. Therefore, the scene that the user needs to use the 5G network is accurately identified, the use time of the 5G network and the 4G network of the terminal is dynamically adjusted, and the power consumption of the terminal can be effectively reduced.
The scheme adopted by most manufacturers at present is as follows: based on statistics of data bandwidths of users for a period of time or by means of a white list, if the data bandwidths exceed a preset threshold, switching to a 5G network, and if the data bandwidths are lower than the preset threshold, using the 4G network. Or an application in the white list, then the 5G network is preferentially used.
Based on the scheme, the purpose of reducing power consumption can be basically achieved. However, the judgment made after statistics of the data bandwidth of the past period of time cannot represent the behavior of the user in the future period of time. When the data bandwidth of the user is lower than the threshold value in a period of time, the user is switched to the 4G network, but the user is quickly switched to another scene needing to use big data, the 4G network can not bring extremely fast experience to the user at this time, and the use of the user is affected. The white list mode cannot be updated in time once solidified, and is an application in the white list, and certain scenes do not have large data requests, so that power consumption is increased when a 5G network is used all the time.
In summary, in the prior art, the network switching mechanism based on the white name list is not mature enough, and the switching requirement and the switching time cannot be accurately determined, so that the power consumption cannot be effectively reduced and the user experience cannot be improved.
Disclosure of Invention
In order to solve the technical defects in the prior art, the invention provides a network switching control method, which comprises the following steps:
monitoring a current data request message in a first network state;
analyzing the data request message to obtain a response name and a response value in the data request message;
determining the data request scale of the tape departure according to the response name and/or the response value;
and if the data request scale is larger than a preset value, switching the first network into a second network, and responding to the data request message after the second network is successfully switched, wherein the network bandwidth of the second network is larger than that of the first network.
Optionally, the monitoring the current data request message in the first network state includes:
detecting the current network state of the equipment;
monitoring a current data request message when the device is in the first network state.
Optionally, the parsing the data request message to obtain a response name and a response value in the data request message includes:
analyzing all the data request messages in a preset period;
and obtaining the response name and the response value in each data request message.
Optionally, the determining the size of the data request sent by the tape according to the response name and/or the response value includes:
counting the data request scales corresponding to the response values;
and determining the maximum value of the sizes or the sum of the sizes of the data requests.
Optionally, if the data request size is greater than a preset value, switching the first network to a second network, and responding to the data request message after the second network is successfully switched, where a network bandwidth of the second network is greater than a network bandwidth of the first network, including:
if the maximum value or the sum of the scales of the data request scales is larger than a preset value, switching the first network into a second network, and responding to the data request message after the second network is switched successfully;
and switching the second network to the first network when the data request message is responded to.
The invention also proposes a network handover control device comprising a memory, a processor and a computer program stored on said memory and executable on said processor, said computer program realizing when executed by said processor:
Monitoring a current data request message in a first network state;
analyzing the data request message to obtain a response name and a response value in the data request message;
determining the data request scale of the tape departure according to the response name and/or the response value;
and if the data request scale is larger than a preset value, switching the first network into a second network, and responding to the data request message after the second network is successfully switched, wherein the network bandwidth of the second network is larger than that of the first network.
Optionally, the computer program is implemented when executed by the processor:
detecting the current network state of the equipment;
monitoring a current data request message when the device is in the first network state.
Optionally, the computer program is implemented when executed by the processor:
analyzing all the data request messages in a preset period;
and obtaining the response name and the response value in each data request message.
Optionally, the computer program is implemented when executed by the processor:
counting the data request scales corresponding to the response values;
determining a maximum value or a sum of scales of the respective data request scales;
If the maximum value or the sum of the scales of the data request scales is larger than a preset value, switching the first network into a second network, and responding to the data request message after the second network is switched successfully;
and switching the second network to the first network when the data request message is responded to.
The present invention also proposes a computer-readable storage medium having stored thereon a network handover control program which, when executed by a processor, implements the steps of the network handover control method as set forth in any one of the above.
The network switching control method, the network switching control equipment and the computer readable storage medium are implemented by monitoring the current data request message in the first network state; then, analyzing the data request message to obtain a response name and a response value in the data request message; then, determining the data request scale of the tape out according to the response name and/or the response value; and finally, if the data request scale is larger than a preset value, switching the first network into a second network, and responding to the data request message after the second network is successfully switched, wherein the network bandwidth of the second network is larger than that of the first network. The humanized network switching control scheme is realized, so that the switching time from the 4G network to the 5G network is more in line with the network requirement of a user, the network switching power consumption is reduced, the network switching accuracy is improved, and the user experience is improved.
Drawings
The invention will be further described with reference to the accompanying drawings and examples, in which:
fig. 1 is a schematic diagram of a hardware structure of a mobile terminal according to the present invention;
fig. 2 is a schematic diagram of a communication network system according to an embodiment of the present invention;
fig. 3 is a flowchart of a first embodiment of the network handover control method of the present invention;
fig. 4 is a flowchart of a second embodiment of the network handover control method of the present invention;
fig. 5 is a flowchart of a third embodiment of the network handover control method of the present invention;
fig. 6 is a flowchart of a fourth embodiment of the network handover control method of the present invention;
fig. 7 is a flowchart of a fifth embodiment of the network handover control method of the present invention.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
In the following description, suffixes such as "module", "component", or "unit" for representing elements are used only for facilitating the description of the present invention, and have no specific meaning per se. Thus, "module," "component," or "unit" may be used in combination.
The terminal may be implemented in various forms. For example, the terminals described in the present invention may include mobile terminals such as cell phones, tablet computers, notebook computers, palm computers, personal digital assistants (Personal Digital Assistant, PDA), portable media players (Portable Media Player, PMP), navigation devices, wearable devices, smart bracelets, pedometers, and fixed terminals such as digital TVs, desktop computers, and the like.
The following description will be given taking a mobile terminal as an example, and those skilled in the art will understand that the configuration according to the embodiment of the present invention can be applied to a fixed type terminal in addition to elements particularly used for a moving purpose.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention, the mobile terminal 100 may include: an RF (Radio Frequency) unit 101, a WiFi module 102, an audio output unit 103, an a/V (audio/video) input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, a processor 110, and a power supply 111. Those skilled in the art will appreciate that the mobile terminal structure shown in fig. 1 is not limiting of the mobile terminal and that the mobile terminal may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
The following describes the components of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be used for receiving and transmitting signals during the information receiving or communication process, specifically, after receiving downlink information of the base station, processing the downlink information by the processor 110; and, the uplink data is transmitted to the base station. Typically, the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication, global System for Mobile communications), GPRS (General Packet Radio Service ), CDMA2000 (Code Division Multiple Access, CDMA 2000), WCDMA (Wideband Code Division Multiple Access ), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, time Division synchronous code Division multiple Access), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency Division Duplex Long term evolution), and TDD-LTE (Time Division Duplexing-Long Term Evolution, time Division Duplex Long term evolution), etc.
WiFi belongs to a short-distance wireless transmission technology, and a mobile terminal can help a user to send and receive e-mails, browse web pages, access streaming media and the like through the WiFi module 102, so that wireless broadband Internet access is provided for the user. Although fig. 1 shows a WiFi module 102, it is understood that it does not belong to the necessary constitution of a mobile terminal, and can be omitted entirely as required within a range that does not change the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a talk mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output (e.g., a call signal reception sound, a message reception sound, etc.) related to a specific function performed by the mobile terminal 100. The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive an audio or video signal. The a/V input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042, the graphics processor 1041 processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphics processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 can receive sound (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, and the like, and can process such sound into audio data. The processed audio (voice) data may be converted into a format output that can be transmitted to the mobile communication base station via the radio frequency unit 101 in the case of a telephone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting the audio signal.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and the proximity sensor can turn off the display panel 1061 and/or the backlight when the mobile terminal 100 moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and direction when stationary, and can be used for applications of recognizing the gesture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; as for other sensors such as fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that may also be configured in the mobile phone, the detailed description thereof will be omitted.
The display unit 106 is used to display information input by a user or information provided to the user. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the mobile terminal. In particular, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch panel 1071 or thereabout by using any suitable object or accessory such as a finger, a stylus, etc.) and drive the corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and sends the touch point coordinates to the processor 110, and can receive and execute commands sent from the processor 110. Further, the touch panel 1071 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 107 may include other input devices 1072 in addition to the touch panel 1071. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, mouse, joystick, etc., as specifically not limited herein.
Further, the touch panel 1071 may overlay the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or thereabout, the touch panel 1071 is transferred to the processor 110 to determine the type of touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of touch event. Although in fig. 1, the touch panel 1071 and the display panel 1061 are two independent components for implementing the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 may be integrated with the display panel 1061 to implement the input and output functions of the mobile terminal, which is not limited herein.
The interface unit 108 serves as an interface through which at least one external device can be connected with the mobile terminal 100. For example, the external devices may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and an external device.
Memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area that may store an operating system, application programs required for at least one function (such as a sound playing function, an image playing function, etc.), and a storage data area; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the handset, etc. In addition, memory 109 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by running or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power source 111 (e.g., a battery) for supplying power to the respective components, and preferably, the power source 111 may be logically connected to the processor 110 through a power management system, so as to perform functions of managing charging, discharging, and power consumption management through the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described herein.
In order to facilitate understanding of the embodiments of the present invention, a communication network system on which the mobile terminal of the present invention is based will be described below.
Referring to fig. 2, fig. 2 is a schematic diagram of a communication network system according to an embodiment of the present invention, where the communication network system is an LTE system of a general mobile communication technology, and the LTE system includes a UE (User Equipment) 201, an e-UTRAN (Evolved UMTS Terrestrial Radio Access Network ) 202, an epc (Evolved Packet Core, evolved packet core) 203, and an IP service 204 of an operator that are sequentially connected in communication.
Specifically, the UE201 may be the terminal 100 described above, and will not be described herein.
The E-UTRAN202 includes eNodeB2021 and other eNodeB2022, etc. The eNodeB2021 may be connected with other eNodeB2022 by a backhaul (e.g., an X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide access from the UE201 to the EPC 203.
EPC203 may include MME (Mobility Management Entity ) 2031, hss (Home Subscriber Server, home subscriber server) 2032, other MMEs 2033, SGW (Serving Gate Way) 2034, pgw (PDN Gate Way) 2035 and PCRF (Policy and Charging Rules Function, policy and tariff function entity) 2036, and so on. The MME2031 is a control node that handles signaling between the UE201 and EPC203, providing bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location registers (not shown) and to hold user specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034 and PGW2035 may provide IP address allocation and other functions for UE201, PCRF2036 is a policy and charging control policy decision point for traffic data flows and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem ), or other IP services, etc.
Although the LTE system is described above as an example, it should be understood by those skilled in the art that the present invention is not limited to LTE systems, but may be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems.
Based on the above mobile terminal hardware structure and the communication network system, various embodiments of the method of the present invention are provided.
Example 1
Fig. 3 is a flowchart of a first embodiment of the network handover control method of the present invention. A network handover control method, the method comprising:
s1, monitoring a current data request message in a first network state;
s2, analyzing the data request message to obtain a response name and a response value in the data request message;
s3, determining the data request scale of the tape departure through the response name and/or the response value;
and S4, if the data request scale is larger than a preset value, switching the first network into a second network, and responding to the data request message after the second network is successfully switched, wherein the network bandwidth of the second network is larger than that of the first network.
In this embodiment, first, a current data request message is monitored in a first network state, where the first network may be a 4G network, and a data request message that may be generated is monitored in the network state; then, analyzing the data request message to obtain a response name and a response value in the data request message, namely analyzing the data request message to obtain message information, and then, obtaining the response name and the response value in the message information, wherein the response value can be the length of a response body; then, determining the data request size of the tape-out data through the response name and/or the response value, namely determining the network data traffic size required by the data request message; and finally, if the data request scale is larger than a preset value, switching the first network into a second network, and responding to the data request message after the second network is successfully switched, wherein the network bandwidth of the second network is larger than that of the first network, namely, the second network can be a 5G network.
Specifically, in this embodiment, based on a data request message, for example, an http response of a request, a subsequent network bandwidth requirement is determined according to the length of a message, and when the length of the message is greater than a preset threshold, the message is adjusted to be in a 5G network mode, so that a user can complete the data request more quickly, and when the length of the message is less than the preset threshold, the 4G network mode is maintained, thereby solving the problems of control errors and untimely control caused by historical data of the user and a whitelist mode in the traditional scheme. Specifically, for example, the Length of the message is obtained, for example, the Length of the response body is indicated by Content-Length, the Length of the message body is returned by the web server, the Length can be understood as the size of the data request to be triggered, according to the size, in this embodiment, the comparison relation between the size and the preset threshold can be judged, if the size is greater than the preset threshold, the data request contained in the data request message is switched to the 5G network to be completed, and if the size is less than the preset threshold, the 5G network is not switched.
The embodiment has the beneficial effects that the current data request message is monitored in the first network state; then, analyzing the data request message to obtain a response name and a response value in the data request message; then, determining the data request scale of the tape out according to the response name and/or the response value; and finally, if the data request scale is larger than a preset value, switching the first network into a second network, and responding to the data request message after the second network is successfully switched, wherein the network bandwidth of the second network is larger than that of the first network. The humanized network switching control scheme is realized, so that the switching time from the 4G network to the 5G network is more in line with the network requirement of a user, the network switching power consumption is reduced, the network switching accuracy is improved, and the user experience is improved.
Example two
Fig. 4 is a flowchart of a second embodiment of the network handover control method according to the present invention, based on the above embodiment, the monitoring the current data request message in the first network state includes:
s11, detecting the current network state of the equipment;
and S12, monitoring a current data request message when the equipment is in the first network state.
In this embodiment, first, a network state where a device is currently located is detected; then, when the device is in the first network state, monitoring for a current data request message.
Optionally, detecting a current network state of the device, for example, when the device is in a 4G network state, monitoring a current data request message, and when the device is in a 5G network state, if a new data request message is not received within a first preset time, switching the current 5G network state to the 4G network state;
optionally, detecting a network state in which the device is currently located, for example, when the device is in a 4G network state, monitoring a current data request message, when the device is in a 5G network state, monitoring a new data request message at a first preset time, and when the new data request message does not meet the requirement of implementing the subsequent scale determination, switching the current 5G network state to the 4G network state.
The embodiment has the beneficial effects that the network state of the equipment is detected; then, when the device is in the first network state, monitoring for a current data request message. The network switching control scheme with more humanization is realized, so that the switching time from the 4G network to the 5G network is more in line with the network requirement of a user, the network switching power consumption is reduced, the network switching accuracy is increased, and the user experience is improved.
Example III
Fig. 5 is a flowchart of a third embodiment of a network handover control method according to the present invention, based on the above embodiment, the parsing the data request message to obtain a response name and a response value in the data request message includes:
s21, analyzing all the data request messages in a preset period;
s22, obtaining the response name and the response value in each data request message.
In this embodiment, first, all the data request messages in a preset period are parsed; and then, obtaining the response name and the response value in each data request message.
Optionally, determining a second preset time, and analyzing all received data request messages within the second preset time;
Optionally, determining a third preset time, and analyzing all the received preset number of data request messages within the second preset time;
optionally, a response name and a response value in each data request message are obtained, or a sum of a plurality of response values under the same response name is obtained.
The beneficial effects of the embodiment are that all the data request messages in the preset period are analyzed; and then, obtaining the response name and the response value in each data request message. The network switching control scheme with more humanization is realized, so that the switching time from the 4G network to the 5G network is more in line with the network requirement of a user, the network switching power consumption is reduced, the network switching accuracy is increased, and the user experience is improved.
Example IV
Fig. 6 is a flowchart of a fourth embodiment of the network handover control method according to the present invention, based on the above embodiment, the determining the size of the data request from the zone by the response name and/or the response value includes:
s31, counting the data request scales corresponding to the response values;
s32, determining the maximum value or the sum of the scales of the data request.
In this embodiment, first, each data request size corresponding to each response value is counted; then, a maximum value or a sum of the sizes of the respective data request sizes is determined.
Optionally, determining a third preset time, and counting each data request scale corresponding to each response value in the third preset time;
optionally, determining a fourth preset time, and counting a data request scale corresponding to the maximum response value in the fourth preset time;
optionally, determining the maximum value or the sum of the scales of the data request, or determining the data request message with a specific response name, and predicting that the data request message has a larger data request scale according to the specific response name, so as to avoid the uncertainty caused by determining the data request scale only through an application program white list.
The beneficial effects of the embodiment are that the data request scale corresponding to each response value is counted; then, a maximum value or a sum of the sizes of the respective data request sizes is determined. The network switching control scheme with more humanization is realized, so that the switching time from the 4G network to the 5G network is more in line with the network requirement of a user, the network switching power consumption is reduced, the network switching accuracy is increased, and the user experience is improved.
Example five
Fig. 7 is a flowchart of a fifth embodiment of a network switching control method according to the present invention, based on the above embodiment, the switching the first network to the second network if the data request size is greater than a preset value, and responding to the data request message after the second network is successfully switched, where the network bandwidth of the second network is greater than the network bandwidth of the first network, includes:
S41, if the maximum value or the sum of the scales of the data request is larger than a preset value, switching the first network into a second network, and responding to the data request message after the second network is successfully switched;
and S42, switching the second network to the first network when the data request message is responded to completion.
In this embodiment, first, if the maximum value or the sum of the scales of the data request scales is greater than a preset value, the first network is switched to the second network, and the data request message is responded after the second network is switched successfully; then, when the data request message is responded to completion, the second network is switched to the first network.
Optionally, if the maximum value or the sum of the scales of the data request scales is smaller than a preset value, keeping the first network responding to the data request message;
optionally, determining a fifth preset time, and when the data request message is responded, waiting for the fifth preset time, and switching the second network to the first network, so as to avoid frequent switching of the networks;
optionally, the length of the fifth preset time is positively correlated with the maximum value of the data request size or the sum of the sizes.
The method has the advantages that if the maximum value or the sum of the scales of the data request scales is larger than a preset value, the first network is switched to the second network, and the data request message is responded after the second network is switched successfully; then, when the data request message is responded to completion, the second network is switched to the first network. The network switching control scheme with more humanization is realized, so that the switching time from the 4G network to the 5G network is more in line with the network requirement of a user, the network switching power consumption is reduced, the network switching accuracy is increased, and the user experience is improved.
Example six
Based on the above embodiments, the present invention also proposes a network handover control device, the device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the computer program realizing when executed by the processor:
monitoring a current data request message in a first network state;
analyzing the data request message to obtain a response name and a response value in the data request message;
determining the data request scale of the tape departure according to the response name and/or the response value;
And if the data request scale is larger than a preset value, switching the first network into a second network, and responding to the data request message after the second network is successfully switched, wherein the network bandwidth of the second network is larger than that of the first network.
In this embodiment, first, a current data request message is monitored in a first network state, where the first network may be a 4G network, and a data request message that may be generated is monitored in the network state; then, analyzing the data request message to obtain a response name and a response value in the data request message, namely analyzing the data request message to obtain message information, and then, obtaining the response name and the response value in the message information, wherein the response value can be the length of a response body; then, determining the data request size of the tape-out data through the response name and/or the response value, namely determining the network data traffic size required by the data request message; and finally, if the data request scale is larger than a preset value, switching the first network into a second network, and responding to the data request message after the second network is successfully switched, wherein the network bandwidth of the second network is larger than that of the first network, namely, the second network can be a 5G network.
Specifically, in this embodiment, based on a data request message, for example, an http response of a request, a subsequent network bandwidth requirement is determined according to the length of a message, and when the length of the message is greater than a preset threshold, the message is adjusted to be in a 5G network mode, so that a user can complete the data request more quickly, and when the length of the message is less than the preset threshold, the 4G network mode is maintained, thereby solving the problems of control errors and untimely control caused by historical data of the user and a whitelist mode in the traditional scheme. Specifically, for example, the Length of the message is obtained, for example, the Length of the response body is indicated by Content-Length, the Length of the message body is returned by the web server, the Length can be understood as the size of the data request to be triggered, according to the size, in this embodiment, the comparison relation between the size and the preset threshold can be judged, if the size is greater than the preset threshold, the data request contained in the data request message is switched to the 5G network to be completed, and if the size is less than the preset threshold, the 5G network is not switched.
The embodiment has the beneficial effects that the current data request message is monitored in the first network state; then, analyzing the data request message to obtain a response name and a response value in the data request message; then, determining the data request scale of the tape out according to the response name and/or the response value; and finally, if the data request scale is larger than a preset value, switching the first network into a second network, and responding to the data request message after the second network is successfully switched, wherein the network bandwidth of the second network is larger than that of the first network. The humanized network switching control scheme is realized, so that the switching time from the 4G network to the 5G network is more in line with the network requirement of a user, the network switching power consumption is reduced, the network switching accuracy is improved, and the user experience is improved.
Example seven
Based on the above embodiments, the computer program when executed by the processor implements:
detecting the current network state of the equipment;
monitoring a current data request message when the device is in the first network state.
In this embodiment, first, a network state where a device is currently located is detected; then, when the device is in the first network state, monitoring for a current data request message.
Optionally, detecting a current network state of the device, for example, when the device is in a 4G network state, monitoring a current data request message, and when the device is in a 5G network state, if a new data request message is not received within a first preset time, switching the current 5G network state to the 4G network state;
optionally, detecting a network state in which the device is currently located, for example, when the device is in a 4G network state, monitoring a current data request message, when the device is in a 5G network state, monitoring a new data request message at a first preset time, and when the new data request message does not meet the requirement of implementing the subsequent scale determination, switching the current 5G network state to the 4G network state.
The embodiment has the beneficial effects that the network state of the equipment is detected; then, when the device is in the first network state, monitoring for a current data request message. The network switching control scheme with more humanization is realized, so that the switching time from the 4G network to the 5G network is more in line with the network requirement of a user, the network switching power consumption is reduced, the network switching accuracy is increased, and the user experience is improved.
Example eight
Based on the above embodiments, the computer program when executed by the processor implements:
analyzing all the data request messages in a preset period;
and obtaining the response name and the response value in each data request message.
In this embodiment, first, all the data request messages in a preset period are parsed; and then, obtaining the response name and the response value in each data request message.
Optionally, determining a second preset time, and analyzing all received data request messages within the second preset time;
optionally, determining a third preset time, and analyzing all the received preset number of data request messages within the second preset time;
Optionally, a response name and a response value in each data request message are obtained, or a sum of a plurality of response values under the same response name is obtained.
The beneficial effects of the embodiment are that all the data request messages in the preset period are analyzed; and then, obtaining the response name and the response value in each data request message. The network switching control scheme with more humanization is realized, so that the switching time from the 4G network to the 5G network is more in line with the network requirement of a user, the network switching power consumption is reduced, the network switching accuracy is increased, and the user experience is improved.
Example nine
Based on the above embodiments, the computer program when executed by the processor implements:
counting the data request scales corresponding to the response values;
determining a maximum value or a sum of scales of the respective data request scales;
if the maximum value or the sum of the scales of the data request scales is larger than a preset value, switching the first network into a second network, and responding to the data request message after the second network is switched successfully;
and switching the second network to the first network when the data request message is responded to.
In this embodiment, first, each data request size corresponding to each response value is counted; then, a maximum value or a sum of the sizes of the respective data request sizes is determined.
Optionally, determining a third preset time, and counting each data request scale corresponding to each response value in the third preset time;
optionally, determining a fourth preset time, and counting a data request scale corresponding to the maximum response value in the fourth preset time;
optionally, determining the maximum value or the sum of the scales of the data request, or determining the data request message with a specific response name, and predicting that the data request message has a larger data request scale according to the specific response name, so as to avoid the uncertainty caused by determining the data request scale only through an application program white list.
In another embodiment, first, if the maximum value or the sum of the scales of the data request scales is greater than a preset value, the first network is switched to a second network, and the data request message is responded after the second network is switched successfully; then, when the data request message is responded to completion, the second network is switched to the first network.
Optionally, if the maximum value or the sum of the scales of the data request scales is smaller than a preset value, keeping the first network responding to the data request message;
optionally, determining a fifth preset time, and when the data request message is responded, waiting for the fifth preset time, and switching the second network to the first network, so as to avoid frequent switching of the networks;
optionally, the length of the fifth preset time is positively correlated with the maximum value of the data request size or the sum of the sizes.
The method has the advantages that if the maximum value or the sum of the scales of the data request scales is larger than a preset value, the first network is switched to the second network, and the data request message is responded after the second network is switched successfully; then, when the data request message is responded to completion, the second network is switched to the first network. The network switching control scheme with more humanization is realized, so that the switching time from the 4G network to the 5G network is more in line with the network requirement of a user, the network switching power consumption is reduced, the network switching accuracy is increased, and the user experience is improved.
Examples ten
Based on the above embodiments, the present invention also proposes a computer readable storage medium, on which a network handover control program is stored, which when executed by a processor implements the steps of the network handover control method according to any one of the above.
The network switching control method, the network switching control equipment and the computer readable storage medium are implemented by monitoring the current data request message in the first network state; then, analyzing the data request message to obtain a response name and a response value in the data request message; then, determining the data request scale of the tape out according to the response name and/or the response value; and finally, if the data request scale is larger than a preset value, switching the first network into a second network, and responding to the data request message after the second network is successfully switched, wherein the network bandwidth of the second network is larger than that of the first network. The humanized network switching control scheme is realized, so that the switching time from the 4G network to the 5G network is more in line with the network requirement of a user, the network switching power consumption is reduced, the network switching accuracy is improved, and the user experience is improved.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The embodiments of the present invention have been described above with reference to the accompanying drawings, but the present invention is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present invention and the scope of the claims, which are to be protected by the present invention.

Claims (3)

1. A network handover control method, the method comprising:
monitoring a current data request message in a first network state;
analyzing the data request message to obtain a response name and a response value in the data request message;
determining the data request scale to be triggered through the response name and/or the response value;
if the data request scale is larger than a preset value, switching the first network into a second network, and responding to the data request message after the second network is successfully switched, wherein the network bandwidth of the second network is larger than that of the first network;
the monitoring the current data request message in the first network state includes:
Detecting the current network state of the equipment;
monitoring a current data request message when the device is in the first network state;
the analyzing the data request message to obtain the response name and the response value in the data request message comprises the following steps:
analyzing all the data request messages in a preset period;
obtaining the response names and the response values in the data request messages, wherein the response names and the response values in the data request messages are obtained, or the sum of a plurality of response values under the same response name is obtained;
the determining the size of the data request to be triggered according to the response name and/or the response value comprises the following steps:
counting the data request scales corresponding to the response values;
determining the maximum value or the sum of the scales of the data requests, wherein in a third preset time, counting the scales of the data requests corresponding to the response values, or in a fourth preset time, counting the scales of the data requests corresponding to the maximum response value, or determining the maximum value or the sum of the scales of the data requests, or determining the data request message with a specific response name, and predicting the data request scale of the corresponding data request message according to the specific response name;
If the data request size is greater than a preset value, switching the first network to a second network, and responding to the data request message after the second network is successfully switched, wherein the network bandwidth of the second network is greater than the network bandwidth of the first network, and the method comprises the following steps:
if the maximum value or the sum of the scales of the data request scales is larger than a preset value, switching the first network into a second network, and responding to the data request message after the second network is switched successfully;
switching the second network to the first network when the data request message is responded to;
wherein, the liquid crystal display device comprises a liquid crystal display device,
monitoring the data request message when the device is in the first network state, and switching the second network state to the first network state if a new data request message is not received within a first preset time when the device is in the second network state;
the data request message is monitored when the device is in the first network state, and a new data request message is monitored at the first preset time when the device is in the second network state, and the second network state is switched to the first network state when the data request size of the new data request message is less than or equal to the preset value.
2. A network handover control device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the computer program implementing when executed by the processor:
monitoring a current data request message in a first network state;
analyzing the data request message to obtain a response name and a response value in the data request message;
determining the data request scale to be triggered through the response name and/or the response value;
if the data request scale is larger than a preset value, switching the first network into a second network, and responding to the data request message after the second network is successfully switched, wherein the network bandwidth of the second network is larger than that of the first network;
the monitoring the current data request message in the first network state includes:
detecting the current network state of the equipment;
monitoring a current data request message when the device is in the first network state;
the analyzing the data request message to obtain the response name and the response value in the data request message comprises the following steps:
Analyzing all the data request messages in a preset period;
obtaining the response names and the response values in the data request messages, wherein the response names and the response values in the data request messages are obtained, or the sum of a plurality of response values under the same response name is obtained;
the determining the size of the data request to be triggered according to the response name and/or the response value comprises the following steps:
counting the data request scales corresponding to the response values;
determining the maximum value or the sum of the scales of the data requests, wherein in a third preset time, counting the scales of the data requests corresponding to the response values, or in a fourth preset time, counting the scales of the data requests corresponding to the maximum response value, or determining the maximum value or the sum of the scales of the data requests, or determining the data request message with a specific response name, and predicting the data request scale of the corresponding data request message according to the specific response name;
if the data request size is greater than a preset value, switching the first network to a second network, and responding to the data request message after the second network is successfully switched, wherein the network bandwidth of the second network is greater than the network bandwidth of the first network, and the method comprises the following steps:
If the maximum value or the sum of the scales of the data request scales is larger than a preset value, switching the first network into a second network, and responding to the data request message after the second network is switched successfully;
switching the second network to the first network when the data request message is responded to;
wherein, the liquid crystal display device comprises a liquid crystal display device,
monitoring the data request message when the device is in the first network state, and switching the second network state to the first network state if a new data request message is not received within a first preset time when the device is in the second network state;
the data request message is monitored when the device is in the first network state, and a new data request message is monitored at the first preset time when the device is in the second network state, and the second network state is switched to the first network state when the data request size of the new data request message is less than or equal to the preset value.
3. A computer-readable storage medium, wherein a network handover control program is stored on the computer-readable storage medium, which when executed by a processor, implements the steps of the network handover control method according to claim 1.
CN202010891804.0A 2020-08-29 2020-08-29 Network switching control method, device and computer readable storage medium Active CN111970738B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010891804.0A CN111970738B (en) 2020-08-29 2020-08-29 Network switching control method, device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010891804.0A CN111970738B (en) 2020-08-29 2020-08-29 Network switching control method, device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111970738A CN111970738A (en) 2020-11-20
CN111970738B true CN111970738B (en) 2023-06-27

Family

ID=73400153

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010891804.0A Active CN111970738B (en) 2020-08-29 2020-08-29 Network switching control method, device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111970738B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112437476A (en) * 2020-12-08 2021-03-02 努比亚技术有限公司 Network switching control method and device, intelligent terminal and readable storage medium
CN112867068A (en) * 2021-01-22 2021-05-28 广东以诺通讯有限公司 Method for selecting service data channel in IMS (IP multimedia subsystem) call under 5G NSA (network spanning tree) network

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103747512A (en) * 2014-01-21 2014-04-23 宇龙计算机通信科技(深圳)有限公司 Data traffic processing method, data traffic processing system and terminal
CN105072645A (en) * 2015-07-24 2015-11-18 广东欧珀移动通信有限公司 Terminal Internet self-adaptive adjusting method based on China Telecom network type and device
CN106572505A (en) * 2015-10-13 2017-04-19 中兴通讯股份有限公司 Communication method, apparatus and terminal
CN110191461A (en) * 2019-06-14 2019-08-30 Oppo广东移动通信有限公司 Data transfer control method, device and electronic equipment
CN110784898A (en) * 2019-10-30 2020-02-11 努比亚技术有限公司 Network switching method, mobile terminal and computer readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103747512A (en) * 2014-01-21 2014-04-23 宇龙计算机通信科技(深圳)有限公司 Data traffic processing method, data traffic processing system and terminal
CN105072645A (en) * 2015-07-24 2015-11-18 广东欧珀移动通信有限公司 Terminal Internet self-adaptive adjusting method based on China Telecom network type and device
CN106572505A (en) * 2015-10-13 2017-04-19 中兴通讯股份有限公司 Communication method, apparatus and terminal
CN110191461A (en) * 2019-06-14 2019-08-30 Oppo广东移动通信有限公司 Data transfer control method, device and electronic equipment
CN110784898A (en) * 2019-10-30 2020-02-11 努比亚技术有限公司 Network switching method, mobile terminal and computer readable storage medium

Also Published As

Publication number Publication date
CN111970738A (en) 2020-11-20

Similar Documents

Publication Publication Date Title
CN110175062B (en) Screen refreshing frame rate method of mobile terminal, mobile terminal and storage medium
CN110784898B (en) Network switching method, mobile terminal and computer readable storage medium
CN112004173B (en) Bluetooth headset switching method, mobile terminal and computer readable storage medium
CN110087287B (en) Control method and device for terminal network searching, mobile terminal and storage medium
CN109982402B (en) Terminal voice calling method, mobile terminal and computer readable storage medium
CN109195213B (en) Mobile terminal screen control method, mobile terminal and computer readable storage medium
CN109890022B (en) Data transmission control method, mobile terminal and computer readable storage medium
CN109144705B (en) Application management method, mobile terminal and computer readable storage medium
CN112637410B (en) Method, terminal and storage medium for displaying message notification
CN108958936B (en) Application program switching method, mobile terminal and computer readable storage medium
CN114126015A (en) Power consumption control method, intelligent terminal and storage medium
CN111970738B (en) Network switching control method, device and computer readable storage medium
CN109445945B (en) Memory allocation method of application program, mobile terminal, server and storage medium
CN108579081B (en) Event processing method, device and computer storage medium based on game
CN112437472B (en) Network switching method, equipment and computer readable storage medium
CN112102780B (en) Display frame rate regulation and control method, device and computer readable storage medium
CN112090065B (en) Network delay regulation and control method, equipment and computer readable storage medium
CN112954755A (en) Method and device for optimizing network switching and computer readable storage medium
CN109388947B (en) Background management method, device and computer readable storage medium
CN110955397A (en) Method for setting frame rate of game terminal, game terminal and storage medium
CN112667339B (en) Screen refresh rate setting method, terminal and computer readable medium
CN111476231B (en) Image area identification method, device and computer readable storage medium
CN112887404B (en) Audio transmission control method, equipment and computer readable storage medium
CN109379719B (en) Application program broadcast processing method and device and computer readable storage medium
CN110087290B (en) Power consumption management and control method, terminal and computer readable storage medium

Legal Events

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