WO2019080732A1 - Network management method and related products - Google Patents

Network management method and related products

Info

Publication number
WO2019080732A1
WO2019080732A1 PCT/CN2018/110122 CN2018110122W WO2019080732A1 WO 2019080732 A1 WO2019080732 A1 WO 2019080732A1 CN 2018110122 W CN2018110122 W CN 2018110122W WO 2019080732 A1 WO2019080732 A1 WO 2019080732A1
Authority
WO
WIPO (PCT)
Prior art keywords
game application
network
network bandwidth
background
threshold
Prior art date
Application number
PCT/CN2018/110122
Other languages
French (fr)
Chinese (zh)
Inventor
莫瑞宏
林志泳
刘美
张俊
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2019080732A1 publication Critical patent/WO2019080732A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0896Bandwidth or capacity management, i.e. automatically increasing or decreasing capacities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72427User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for supporting games or graphical animations

Definitions

  • the present application relates to the field of terminal technologies, and in particular, to a network management method and related products.
  • the user needs to ensure that the game application can fully utilize the network resources, memory resources, central processing unit (CPU) resources, and graphics processor of the terminal device. (graphics processing unit, GPU) resources and input/output (I/O) resources.
  • CPU central processing unit
  • GPU graphics processor
  • the embodiment of the present application provides a network management method and related products, which can limit the network bandwidth available when the game application runs in the background, and prevent the game application from occupying too much network bandwidth in the background and affecting the network usage of the application running in the foreground.
  • the first aspect of the embodiment of the present application discloses a network management method, including:
  • the terminal device monitors a switching operation of switching the game application from the foreground operation to the background operation;
  • the game application Determining, by the game application, a first data amount for data transmission at a time of the switching operation; the first data amount includes an uplink data amount and a downlink data amount;
  • the network bandwidth available when the game application is running in the background is limited to not exceed a preset network bandwidth threshold.
  • the second aspect of the embodiment of the present application discloses a network management apparatus, which is applied to a terminal device, and includes:
  • a monitoring unit configured to monitor, by the terminal device, a switching operation of switching a game application from a foreground operation to a background operation;
  • a determining unit configured to determine a first data amount that the game application performs data transmission at a time of the switching operation; the first data amount includes an uplink data amount and a downlink data amount;
  • control unit configured to limit, when the first data amount is greater than the first threshold, a network bandwidth that is available when the game application is running in the background does not exceed a preset network bandwidth threshold.
  • a third aspect of the embodiments of the present application discloses a terminal device, including a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to Executed by the processor, the program includes instructions for performing the steps of the method as described in the first aspect above.
  • a fourth aspect of embodiments of the present application discloses a computer readable storage medium storing a computer program for electronic data exchange, wherein the computer program causes a computer to perform the method as described in the first aspect above, the computer Includes terminal equipment.
  • a fifth aspect of the embodiments of the present application discloses a computer program product, wherein the computer program product comprises a non-transitory computer readable storage medium storing a computer program, the computer program being operative to cause a computer to execute as in the present application Some or all of the steps described in any of the methods of the first aspect.
  • the computer program product can be a software installation package, the computer including a terminal device.
  • FIG. 1 is a schematic diagram of interaction between a terminal device and a server during operation of a game application according to an embodiment of the present application
  • FIG. 2 is a schematic flowchart of a network management method according to an embodiment of the present application.
  • FIG. 3 is a schematic flowchart diagram of another network management method according to an embodiment of the present disclosure.
  • FIG. 4 is a schematic diagram of interaction between a terminal device and an access point AP according to an embodiment of the present disclosure
  • FIG. 5 is a schematic diagram of a distribution relationship between a first threshold, a second threshold, and a third threshold according to an embodiment of the present disclosure
  • FIG. 6 is a schematic structural diagram of a network management apparatus according to an embodiment of the present disclosure.
  • FIG. 7A is a schematic structural diagram of another network management apparatus according to an embodiment of the present disclosure.
  • FIG. 7B is a schematic structural diagram of an adjusting unit disclosed in an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of a terminal device according to an embodiment of the present disclosure.
  • FIG. 9 is a schematic structural diagram of another terminal device according to an embodiment of the present application.
  • the terminal device involved in the embodiments of the present application may include various handheld devices having wireless communication functions, in-vehicle devices, wearable devices, computing devices, or other processing devices connected to the wireless modem, and various forms of user devices (user Equipment, UE), mobile station (MS), terminal device, etc.
  • user Equipment user Equipment
  • MS mobile station
  • terminal devices etc.
  • the embodiment of the present application provides a network management method and related products, which can limit the network bandwidth available to the game application in the background, and prevent the game application from occupying too much in the background in the case that the game application can perform data transmission after switching to the background operation.
  • Network bandwidth affects the network usage of applications running in the foreground. The details are described below separately.
  • FIG. 1 is a schematic diagram of interaction between a terminal device and a server during a game application running according to an embodiment of the present application.
  • the game played by the player A on the terminal device 101 is a competition game
  • the data of the operation performed by the player A on the terminal device 101 is uploaded to the server 102 in real time through the uplink data link, and then passes through the server 102.
  • the terminal device 103 is transmitted to the player B; at the same time, the terminal device 101 also receives the operation data of the player B transmitted by the server 102 through the downlink data link, and then the terminal device 101 performs parameter calculation and graphics according to the local data and the received data.
  • the rendering is performed to update the display screen of the terminal device 101.
  • FIG. 2 is a schematic flowchart diagram of a network management method according to an embodiment of the present application.
  • the network management method shown in FIG. 2 may include the following steps:
  • the terminal device monitors a switching operation of switching the game application from the foreground operation to the background operation.
  • the game application switches to the background operation, the game application does not have the background running permission, or the network permission is not used in the background, the network cannot be used in the background, and the game is dropped or hanged. Affect the user's game scores.
  • the embodiment of the present application can detect whether the game application is switched to run in the background when the game application is running; if the game application is switched to run in the background, the game application is authorized to use the network in the background under certain conditions, thereby avoiding the game application.
  • Switching to the background briefly causes the game to go offline; on the other hand, by limiting the network bandwidth when the game application uses the network in the background, it avoids the game application arbitrarily using the network in the background to occupy the network bandwidth, resulting in the application running in the foreground. Insufficient network bandwidth.
  • the first data amount includes an uplink data quantity that transmits data through an uplink data link and a downlink data quantity that receives data through a downlink data link.
  • the time of the switching may be in the "in-game” interface instead of the shopping mall interface, the login interface or the chat interface. Therefore, if the game application goes to the background and cannot use the network at this time, it is likely to drop the line in the game, thus affecting the user's game performance.
  • the game application switches to the background running time, the amount of data transmitted is large, and the game application can be authorized to use the network while running in the background in this case; on the other hand, when the game application uses the network in the background
  • the available network bandwidth is limited to prevent the gaming application from over-consuming network bandwidth when running in the background, or because the gaming application consumes too much data traffic in the background, resulting in high communication costs.
  • the terminal device monitors a switching operation of switching the game application from the foreground operation to the background operation; determining a first data amount of the data transmission performed by the game application at the time of the switching operation; the first data amount is greater than In the case of the first threshold, the network bandwidth available to limit the game application to run in the background does not exceed the preset network bandwidth threshold. It can be seen that, in the implementation of the embodiment of the present application, in the case that the game application can switch to the background and can perform data transmission, the available network bandwidth of the game application running in the background can be restricted, and the game application is prevented from occupying excessive network bandwidth in the background and affecting the foreground. The network usage of the running application.
  • FIG. 3 is a schematic flowchart diagram of another network management method according to an embodiment of the present application.
  • the method can include the following steps:
  • the terminal device monitors a switching operation of switching the game application from the foreground operation to the background operation.
  • the game application switches to the background operation, the game application does not have the background running permission, or the network permission is not used in the background, the network cannot be used in the background, and the game is dropped or hanged. Affect the user's game scores.
  • the embodiment of the present application can detect whether the game application is switched to run in the background when the game application is running; if the game application is switched to run in the background, the game application is authorized to use the network in the background under certain conditions, thereby avoiding the game application.
  • Switching to the background briefly causes the game to go offline; on the other hand, by limiting the network bandwidth when the game application uses the network in the background, it avoids the game application arbitrarily using the network in the background to occupy the network bandwidth, resulting in the application running in the foreground. Insufficient network bandwidth.
  • the first data amount includes an uplink data quantity that transmits data through an uplink data link and a downlink data quantity that receives data through a downlink data link.
  • the time of the switching may be in the "in-game” interface instead of the shopping mall interface, the login interface or the chat interface. Therefore, if the game application goes to the background and cannot use the network at this time, it is likely to drop the line in the game, thus affecting the user's game performance.
  • the game application switches to the background running time, the amount of data transmitted is large, and the game application can be authorized to use the network while running in the background in this case; on the other hand, when the game application uses the network in the background
  • the available network bandwidth is limited to prevent the gaming application from over-consuming network bandwidth when running in the background, or because the gaming application consumes too much data traffic in the background, resulting in high communication costs.
  • determining whether the network accessed by the current terminal device is a wireless local area network or a mobile communication network and if the network accessed by the terminal device is a wireless local area network, the network application is not used in the background for the network application to limit the network speed. If the network connected to the terminal device is a mobile communication network, the speed of the game application is limited by limiting the way the game application runs the available network bandwidth in the background, and the game application is prevented from consuming too much data traffic when running in the background. Communication costs.
  • the terminal device may disconnect the network connection of the wireless local area network. Data transmission using a mobile communication network.
  • the terminal device monitors the signal strength of the currently connected AP, and also performs background running on the game application if the signal strength of the currently accessed AP is less than the preset signal strength threshold.
  • the available network bandwidth is limited, so that the terminal device avoids the network connection of the wireless local area network due to the weak signal of the AP, and instead uses the mobile communication network for data transmission, the game application consumes excessive data traffic.
  • FIG. 4 is a schematic diagram of interaction between a terminal device and an access point AP according to an embodiment of the present disclosure.
  • the terminal device 401 receives the signal sent by the AP 402, measures the received Signal Strength Indication (RSSI) according to the received signal, and determines whether the signal strength of the AP meets the requirement according to the value of the RSSI. If the signal strength of the AP is low, the network bandwidth available for the game application in the background operation is also limited to prevent the terminal device from disconnecting from the AP and using the mobile data network due to the low signal strength of the AP.
  • RSSI Signal Strength Indication
  • the network bandwidth occupancy of the game application is improved.
  • the network bandwidth occupancy of the game application is a ratio of the network bandwidth occupied by the game application to the total network bandwidth of the terminal device.
  • the application running in the foreground may occupy too much network bandwidth, resulting in the network bandwidth available to the game application is too low, resulting in the data transmission speed of the game application is too slow, and even "dropped".
  • the second data amount of the data transmission of the game application when running in the background can be monitored, and if the second data amount is less than the second threshold, the network bandwidth of the game application is increased. Rate to ensure that the game application has enough available network bandwidth.
  • the second threshold is smaller than the first threshold. If the amount of data transmitted by the game application is less than the second threshold, the game application cannot guarantee that the server can normally interact with the server.
  • the terminal device can improve the network bandwidth usage of the game application by acquiring other applications that use the network when the game application runs in the background, and then limiting the network speed to these other applications (by limiting other Apply the network bandwidth that can be used) to release the target network bandwidth, and then allocate the target network bandwidth to the game application.
  • the permission to use the network for data transmission during the background operation of the game application may be turned off to ensure the network usage of other applications.
  • the terminal device counts the total amount of data that the game application performs data transmission during the background operation, and if the total data amount is greater than the third threshold, the right of the game application to use the network for data transmission when running in the background is turned off.
  • the third threshold is greater than the first threshold.
  • FIG. 5 is a distribution relationship between the first threshold, the second threshold, and the third threshold disclosed in the embodiment of the present application. schematic diagram.
  • the game application clears a process that the game application runs in the background without performing data transmission within a preset time interval.
  • the process of running the game application in the background may be cleared to release more memory in the case that it is determined that the game application does not perform data transmission within the preset time interval. Space is available for foreground applications.
  • FIG. 6 is a schematic structural diagram of a network management apparatus according to an embodiment of the present application.
  • the network management device 600 is applied to the terminal device, and may include a monitoring unit 601, a determining unit 602, and a control unit 603, where
  • the monitoring unit 601 is configured to monitor a switching operation in the terminal device that switches the game application from the foreground operation to the background operation.
  • the game application switches to the background operation, the game application does not have the background running permission, or the network permission is not used in the background, the network cannot be used in the background, and the game is dropped or hanged. Affect the user's game scores.
  • the monitoring unit 601 detects whether the game application is switched to run in the background; if the game application is switched to run in the background, the game application is authorized to use the network in the background under certain conditions, thereby Avoiding the game application briefly switching to the background causes the game to be dropped; on the other hand, by limiting the network bandwidth when the game application uses the network in the background, the game application is prevented from arbitrarily using the network in the background to occupy the network bandwidth, causing the foreground to run. The available network bandwidth of the application is insufficient.
  • the determining unit 602 is configured to determine a first amount of data that the game application performs data transmission at the time of the switching operation.
  • the first data amount includes an uplink data quantity that transmits data through an uplink data link and a downlink data quantity that receives data through a downlink data link.
  • the time of the switching may be in the "in-game” interface instead of the shopping mall interface, the login interface or the chat interface. Therefore, if the game application goes to the background and cannot use the network at this time, it is likely to drop the line in the game, thus affecting the user's game performance.
  • the control unit 603 is configured to limit, when the first data amount is greater than the first threshold, that the network bandwidth available when the game application is running in the background does not exceed the preset network bandwidth threshold.
  • the control unit 603 can authorize the game application to still use the network when running in the background in this case; on the other hand, the control unit 603 plays the game.
  • the application limits the network bandwidth available when using the network in the background, thereby avoiding excessive use of network bandwidth by game applications running in the background, or high communication costs due to excessive data traffic consumed by game applications in the background.
  • the network management device described in FIG. 6 can limit the available network bandwidth of the game application in the background operation, and prevent the game application from occupying excessive network bandwidth in the background in the case that the game application can perform data transmission after switching to the background operation. And the network usage that affects the applications running in the foreground.
  • FIG. 7A is a schematic structural diagram of another network management apparatus 700 according to an embodiment of the present application.
  • the network management device shown in FIG. 7A is obtained based on the network management device shown in FIG. 6.
  • the network management device shown in FIG. 7A further includes an adjustment unit 604. a clearing unit 605, a statistic unit 606, and a closing unit 607, wherein
  • the adjusting unit 604 is configured to improve the network bandwidth occupancy of the game application when the second data amount of the data transmission when the game application is running in the background is less than the second threshold; wherein the network bandwidth occupancy of the game application is occupied by the game application The ratio of the network bandwidth to the total network bandwidth of the terminal device; the second threshold is less than the first threshold.
  • the clearing unit 605 is configured to: after the adjusting unit 604 increases the network bandwidth occupancy of the game application, the game application clears the process of the game application running in the background without performing data transmission within the preset time interval.
  • the statistics unit 606 is configured to count the total amount of data that the game application performs data transmission during the background operation; and the closing unit 607 is configured to: when the total data volume is greater than the third threshold, the closed game application uses the network for data transmission when running in the background. Permission; wherein the third threshold is greater than the first threshold.
  • the adjusting unit 604 includes an obtaining subunit 6041, a releasing subunit 6042, and an allocating subunit 6043.
  • FIG. 7B is a schematic structural diagram of an adjusting unit according to an embodiment of the present application, where
  • the obtaining sub-unit 6041 is configured to acquire other applications that use the network when the game application runs in the background;
  • the release subunit 6042 is configured to reduce the occupation of network bandwidth by other applications to release the target network bandwidth
  • the allocation sub-unit 6043 is configured to allocate the target network bandwidth to the game application for use.
  • control unit 603 specifically for the network that the network management device 700 accesses is a mobile communication network, limits the network bandwidth available when the game application is running in the background does not exceed the network bandwidth threshold.
  • control unit 603 is further specifically configured to:
  • the network accessed by the terminal device is a wireless local area network, and the network application is not used in the background to limit the network speed.
  • control unit 603 is specifically configured to: when the network bandwidth that is available when the game application is running in the background does not exceed a preset network bandwidth threshold, the control unit 603 is specifically configured to:
  • the signal strength of the currently connected AP is monitored, and if the signal strength of the currently accessed AP is less than the preset signal strength threshold, the network bandwidth available for the background operation of the game application is limited.
  • the network management device 700 may disconnect the wireless local area network.
  • the network connection to the network uses the mobile communication network for data transmission.
  • control unit 603 monitors the signal strength of the currently connected AP, and also runs the game application in the background if the signal strength of the currently accessed AP is less than the preset signal strength threshold.
  • the available network bandwidth is limited, so that the network management device 700 avoids the network connection of the wireless local area network due to the weak signal of the AP, and instead uses the mobile communication network for data transmission, the game application consumes too much data. flow.
  • the network management device described in FIG. 7A can limit the available network bandwidth of the game application in the background operation, and prevent the game application from occupying excessive network bandwidth in the background in the case that the game application can perform data transmission after switching to the background operation. And the network usage that affects the applications running in the foreground.
  • FIG. 8 is a schematic structural diagram of a terminal device according to an embodiment of the present disclosure.
  • the terminal device 800 includes a processor 801, a memory 802, a communication interface 803, and one or more programs, wherein the one or more programs are stored in a memory and configured to be executed by a processor, Instructions for performing the steps in the above method embodiments are included in the program.
  • the program includes instructions for performing the following steps:
  • the game application Determining, by the game application, a first data amount for data transmission at a time of the switching operation; the first data amount includes an uplink data amount and a downlink data amount;
  • the network bandwidth available when the game application is running in the background is limited to not exceed a preset network bandwidth threshold.
  • the program further includes instructions for performing the following steps:
  • the game application increases the network bandwidth occupancy of the game application when the second data amount of the data transmission in the background operation is less than the second threshold; wherein the network bandwidth occupancy of the game application is the game a ratio of the network bandwidth occupied by the application to the total network bandwidth of the terminal device; the second threshold is less than the first threshold.
  • the program further includes instructions for performing the following steps:
  • the game application clears the progress of the game application running in the background without performing data transmission within a preset time interval.
  • the program further includes instructions for performing the following steps:
  • the third threshold is greater than the first threshold
  • the terminal device described in FIG. 8 can limit the available network bandwidth of the game application in the background, and prevent the game application from occupying too much network bandwidth in the background, in the case that the game application can perform data transmission after switching to the background operation.
  • FIG. 9 is a schematic structural diagram of a terminal device 900 according to an embodiment of the present disclosure. As shown in FIG. 9 , for the convenience of description, only the parts related to the embodiments of the present application are shown. If the specific technical details are not disclosed, please refer to the method part of the embodiment of the present application.
  • the terminal can be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), an in-vehicle computer, and the terminal device is used as a mobile phone as an example:
  • FIG. 9 is a block diagram showing a partial structure of a mobile phone related to a terminal device provided by an embodiment of the present application.
  • the mobile phone includes: a radio frequency (RF) circuit 901, a memory 902, an input unit 903, a display unit 904, a sensor 905, an audio circuit 906, a wireless fidelity (WiFi) module 907, and a processor 908. And power supply 909 and other components.
  • RF radio frequency
  • the RF circuit 901 can be used for transmitting and receiving information or during a call, and receiving and transmitting the signal. Specifically, after receiving the downlink information of the base station, the processor 908 processes the data; and, in addition, transmits the designed uplink data to the base station.
  • RF circuit 901 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like.
  • LNA Low Noise Amplifier
  • the RF circuit 901 can also communicate with the network and other devices through wireless communication.
  • the above wireless communication may use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (Code Division). Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), E-mail, Short Messaging Service (SMS), and the like.
  • GSM Global System of Mobile communication
  • the memory 902 can be used to store software programs and modules, and the processor 908 executes various functional applications and data processing of the mobile phone by running software programs and modules stored in the memory 902.
  • the memory 902 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to Data created by the use of the mobile phone (such as audio data, phone book, etc.).
  • memory 902 can include high speed random access memory, and can 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 input unit 903 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the handset.
  • the input unit 903 may include a touch panel 9031.
  • the touch panel 9031 also referred to as a touch screen, can collect touch operations on or near the user (such as the user using a finger, a stylus, or the like on the touch panel 9031 or near the touch panel 9031. Operation), and drive the corresponding connecting device according to a preset program.
  • the touch panel 9031 may include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information.
  • the processor 908 is provided and can receive commands from the processor set 908 and execute them.
  • the touch panel 9031 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the display unit 904 can be used to display information input by the user or information provided to the user as well as various menus of the mobile phone.
  • the display unit 904 can include a display panel 9041.
  • the display panel 9041 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
  • the touch panel 9031 may cover the display panel 9041. When the touch panel 9031 detects a touch operation thereon or nearby, the touch panel 9031 transmits to the processor set 908 to determine the type of the touch event, and then the processor set 908 according to the touch. The type of event provides a corresponding visual output on display panel 9041.
  • the touch panel 9031 and the display panel 9041 are used as two independent components to implement the input and input functions of the mobile phone, in some embodiments, the touch panel 9031 and the display panel 9041 may be integrated. Realize the input and output functions of the phone.
  • the handset may also include at least one type of sensor 905, such as a light sensor, motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 9041 according to the brightness of the ambient light, and the proximity sensor may close the display panel 9041 and/or when the mobile phone moves to the ear. Or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity.
  • the mobile phone can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the mobile phone can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, no longer Narration.
  • the gesture of the mobile phone such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration
  • vibration recognition related functions such as pedometer, tapping
  • the mobile phone can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, no longer Narration.
  • Audio circuit 906, speaker 9061, and microphone 9062 can provide an audio interface between the user and the handset.
  • the audio circuit 906 can transmit the converted electrical data of the received audio data to the speaker 9061, and convert it into a sound signal output by the speaker 9061; on the other hand, the microphone 9062 converts the collected sound signal into an electrical signal, and the audio circuit 906 After receiving, it is converted to audio data, processed by the audio data output processor set 908, sent to, for example, another mobile phone via the RF circuit 901, or outputted to the memory 902 for further processing.
  • WiFi is a short-range wireless transmission technology
  • the mobile phone can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 907, which provides users with wireless broadband Internet access.
  • the processor 908 is the control center of the handset, and the processor 908 connects various portions of the entire handset using various interfaces and lines, by running or executing software programs and/or modules stored in the memory 902, and recalling stored in the memory 902. Data, perform various functions of the mobile phone and process data to monitor the mobile phone as a whole.
  • the processor 908 may include one or more processing units; preferably, the processor 908 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like.
  • the modem processor primarily handles wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 908.
  • the handset also includes a power source 909 (e.g., a battery) that powers the various components.
  • a power source 909 e.g., a battery
  • the power source can be logically coupled to the processor 908 via a power management system to manage functions such as charging, discharging, and power management through the power management system.
  • the mobile phone may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
  • each step method flow may be implemented based on the structure of the mobile phone.
  • each unit function can be implemented based on the structure of the mobile phone.
  • processor 908 can call a computer program stored in memory 902 for performing the following operations:
  • the game application Determining, by the game application, a first data amount for data transmission at a time of the switching operation; the first data amount includes an uplink data amount and a downlink data amount;
  • the network bandwidth available when the game application is running in the background is limited to not exceed a preset network bandwidth threshold.
  • the processor 908 can call a computer program stored in the memory 902, and is also used to perform the following operations:
  • the game application increases the network bandwidth occupancy of the game application when the second data amount of the data transmission in the background operation is less than the second threshold; wherein the network bandwidth occupancy of the game application is the game a ratio of the network bandwidth occupied by the application to the total network bandwidth of the terminal device; the second threshold is less than the first threshold.
  • the processor 908 can call a computer program stored in the memory 902, and is also used to perform the following operations:
  • the game application clears the progress of the game application running in the background without performing data transmission within a preset time interval.
  • the processor 908 can call a computer program stored in the memory 902, and is also used to perform the following operations:
  • the third threshold is greater than the first threshold
  • the processor 908 may invoke a computer program stored in the memory 902, specifically for performing the following operations:
  • the target network bandwidth is allocated for use by the gaming application.
  • the terminal device described in FIG. 9 can limit the available network bandwidth of the game application in the background operation, and prevent the game application from occupying excessive network bandwidth in the background, in the case that the game application can perform data transmission after switching to the background operation.
  • the embodiment of the present application further provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, the computer program causing the computer to perform some or all of the steps of any of the methods described in the foregoing method embodiments.
  • the computer includes a terminal device.
  • the embodiment of the present application further provides a computer program product, comprising: a non-transitory computer readable storage medium storing a computer program, the computer program being operative to cause a computer to perform the operations as recited in the foregoing method embodiments Part or all of the steps of either method.
  • the computer program product can be a software installation package, the computer including a terminal device.
  • the disclosed apparatus may be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical or otherwise.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable memory.
  • a computer readable memory A number of instructions are included to cause a computer device (which may be a personal computer, server or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present application.
  • the foregoing memory includes: a U disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk, and the like, which can store program codes.
  • ROM Read-Only Memory
  • RAM Random Access Memory

Abstract

The embodiment of the invention relates to the technical field of a terminal and a network management method and a related product are disclosed. The method comprises: a terminal device monitors switching operation of switching a game application from foreground operation to background operation; determining the first data quantity for data transmission carried out by the game application at the switching operation time; and under the condition that the first data quantity is greater than a first threshold value, a network bandwidth available for the game application during the background operation is limited within a preset network bandwidth threshold value. It can be seen that, through application of the embodiment of the invention, after the game application is switched to the background operation and the data transmission can be carried out, the network bandwidth available for the game application during the background operation can be limited, and the condition that the network usage of an application operated on the foreground is influenced due to the fact that the game application occupies excessive network bandwidths during the background operation is avoided.

Description

网络管理方法及相关产品Network management method and related products
本申请要求2017年10月25日递交的发明名称为“网络管理方法及相关产品”的申请号201711020630.5的在先申请优先权,上述在先申请的内容以引入的方式并入本文本中。The present application claims priority to the priority of the application Serial No. 20171102063, filed on Jan. 25,,,,,,,,,,,,,,,,,,,,
技术领域Technical field
本申请涉及终端技术领域,尤其涉及一种网络管理方法及相关产品。The present application relates to the field of terminal technologies, and in particular, to a network management method and related products.
背景技术Background technique
终端设备中具有各种各样的应用,可以满足人们工作、娱乐和学习等多种方面的需求,为人们的生活带来极大便利。There are a variety of applications in the terminal equipment, which can meet the needs of people in various fields of work, entertainment and learning, and bring great convenience to people's lives.
其中,用户在利用终端设备玩游戏时,为了保证游戏的速度与性能,需要保证游戏应用可以充分使用终端设备的网络资源、内存资源、中央处理器(central processing unit,CPU)资源、图形处理器(graphics processing unit,GPU)资源以及输入/输出(Input/output,I/O)资源。In order to ensure the speed and performance of the game when playing games on the terminal device, the user needs to ensure that the game application can fully utilize the network resources, memory resources, central processing unit (CPU) resources, and graphics processor of the terminal device. (graphics processing unit, GPU) resources and input/output (I/O) resources.
然而,若游戏应用切换到后台运行,则不能在后台使用网络,便会造成卡顿、掉线等问题,降低用户在终端设备上的游戏体验。However, if the game application is switched to run in the background, the network cannot be used in the background, which may cause problems such as stagnation and dropped calls, and reduce the user's gaming experience on the terminal device.
发明内容Summary of the invention
本申请实施例提供了一种网络管理方法及相关产品,可以限制游戏应用后台运行时可用的网络带宽,避免游戏应用在后台占用过多网络带宽而影响前台运行的应用的网络使用。The embodiment of the present application provides a network management method and related products, which can limit the network bandwidth available when the game application runs in the background, and prevent the game application from occupying too much network bandwidth in the background and affecting the network usage of the application running in the foreground.
本申请实施例第一方面公开了一种网络管理方法,包括:The first aspect of the embodiment of the present application discloses a network management method, including:
终端设备监测将游戏应用由前台运行切换到后台运行的切换操作;The terminal device monitors a switching operation of switching the game application from the foreground operation to the background operation;
确定所述游戏应用在所述切换操作的时刻进行数据传输的第一数据量;所述第一数据量包括上行数据量以及下行数据量;Determining, by the game application, a first data amount for data transmission at a time of the switching operation; the first data amount includes an uplink data amount and a downlink data amount;
所述第一数据量大于第一阈值的情况下,限制所述游戏应用在后台运行时可用的网络带宽不超过预设网络带宽阈值。In a case where the first data amount is greater than the first threshold, the network bandwidth available when the game application is running in the background is limited to not exceed a preset network bandwidth threshold.
本申请实施例第二方面公开了一种网络管理装置,应用于终端设备,包括:The second aspect of the embodiment of the present application discloses a network management apparatus, which is applied to a terminal device, and includes:
监测单元,用于监测所述终端设备将游戏应用由前台运行切换到后台运行的切换操作;a monitoring unit, configured to monitor, by the terminal device, a switching operation of switching a game application from a foreground operation to a background operation;
确定单元,用于确定所述游戏应用在所述切换操作的时刻进行数据传输的第一数据量;所述第一数据量包括上行数据量以及下行数据量;a determining unit, configured to determine a first data amount that the game application performs data transmission at a time of the switching operation; the first data amount includes an uplink data amount and a downlink data amount;
控制单元,用于在所述第一数据量大于第一阈值的情况下,限制所述游戏应用在后台运行时可用的网络带宽不超过预设网络带宽阈值。And a control unit, configured to limit, when the first data amount is greater than the first threshold, a network bandwidth that is available when the game application is running in the background does not exceed a preset network bandwidth threshold.
本申请实施例第三方面公开了一种终端设备,包括处理器、存储器、通信接口以及一个或多个程序,其中,所述一个或多个程序被存储在所述存储器中,并且被配置为由所述处理器执行,所述程序包括用于执行如上述第一方面所描述的方法的步骤的指令。A third aspect of the embodiments of the present application discloses a terminal device, including a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to Executed by the processor, the program includes instructions for performing the steps of the method as described in the first aspect above.
本申请实施例第四方面公开了一种计算机可读存储介质,其存储用于电子数据交换的计算机程序,其中,所述计算机程序使得计算机执行如上述第一方面所描述的方法,所述计算机包括终端设备。A fourth aspect of embodiments of the present application discloses a computer readable storage medium storing a computer program for electronic data exchange, wherein the computer program causes a computer to perform the method as described in the first aspect above, the computer Includes terminal equipment.
本申请实施例第五方面公开了一种计算机程序产品,其中,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如本申请实施例第一方面任一方法中所描述的部分或全部步骤。该计算机程序产品可以为一个软件安装包,所述计算机包括终端设备。A fifth aspect of the embodiments of the present application discloses a computer program product, wherein the computer program product comprises a non-transitory computer readable storage medium storing a computer program, the computer program being operative to cause a computer to execute as in the present application Some or all of the steps described in any of the methods of the first aspect. The computer program product can be a software installation package, the computer including a terminal device.
附图说明DRAWINGS
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following drawings will be briefly described in the description of the embodiments. It is obvious that the drawings in the following description are only some embodiments of the present application, Those skilled in the art can also obtain other drawings based on these drawings without paying for inventive labor.
图1为本申请实施例公开的一种游戏应用运行时终端设备与服务器的交互示意图;1 is a schematic diagram of interaction between a terminal device and a server during operation of a game application according to an embodiment of the present application;
图2为本申请实施例公开的一种网络管理方法的流程示意图;2 is a schematic flowchart of a network management method according to an embodiment of the present application;
图3为本申请实施例公开的另一种网络管理方法的流程示意图;FIG. 3 is a schematic flowchart diagram of another network management method according to an embodiment of the present disclosure;
图4为本申请实施例公开的一种终端设备与接入点AP的交互示意图;FIG. 4 is a schematic diagram of interaction between a terminal device and an access point AP according to an embodiment of the present disclosure;
图5为本申请实施例公开的一种第一阈值、第二阈值以及第三阈值的分布关系示意图;FIG. 5 is a schematic diagram of a distribution relationship between a first threshold, a second threshold, and a third threshold according to an embodiment of the present disclosure;
图6为本申请实施例公开的一种网络管理装置的结构示意图;FIG. 6 is a schematic structural diagram of a network management apparatus according to an embodiment of the present disclosure;
图7A为本申请实施例公开的另一种网络管理装置的结构示意图;FIG. 7A is a schematic structural diagram of another network management apparatus according to an embodiment of the present disclosure;
图7B为本申请实施例公开的一种调整单元的结构示意图;7B is a schematic structural diagram of an adjusting unit disclosed in an embodiment of the present application;
图8为本申请实施例公开的一种终端设备的结构示意图;FIG. 8 is a schematic structural diagram of a terminal device according to an embodiment of the present disclosure;
图9为本申请实施例公开的另一种终端设备的结构示意图。FIG. 9 is a schematic structural diagram of another terminal device according to an embodiment of the present application.
具体实施方式Detailed ways
为了使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请作进一步地详细描述,显然,所描述的实施例仅仅是本申请一部份实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本申请保护的范围。The present application will be further described in detail below with reference to the accompanying drawings, and it is obvious that the described embodiments are only a part of the embodiments of the present application, but not all embodiments. . All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope are the scope of the present application.
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同的对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法或设备固有的其他步骤或单元。The terms "first", "second" and the like in the specification and claims of the present application and the above drawings are used to distinguish different objects, and are not intended to describe a specific order. Furthermore, the terms "comprises" and "comprising" and "comprising" are intended to cover a non-exclusive inclusion. For example, a process, method, system, product, or device that comprises a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units not listed, or alternatively Other steps or units inherent to these processes, methods or devices.
本申请实施例所涉及到的终端设备可以包括各种具有无线通信功能的手持设备、车载设备、可穿戴设备、计算设备或连接到无线调制解调器的其他处理设备,以及各种形式的用户设备(user equipment,UE),移动台(mobile station,MS),终端设备(terminal device)等等。为方便描述,上面提到的设备统称为终端设备。下面结合附图对本申请实施例进行介绍。The terminal device involved in the embodiments of the present application may include various handheld devices having wireless communication functions, in-vehicle devices, wearable devices, computing devices, or other processing devices connected to the wireless modem, and various forms of user devices (user Equipment, UE), mobile station (MS), terminal device, etc. For convenience of description, the devices mentioned above are collectively referred to as terminal devices. The embodiments of the present application are described below with reference to the accompanying drawings.
本申请实施例提供了一种网络管理方法及相关产品,可以在游戏应用切换到后台运行后可以进行数据传输的情况下,限制游戏应用后台运行可用的网络带宽,避免游戏应用在后台占用过多网络带宽而影响前台运行的应用的网络使用。以下分别进行详细说明。The embodiment of the present application provides a network management method and related products, which can limit the network bandwidth available to the game application in the background, and prevent the game application from occupying too much in the background in the case that the game application can perform data transmission after switching to the background operation. Network bandwidth affects the network usage of applications running in the foreground. The details are described below separately.
请参阅图1,图1为本申请实施例公开的一种游戏应用运行时终端设备与服务器的交互示意图。如图1所示,若玩家A正在终端设备101上玩的游戏为对战类游戏,则玩家A在终端设备101上进行操作的数据会通过上行数据链路实时上传到服务器102,之后通过服务器102传输至玩家B的终端设备103;同时地,终端设备101还会通过下行数据链路接收服务器102传输的玩家B的操作数据,之后终端设备101根据本地数据以及接收到的数据进行参数计算和图形渲染,进而对终端设备101的显示画面进行更新。Please refer to FIG. 1. FIG. 1 is a schematic diagram of interaction between a terminal device and a server during a game application running according to an embodiment of the present application. As shown in FIG. 1, if the game played by the player A on the terminal device 101 is a competition game, the data of the operation performed by the player A on the terminal device 101 is uploaded to the server 102 in real time through the uplink data link, and then passes through the server 102. The terminal device 103 is transmitted to the player B; at the same time, the terminal device 101 also receives the operation data of the player B transmitted by the server 102 through the downlink data link, and then the terminal device 101 performs parameter calculation and graphics according to the local data and the received data. The rendering is performed to update the display screen of the terminal device 101.
因此,在图1所示的对战类游戏运行的应用场景中,若玩家A点击终端设备101显示的其他应用的推送消息,使得显示换面跳转到其他应用,则游戏应用切换到后台运行;该游戏应用没有后台运行权限的情况下,将无法进行与服务器间的数据传输,从而导致游戏中玩家A的角色“掉线”或“挂机”,影 响玩家的游戏成绩,严重降低终端设备上的游戏体验。Therefore, in the application scenario of the battle game running in FIG. 1, if the player A clicks on the push message of the other application displayed by the terminal device 101, so that the display face jumps to other applications, the game application switches to the background operation; If the game application does not have background running rights, data transfer between the server and the server will not be possible, resulting in the player's role "dropped" or "hang up" in the game, affecting the player's game performance, and seriously reducing the terminal device. Game experience.
请参阅图2,图2为本申请实施例公开的一种网络管理方法的流程示意图。其中,图2所示的网络管理方法可以包括以下步骤:Please refer to FIG. 2. FIG. 2 is a schematic flowchart diagram of a network management method according to an embodiment of the present application. The network management method shown in FIG. 2 may include the following steps:
201、终端设备监测将游戏应用由前台运行切换到后台运行的切换操作。201. The terminal device monitors a switching operation of switching the game application from the foreground operation to the background operation.
本申请实施例中,游戏应用若切换至后台运行,该游戏应用没有后台运行权限、或没有后台使用网络权限的情况下,将无法在后台使用网络,导致游戏中出现掉线、挂机等情况,影响用户的游戏成绩。In the embodiment of the present application, if the game application switches to the background operation, the game application does not have the background running permission, or the network permission is not used in the background, the network cannot be used in the background, and the game is dropped or hanged. Affect the user's game scores.
因此,本申请实施例可以在游戏应用运行时,检测游戏应用是否被切换到后台运行;若游戏应用被切换到后台运行,则在一定的条件下授权游戏应用在后台使用网络,从而避免游戏应用短暂地切换到后台导致游戏掉线;而另一方面,通过对游戏应用在后台使用网络时的网络带宽进行限制,避免游戏应用在后台任意使用网络而侵占网络带宽,造成前台运行的应用可用的网络带宽不足。Therefore, the embodiment of the present application can detect whether the game application is switched to run in the background when the game application is running; if the game application is switched to run in the background, the game application is authorized to use the network in the background under certain conditions, thereby avoiding the game application. Switching to the background briefly causes the game to go offline; on the other hand, by limiting the network bandwidth when the game application uses the network in the background, it avoids the game application arbitrarily using the network in the background to occupy the network bandwidth, resulting in the application running in the foreground. Insufficient network bandwidth.
202、确定游戏应用在切换操作的时刻进行数据传输的第一数据量。202. Determine a first data amount that the game application performs data transmission at a time of the switching operation.
本申请实施例中,第一数据量包括通过上行数据链路发送数据的上行数据量以及通过下行数据链路接收数据的下行数据量。In the embodiment of the present application, the first data amount includes an uplink data quantity that transmits data through an uplink data link and a downlink data quantity that receives data through a downlink data link.
若切换操作的时刻,游戏应用进行数据传输的第一数据量较高,则说明切换的时刻可能处于“游戏中”的界面,而不是商城界面、登陆界面或聊天界面。因此,若此时游戏应用转到后台运行,而无法使用网络的话,很大可能在游戏中掉线,从而影响用户的游戏成绩。If the first data amount of the data transmission by the game application is higher when the operation is switched, the time of the switching may be in the "in-game" interface instead of the shopping mall interface, the login interface or the chat interface. Therefore, if the game application goes to the background and cannot use the network at this time, it is likely to drop the line in the game, thus affecting the user's game performance.
203、第一数据量大于第一阈值的情况下,限制游戏应用在后台运行时可用的网络带宽不超过预设网络带宽阈值。203. If the first data volume is greater than the first threshold, limit the network bandwidth available to the game application when running in the background does not exceed a preset network bandwidth threshold.
因此,若游戏应用切换到后台运行的时刻,其传输的数据量较大,可以授权游戏应用在该情况下在后台运行时仍能使用网络;而另一方面,对游戏应用在后台使用网络时可用的网络带宽进行限制,从而避免游戏应用在后台运行时过度占用网络带宽,或者由于游戏应用在后台消耗过多的数据流量造成高昂的通信费用。Therefore, if the game application switches to the background running time, the amount of data transmitted is large, and the game application can be authorized to use the network while running in the background in this case; on the other hand, when the game application uses the network in the background The available network bandwidth is limited to prevent the gaming application from over-consuming network bandwidth when running in the background, or because the gaming application consumes too much data traffic in the background, resulting in high communication costs.
由此可见,利用图2所描述的方法,可以在游戏应用切换到后台运行后可以进行数据传输的情况下,限制游戏应用后台运行可用的网络带宽,避免游戏应用在后台占用过多网络带宽而影响前台运行的应用的网络使用。It can be seen that, by using the method described in FIG. 2, in the case that the game application can switch to the background and can perform data transmission, the available network bandwidth of the game application running in the background can be restricted, and the game application is prevented from occupying excessive network bandwidth in the background. A network that affects the applications running in the foreground.
可以看出,上述本申请实施例中,终端设备监测将游戏应用由前台运行切换到后台运行的切换操作;确定游戏应用在切换操作的时刻进行数据传输的第 一数据量;第一数据量大于第一阈值的情况下,限制游戏应用在后台运行时可用的网络带宽不超过预设网络带宽阈值。由此可见,实施本申请实施例,可以在游戏应用切换到后台运行后可以进行数据传输的情况下,限制游戏应用后台运行可用的网络带宽,避免游戏应用在后台占用过多网络带宽而影响前台运行的应用的网络使用。It can be seen that, in the foregoing embodiment of the present application, the terminal device monitors a switching operation of switching the game application from the foreground operation to the background operation; determining a first data amount of the data transmission performed by the game application at the time of the switching operation; the first data amount is greater than In the case of the first threshold, the network bandwidth available to limit the game application to run in the background does not exceed the preset network bandwidth threshold. It can be seen that, in the implementation of the embodiment of the present application, in the case that the game application can switch to the background and can perform data transmission, the available network bandwidth of the game application running in the background can be restricted, and the game application is prevented from occupying excessive network bandwidth in the background and affecting the foreground. The network usage of the running application.
请参阅图3,图3为本申请实施例公开的另一种网络管理方法的流程示意图。该方法可以包括以下步骤:Please refer to FIG. 3. FIG. 3 is a schematic flowchart diagram of another network management method according to an embodiment of the present application. The method can include the following steps:
301、终端设备监测将游戏应用由前台运行切换到后台运行的切换操作。301. The terminal device monitors a switching operation of switching the game application from the foreground operation to the background operation.
本申请实施例中,游戏应用若切换至后台运行,该游戏应用没有后台运行权限、或没有后台使用网络权限的情况下,将无法在后台使用网络,导致游戏中出现掉线、挂机等情况,影响用户的游戏成绩。In the embodiment of the present application, if the game application switches to the background operation, the game application does not have the background running permission, or the network permission is not used in the background, the network cannot be used in the background, and the game is dropped or hanged. Affect the user's game scores.
因此,本申请实施例可以在游戏应用运行时,检测游戏应用是否被切换到后台运行;若游戏应用被切换到后台运行,则在一定的条件下授权游戏应用在后台使用网络,从而避免游戏应用短暂地切换到后台导致游戏掉线;而另一方面,通过对游戏应用在后台使用网络时的网络带宽进行限制,避免游戏应用在后台任意使用网络而侵占网络带宽,造成前台运行的应用可用的网络带宽不足。Therefore, the embodiment of the present application can detect whether the game application is switched to run in the background when the game application is running; if the game application is switched to run in the background, the game application is authorized to use the network in the background under certain conditions, thereby avoiding the game application. Switching to the background briefly causes the game to go offline; on the other hand, by limiting the network bandwidth when the game application uses the network in the background, it avoids the game application arbitrarily using the network in the background to occupy the network bandwidth, resulting in the application running in the foreground. Insufficient network bandwidth.
302、确定游戏应用在切换操作的时刻进行数据传输的第一数据量。302. Determine a first data amount that the game application performs data transmission at a time of the switching operation.
本申请实施例中,第一数据量包括通过上行数据链路发送数据的上行数据量以及通过下行数据链路接收数据的下行数据量。In the embodiment of the present application, the first data amount includes an uplink data quantity that transmits data through an uplink data link and a downlink data quantity that receives data through a downlink data link.
若切换操作的时刻,游戏应用进行数据传输的第一数据量较高,则说明切换的时刻可能处于“游戏中”的界面,而不是商城界面、登陆界面或聊天界面。因此,若此时游戏应用转到后台运行,而无法使用网络的话,很大可能在游戏中掉线,从而影响用户的游戏成绩。If the first data amount of the data transmission by the game application is higher when the operation is switched, the time of the switching may be in the "in-game" interface instead of the shopping mall interface, the login interface or the chat interface. Therefore, if the game application goes to the background and cannot use the network at this time, it is likely to drop the line in the game, thus affecting the user's game performance.
303、第一数据量大于第一阈值的情况下,限制游戏应用在后台运行时可用的网络带宽不超过预设网络带宽阈值。303. If the first data volume is greater than the first threshold, limit the network bandwidth available to the game application when running in the background does not exceed a preset network bandwidth threshold.
因此,若游戏应用切换到后台运行的时刻,其传输的数据量较大,可以授权游戏应用在该情况下在后台运行时仍能使用网络;而另一方面,对游戏应用在后台使用网络时可用的网络带宽进行限制,从而避免游戏应用在后台运行时过度占用网络带宽,或者由于游戏应用在后台消耗过多的数据流量造成高昂的通信费用。Therefore, if the game application switches to the background running time, the amount of data transmitted is large, and the game application can be authorized to use the network while running in the background in this case; on the other hand, when the game application uses the network in the background The available network bandwidth is limited to prevent the gaming application from over-consuming network bandwidth when running in the background, or because the gaming application consumes too much data traffic in the background, resulting in high communication costs.
作为一种可选的实施方式,确定当前终端设备接入的网络为无线局域网络 还是移动通信网络,若终端设备接入的网络为无线局域网络,则不对游戏应用在后台使用网络进行网速限制;若终端设备接入的网络为移动通信网络,则通过限制游戏应用在后台运行可用的网络带宽的方式来限制游戏应用的网速,避免游戏应用在后台运行时消耗过多的数据流量造成高昂的通信费用。As an optional implementation manner, determining whether the network accessed by the current terminal device is a wireless local area network or a mobile communication network, and if the network accessed by the terminal device is a wireless local area network, the network application is not used in the background for the network application to limit the network speed. If the network connected to the terminal device is a mobile communication network, the speed of the game application is limited by limiting the way the game application runs the available network bandwidth in the background, and the game application is prevented from consuming too much data traffic when running in the background. Communication costs.
进一步地,若终端设备接入的网络为无线局域网络,而终端设备接入的接入点(access point,AP)的信号较弱,则终端设备可能会断开无线局域网络的网络连接转而利用移动通信网络进行数据传输。Further, if the network accessed by the terminal device is a wireless local area network, and the access point (AP) signal of the terminal device is weak, the terminal device may disconnect the network connection of the wireless local area network. Data transmission using a mobile communication network.
因此,作为另一种可选的实施方式,终端设备监测当前连接的AP的信号强度,并在当前接入的AP的信号强度小于预设信号强度阈值的情况下,也对游戏应用后台运行时可用的网络带宽进行限制,从而避免终端设备由于AP的信号较弱而断开无线局域网络的网络连接,转而利用移动通信网络进行数据传输的情况下,游戏应用消耗过多的数据流量。Therefore, as another optional implementation manner, the terminal device monitors the signal strength of the currently connected AP, and also performs background running on the game application if the signal strength of the currently accessed AP is less than the preset signal strength threshold. The available network bandwidth is limited, so that the terminal device avoids the network connection of the wireless local area network due to the weak signal of the AP, and instead uses the mobile communication network for data transmission, the game application consumes excessive data traffic.
具体地,请参阅图4,图4为本申请实施例公开的一种终端设备与接入点AP的交互示意图。如图4所示,终端设备401接收AP 402发送的信号,根据接收到的信号测量接收的信号强度指示(Received Signal Strength Indication,RSSI),根据RSSI的值判断AP的信号强度是否满足要求。若AP的信号强度较低,也对游戏应用后台运行时可用的网络带宽进行限制,以避免终端设备由于AP的信号强度较低而断开与AP的连接转而使用移动数据网络。Specifically, please refer to FIG. 4 , which is a schematic diagram of interaction between a terminal device and an access point AP according to an embodiment of the present disclosure. As shown in FIG. 4, the terminal device 401 receives the signal sent by the AP 402, measures the received Signal Strength Indication (RSSI) according to the received signal, and determines whether the signal strength of the AP meets the requirement according to the value of the RSSI. If the signal strength of the AP is low, the network bandwidth available for the game application in the background operation is also limited to prevent the terminal device from disconnecting from the AP and using the mobile data network due to the low signal strength of the AP.
304、游戏应用在后台运行时进行数据传输的第二数据量小于第二阈值的情况下,提高游戏应用的网络带宽占用率。304. When the second data amount of the data transmission when the game application is running in the background is less than the second threshold, the network bandwidth occupancy of the game application is improved.
本申请实施例中,上述游戏应用的网络带宽占用率为游戏应用占用的网络带宽与终端设备具有的总网络带宽的比值。当游戏应用在后台运行时,前台运行的应用可能占用过多的网络带宽,导致游戏应用可用的网络带宽过低,从而导致游戏应用的数据传输速度过慢,甚至出现“掉线”的情况。In the embodiment of the present application, the network bandwidth occupancy of the game application is a ratio of the network bandwidth occupied by the game application to the total network bandwidth of the terminal device. When the game application is running in the background, the application running in the foreground may occupy too much network bandwidth, resulting in the network bandwidth available to the game application is too low, resulting in the data transmission speed of the game application is too slow, and even "dropped".
因此,为了保证游戏应用在后台运行时也能正常连接,可以监测游戏应用在后台运行时进行数据传输的第二数据量,若第二数据量小于第二阈值,则提高游戏应用的网络带宽占用率,以保证游戏应用有足够的可用网络带宽。其中,第二阈值小于第一阈值,若游戏应用传输的数据量小于第二阈值,则游戏应用无法保证可以正常与服务器进行交互。Therefore, in order to ensure that the game application can be normally connected when running in the background, the second data amount of the data transmission of the game application when running in the background can be monitored, and if the second data amount is less than the second threshold, the network bandwidth of the game application is increased. Rate to ensure that the game application has enough available network bandwidth. The second threshold is smaller than the first threshold. If the amount of data transmitted by the game application is less than the second threshold, the game application cannot guarantee that the server can normally interact with the server.
作为一种可选的实施方式,终端设备可以通过如下方式提高游戏应用的网络带宽占用率:获取游戏应用后台运行时使用网络的其他应用,之后对这些其他应用进行网速限制(可以通过限制其他应用可占用的网络带宽的方式),以释放目标网络带宽,之后将目标网络带宽分配给游戏应用使用。As an optional implementation manner, the terminal device can improve the network bandwidth usage of the game application by acquiring other applications that use the network when the game application runs in the background, and then limiting the network speed to these other applications (by limiting other Apply the network bandwidth that can be used) to release the target network bandwidth, and then allocate the target network bandwidth to the game application.
作为另一种可选的实施方式,若游戏应用在后台运行消耗的总数据量较大,可以关闭游戏应用后台运行时使用网络进行数据传输的权限,以保证其他应用的网络使用。具体地,终端设备统计游戏应用在后台运行期间进行数据传输的总数据量,若总数据量大于第三阈值,则关闭游戏应用在后台运行时使用网络进行数据传输的权限。其中,第三阈值大于第一阈值。为了清晰地示出第一阈值,第二阈值以及第三阈值的大小关系,请参阅图5,图5为本申请实施例公开的一种第一阈值、第二阈值以及第三阈值的分布关系示意图。As another optional implementation manner, if the total amount of data consumed by the game application in the background operation is large, the permission to use the network for data transmission during the background operation of the game application may be turned off to ensure the network usage of other applications. Specifically, the terminal device counts the total amount of data that the game application performs data transmission during the background operation, and if the total data amount is greater than the third threshold, the right of the game application to use the network for data transmission when running in the background is turned off. The third threshold is greater than the first threshold. In order to clearly show the relationship between the first threshold, the second threshold, and the third threshold, please refer to FIG. 5. FIG. 5 is a distribution relationship between the first threshold, the second threshold, and the third threshold disclosed in the embodiment of the present application. schematic diagram.
305、游戏应用在预设时间间隔内没有进行数据传输的情况下,清除游戏应用在后台运行的进程。305. The game application clears a process that the game application runs in the background without performing data transmission within a preset time interval.
进一步地,为了避免游戏应用常驻后台占用终端设备的内存,可以在确定游戏应用在预设时间间隔内没有进行数据传输的情况下,清除游戏应用在后台运行的进程,以释放更多的内存空间供前台应用使用。Further, in order to prevent the game application from occupying the memory of the terminal device in the background, the process of running the game application in the background may be cleared to release more memory in the case that it is determined that the game application does not perform data transmission within the preset time interval. Space is available for foreground applications.
由此可见,利用图3所描述的方法,可以在游戏应用切换到后台运行后可以进行数据传输的情况下,限制游戏应用后台运行可用的网络带宽,避免游戏应用在后台占用过多网络带宽而影响前台运行的应用的网络使用。It can be seen that, by using the method described in FIG. 3, in the case that the game application can switch to the background and can perform data transmission, the available network bandwidth of the game application running in the background can be restricted, and the game application is prevented from occupying too much network bandwidth in the background. A network that affects the applications running in the foreground.
请参阅图6,图6为本申请实施例公开的一种网络管理装置的结构示意图。如图6所示,网络管理装置600,应用于终端设备,可以包括监测单元601、确定单元602以及控制单元603,其中,Please refer to FIG. 6. FIG. 6 is a schematic structural diagram of a network management apparatus according to an embodiment of the present application. As shown in FIG. 6, the network management device 600 is applied to the terminal device, and may include a monitoring unit 601, a determining unit 602, and a control unit 603, where
监测单元601,用于监测终端设备中将游戏应用由前台运行切换到后台运行的切换操作。The monitoring unit 601 is configured to monitor a switching operation in the terminal device that switches the game application from the foreground operation to the background operation.
本申请实施例中,游戏应用若切换至后台运行,该游戏应用没有后台运行权限、或没有后台使用网络权限的情况下,将无法在后台使用网络,导致游戏中出现掉线、挂机等情况,影响用户的游戏成绩。In the embodiment of the present application, if the game application switches to the background operation, the game application does not have the background running permission, or the network permission is not used in the background, the network cannot be used in the background, and the game is dropped or hanged. Affect the user's game scores.
因此,本申请实施例可以在游戏应用运行时,监测单元601检测游戏应用是否被切换到后台运行;若游戏应用被切换到后台运行,则在一定的条件下授权游戏应用在后台使用网络,从而避免游戏应用短暂地切换到后台导致游戏掉线;而另一方面,通过对游戏应用在后台使用网络时的网络带宽进行限制,避免游戏应用在后台任意使用网络而侵占网络带宽,造成前台运行的应用可用的网络带宽不足。Therefore, in the embodiment of the present application, when the game application is running, the monitoring unit 601 detects whether the game application is switched to run in the background; if the game application is switched to run in the background, the game application is authorized to use the network in the background under certain conditions, thereby Avoiding the game application briefly switching to the background causes the game to be dropped; on the other hand, by limiting the network bandwidth when the game application uses the network in the background, the game application is prevented from arbitrarily using the network in the background to occupy the network bandwidth, causing the foreground to run. The available network bandwidth of the application is insufficient.
确定单元602,用于确定游戏应用在切换操作的时刻进行数据传输的第一数据量。The determining unit 602 is configured to determine a first amount of data that the game application performs data transmission at the time of the switching operation.
本申请实施例中,第一数据量包括通过上行数据链路发送数据的上行数据 量以及通过下行数据链路接收数据的下行数据量。In the embodiment of the present application, the first data amount includes an uplink data quantity that transmits data through an uplink data link and a downlink data quantity that receives data through a downlink data link.
若切换操作的时刻,游戏应用进行数据传输的第一数据量较高,则说明切换的时刻可能处于“游戏中”的界面,而不是商城界面、登陆界面或聊天界面。因此,若此时游戏应用转到后台运行,而无法使用网络的话,很大可能在游戏中掉线,从而影响用户的游戏成绩。If the first data amount of the data transmission by the game application is higher when the operation is switched, the time of the switching may be in the "in-game" interface instead of the shopping mall interface, the login interface or the chat interface. Therefore, if the game application goes to the background and cannot use the network at this time, it is likely to drop the line in the game, thus affecting the user's game performance.
控制单元603,用于第一数据量大于第一阈值的情况下,限制游戏应用在后台运行时可用的网络带宽不超过预设网络带宽阈值。The control unit 603 is configured to limit, when the first data amount is greater than the first threshold, that the network bandwidth available when the game application is running in the background does not exceed the preset network bandwidth threshold.
因此,若游戏应用切换到后台运行的时刻,其传输的数据量较大,控制单元603可以授权游戏应用在该情况下在后台运行时仍能使用网络;而另一方面,控制单元603对游戏应用在后台使用网络时可用的网络带宽进行限制,从而避免游戏应用在后台运行时过度占用网络带宽,或者由于游戏应用在后台消耗过多的数据流量造成高昂的通信费用。Therefore, if the game application switches to the background running time, the amount of data transmitted is large, and the control unit 603 can authorize the game application to still use the network when running in the background in this case; on the other hand, the control unit 603 plays the game. The application limits the network bandwidth available when using the network in the background, thereby avoiding excessive use of network bandwidth by game applications running in the background, or high communication costs due to excessive data traffic consumed by game applications in the background.
由此可见,图6所描述的网络管理装置,可以在游戏应用切换到后台运行后可以进行数据传输的情况下,限制游戏应用后台运行可用的网络带宽,避免游戏应用在后台占用过多网络带宽而影响前台运行的应用的网络使用。It can be seen that the network management device described in FIG. 6 can limit the available network bandwidth of the game application in the background operation, and prevent the game application from occupying excessive network bandwidth in the background in the case that the game application can perform data transmission after switching to the background operation. And the network usage that affects the applications running in the foreground.
请一并参阅图7A,图7A是本申请实施例公开的另一种网络管理装置700的结构示意图。其中,图7A所示的网络管理装置在图6所示的网络管理装置的基础上得到的,与图6所示的网络管理装置相比,图7A所示的网络管理装置还包括调整单元604、清除单元605、统计单元606以及关闭单元607,其中,Referring to FIG. 7A, FIG. 7A is a schematic structural diagram of another network management apparatus 700 according to an embodiment of the present application. The network management device shown in FIG. 7A is obtained based on the network management device shown in FIG. 6. Compared with the network management device shown in FIG. 6, the network management device shown in FIG. 7A further includes an adjustment unit 604. a clearing unit 605, a statistic unit 606, and a closing unit 607, wherein
调整单元604,用于游戏应用在后台运行时进行数据传输的第二数据量小于第二阈值的情况下,提高游戏应用的网络带宽占用率;其中,游戏应用的网络带宽占用率为游戏应用占用的网络带宽与终端设备具有的总网络带宽的比值;第二阈值小于第一阈值。The adjusting unit 604 is configured to improve the network bandwidth occupancy of the game application when the second data amount of the data transmission when the game application is running in the background is less than the second threshold; wherein the network bandwidth occupancy of the game application is occupied by the game application The ratio of the network bandwidth to the total network bandwidth of the terminal device; the second threshold is less than the first threshold.
清除单元605,用于调整单元604提高游戏应用的网络带宽占用率之后,游戏应用在预设时间间隔内没有进行数据传输的情况下,清除游戏应用在后台运行的进程。The clearing unit 605 is configured to: after the adjusting unit 604 increases the network bandwidth occupancy of the game application, the game application clears the process of the game application running in the background without performing data transmission within the preset time interval.
统计单元606,用于统计游戏应用在后台运行期间进行数据传输的总数据量;关闭单元607,用于总数据量大于第三阈值的情况下,关闭游戏应用在后台运行时使用网络进行数据传输的权限;其中,第三阈值大于第一阈值。The statistics unit 606 is configured to count the total amount of data that the game application performs data transmission during the background operation; and the closing unit 607 is configured to: when the total data volume is greater than the third threshold, the closed game application uses the network for data transmission when running in the background. Permission; wherein the third threshold is greater than the first threshold.
作为一种可选的实施方式,调整单元604,包括获取子单元6041、释放子单元6042以及分配子单元6043。请参阅图7B,图7B为本申请实施例公开的 一种调整单元的结构示意图,其中,As an optional implementation manner, the adjusting unit 604 includes an obtaining subunit 6041, a releasing subunit 6042, and an allocating subunit 6043. Referring to FIG. 7B, FIG. 7B is a schematic structural diagram of an adjusting unit according to an embodiment of the present application, where
获取子单元6041,用于获取游戏应用后台运行时使用网络的其他应用;The obtaining sub-unit 6041 is configured to acquire other applications that use the network when the game application runs in the background;
释放子单元6042,用于降低其他应用对网络带宽的占用以释放目标网络带宽;The release subunit 6042 is configured to reduce the occupation of network bandwidth by other applications to release the target network bandwidth;
分配子单元6043,用于将目标网络带宽分配给游戏应用使用。The allocation sub-unit 6043 is configured to allocate the target network bandwidth to the game application for use.
作为一种可选的实施方式,控制单元603,具体用于网络管理装置700接入的网络为移动通信网络的情况下,限制游戏应用在后台运行时可用的网络带宽不超过网络带宽阈值。As an optional implementation manner, the control unit 603, specifically for the network that the network management device 700 accesses is a mobile communication network, limits the network bandwidth available when the game application is running in the background does not exceed the network bandwidth threshold.
作为一种可选的实施方式,所述控制单元603还具体用于:As an optional implementation manner, the control unit 603 is further specifically configured to:
所述终端设备接入的网络为无线局域网络,则不对所述游戏应用在后台使用网络进行网速限制。The network accessed by the terminal device is a wireless local area network, and the network application is not used in the background to limit the network speed.
作为一种可选的实施方式,在所述限制所述游戏应用在后台运行时可用的网络带宽不超过预设网络带宽阈值方面,所述控制单元603具体用于:As an optional implementation manner, the control unit 603 is specifically configured to: when the network bandwidth that is available when the game application is running in the background does not exceed a preset network bandwidth threshold, the control unit 603 is specifically configured to:
监测当前连接的AP的信号强度,并在当前接入的AP的信号强度小于预设信号强度阈值的情况下,对所述游戏应用后台运行时可用的网络带宽进行限制。The signal strength of the currently connected AP is monitored, and if the signal strength of the currently accessed AP is less than the preset signal strength threshold, the network bandwidth available for the background operation of the game application is limited.
进一步地,若网络管理装置700接入的网络为无线局域网络,而网络管理装置700接入的接入点(access point,AP)的信号较弱,则网络管理装置700可能会断开无线局域网络的网络连接转而利用移动通信网络进行数据传输。Further, if the network accessed by the network management device 700 is a wireless local area network, and the access point (AP) signal accessed by the network management device 700 is weak, the network management device 700 may disconnect the wireless local area network. The network connection to the network uses the mobile communication network for data transmission.
因此,作为另一种可选的实施方式,控制单元603监测当前连接的AP的信号强度,并在当前接入的AP的信号强度小于预设信号强度阈值的情况下,也对游戏应用后台运行时可用的网络带宽进行限制,从而避免网络管理装置700由于AP的信号较弱而断开无线局域网络的网络连接,转而利用移动通信网络进行数据传输的情况下,游戏应用消耗过多的数据流量。Therefore, as another optional implementation manner, the control unit 603 monitors the signal strength of the currently connected AP, and also runs the game application in the background if the signal strength of the currently accessed AP is less than the preset signal strength threshold. The available network bandwidth is limited, so that the network management device 700 avoids the network connection of the wireless local area network due to the weak signal of the AP, and instead uses the mobile communication network for data transmission, the game application consumes too much data. flow.
由此可见,图7A所描述的网络管理装置,可以在游戏应用切换到后台运行后可以进行数据传输的情况下,限制游戏应用后台运行可用的网络带宽,避免游戏应用在后台占用过多网络带宽而影响前台运行的应用的网络使用。It can be seen that the network management device described in FIG. 7A can limit the available network bandwidth of the game application in the background operation, and prevent the game application from occupying excessive network bandwidth in the background in the case that the game application can perform data transmission after switching to the background operation. And the network usage that affects the applications running in the foreground.
请参阅图8,图8为本申请实施例公开的一种终端设备的结构示意图。如图所示,该终端设备800包括处理器801、存储器802、通信接口803以及一个或多个程序,其中,上述一个或多个程序被存储在存储器中,并且被配置为由处理器执行,程序中包括用于执行上述方法实施例中的步骤的指令。Please refer to FIG. 8. FIG. 8 is a schematic structural diagram of a terminal device according to an embodiment of the present disclosure. As shown, the terminal device 800 includes a processor 801, a memory 802, a communication interface 803, and one or more programs, wherein the one or more programs are stored in a memory and configured to be executed by a processor, Instructions for performing the steps in the above method embodiments are included in the program.
举例来说,程序包括用于执行以下步骤的指令:For example, the program includes instructions for performing the following steps:
监测终端设备中将游戏应用由前台运行切换到后台运行的切换操作;Monitoring a switching operation in the terminal device that switches the game application from the foreground operation to the background operation;
确定所述游戏应用在所述切换操作的时刻进行数据传输的第一数据量;所述第一数据量包括上行数据量以及下行数据量;Determining, by the game application, a first data amount for data transmission at a time of the switching operation; the first data amount includes an uplink data amount and a downlink data amount;
所述第一数据量大于第一阈值的情况下,限制所述游戏应用在后台运行时可用的网络带宽不超过预设网络带宽阈值。In a case where the first data amount is greater than the first threshold, the network bandwidth available when the game application is running in the background is limited to not exceed a preset network bandwidth threshold.
作为一种可选的实施方式,程序还包括用于执行以下步骤的指令:As an alternative embodiment, the program further includes instructions for performing the following steps:
所述游戏应用在后台运行时进行数据传输的第二数据量小于第二阈值的情况下,提高所述游戏应用的网络带宽占用率;其中,所述游戏应用的网络带宽占用率为所述游戏应用占用的网络带宽与所述终端设备具有的总网络带宽的比值;所述第二阈值小于所述第一阈值。The game application increases the network bandwidth occupancy of the game application when the second data amount of the data transmission in the background operation is less than the second threshold; wherein the network bandwidth occupancy of the game application is the game a ratio of the network bandwidth occupied by the application to the total network bandwidth of the terminal device; the second threshold is less than the first threshold.
作为一种可选的实施方式,程序还包括用于执行以下步骤的指令:As an alternative embodiment, the program further includes instructions for performing the following steps:
提高所述游戏应用的网络带宽占用率之后,所述游戏应用在预设时间间隔内没有进行数据传输的情况下,清除所述游戏应用在后台运行的进程。After the network bandwidth occupancy of the game application is increased, the game application clears the progress of the game application running in the background without performing data transmission within a preset time interval.
作为一种可选的实施方式,程序还包括用于执行以下步骤的指令:As an alternative embodiment, the program further includes instructions for performing the following steps:
统计所述游戏应用在后台运行期间进行数据传输的总数据量;Counting the total amount of data transferred by the game application during background operation;
所述总数据量大于第三阈值的情况下,关闭所述游戏应用在后台运行时使用网络进行数据传输的权限;其中,所述第三阈值大于所述第一阈值。If the total data volume is greater than the third threshold, the right of the game application to use the network for data transmission when running in the background is disabled; wherein the third threshold is greater than the first threshold.
由此可见,图8所描述的终端设备,可以在游戏应用切换到后台运行后可以进行数据传输的情况下,限制游戏应用后台运行可用的网络带宽,避免游戏应用在后台占用过多网络带宽而影响前台运行的应用的网络使用。It can be seen that the terminal device described in FIG. 8 can limit the available network bandwidth of the game application in the background, and prevent the game application from occupying too much network bandwidth in the background, in the case that the game application can perform data transmission after switching to the background operation. A network that affects the applications running in the foreground.
请参阅图9,图9为本申请实施例公开的一种终端设备900的结构示意图。如图9所示,为了便于说明,仅示出了与本申请实施例相关的部分,具体技术细节未揭示的,请参照本申请实施例方法部分。该终端可以为包括手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑等任意终端设备,以终端设备为手机为例:Please refer to FIG. 9. FIG. 9 is a schematic structural diagram of a terminal device 900 according to an embodiment of the present disclosure. As shown in FIG. 9 , for the convenience of description, only the parts related to the embodiments of the present application are shown. If the specific technical details are not disclosed, please refer to the method part of the embodiment of the present application. The terminal can be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), an in-vehicle computer, and the terminal device is used as a mobile phone as an example:
图9示出的是与本申请实施例提供的终端设备相关的手机的部分结构的框图。参考图9,手机包括:射频(Radio Frequency,RF)电路901、存储器902、输入单元903、显示单元904、传感器905、音频电路906、无线保真(wireless fidelity,WiFi)模块907、处理器908、以及电源909等部件。本领域技术人员可以理解,图9中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。FIG. 9 is a block diagram showing a partial structure of a mobile phone related to a terminal device provided by an embodiment of the present application. Referring to FIG. 9, the mobile phone includes: a radio frequency (RF) circuit 901, a memory 902, an input unit 903, a display unit 904, a sensor 905, an audio circuit 906, a wireless fidelity (WiFi) module 907, and a processor 908. And power supply 909 and other components. It will be understood by those skilled in the art that the structure of the handset shown in FIG. 9 does not constitute a limitation to the handset, and may include more or less components than those illustrated, or some components may be combined, or different components may be arranged.
下面结合图9对手机的各个构成部件进行具体的介绍:The following describes the components of the mobile phone in detail with reference to FIG. 9:
RF电路901可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,给处理器908处理;另外,将设计上行的数据发送给基站。通常,RF电路901包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路901还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System of Mobile communication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE)、电子邮件、短消息服务(Short Messaging Service,SMS)等。The RF circuit 901 can be used for transmitting and receiving information or during a call, and receiving and transmitting the signal. Specifically, after receiving the downlink information of the base station, the processor 908 processes the data; and, in addition, transmits the designed uplink data to the base station. Generally, RF circuit 901 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 901 can also communicate with the network and other devices through wireless communication. The above wireless communication may use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (Code Division). Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), E-mail, Short Messaging Service (SMS), and the like.
存储器902可用于存储软件程序以及模块,处理器908通过运行存储在存储器902的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器902可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器902可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 902 can be used to store software programs and modules, and the processor 908 executes various functional applications and data processing of the mobile phone by running software programs and modules stored in the memory 902. The memory 902 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to Data created by the use of the mobile phone (such as audio data, phone book, etc.). Moreover, memory 902 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
输入单元903可用于接收输入的数字或字符信息,以及产生与手机的用户设置以及功能控制有关的键信号输入。具体地,输入单元903可包括触控面板9031。触控面板9031,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板9031上或在触控面板9031附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板9031可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器908,并能接收处理器集合908发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板9031。The input unit 903 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the handset. Specifically, the input unit 903 may include a touch panel 9031. The touch panel 9031, also referred to as a touch screen, can collect touch operations on or near the user (such as the user using a finger, a stylus, or the like on the touch panel 9031 or near the touch panel 9031. Operation), and drive the corresponding connecting device according to a preset program. Optionally, the touch panel 9031 may include two parts: a touch detection device and a touch controller. Wherein, the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information. The processor 908 is provided and can receive commands from the processor set 908 and execute them. In addition, the touch panel 9031 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
显示单元904可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元904可包括显示面板9041,可选的,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting  Diode,OLED)等形式来配置显示面板9041。进一步的,触控面板9031可覆盖显示面板9041,当触控面板9031检测到在其上或附近的触摸操作后,传送给处理器集合908以确定触摸事件的类型,随后处理器集合908根据触摸事件的类型在显示面板9041上提供相应的视觉输出。虽然在图9中,触控面板9031与显示面板9041是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将触控面板9031与显示面板9041集成而实现手机的输入和输出功能。The display unit 904 can be used to display information input by the user or information provided to the user as well as various menus of the mobile phone. The display unit 904 can include a display panel 9041. Alternatively, the display panel 9041 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like. Further, the touch panel 9031 may cover the display panel 9041. When the touch panel 9031 detects a touch operation thereon or nearby, the touch panel 9031 transmits to the processor set 908 to determine the type of the touch event, and then the processor set 908 according to the touch. The type of event provides a corresponding visual output on display panel 9041. Although in FIG. 9 , the touch panel 9031 and the display panel 9041 are used as two independent components to implement the input and input functions of the mobile phone, in some embodiments, the touch panel 9031 and the display panel 9041 may be integrated. Realize the input and output functions of the phone.
手机还可包括至少一种传感器905,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板9041的亮度,接近传感器可在手机移动到耳边时,关闭显示面板9041和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The handset may also include at least one type of sensor 905, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 9041 according to the brightness of the ambient light, and the proximity sensor may close the display panel 9041 and/or when the mobile phone moves to the ear. Or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity. It can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the mobile phone can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, no longer Narration.
音频电路906、扬声器9061,传声器9062可提供用户与手机之间的音频接口。音频电路906可将接收到的音频数据转换后的电信号,传输到扬声器9061,由扬声器9061转换为声音信号输出;另一方面,传声器9062将收集的声音信号转换为电信号,由音频电路906接收后转换为音频数据,再将音频数据输出处理器集合908处理后,经RF电路901以发送给比如另一手机,或者将音频数据输出至存储器902以便进一步处理。 Audio circuit 906, speaker 9061, and microphone 9062 can provide an audio interface between the user and the handset. The audio circuit 906 can transmit the converted electrical data of the received audio data to the speaker 9061, and convert it into a sound signal output by the speaker 9061; on the other hand, the microphone 9062 converts the collected sound signal into an electrical signal, and the audio circuit 906 After receiving, it is converted to audio data, processed by the audio data output processor set 908, sent to, for example, another mobile phone via the RF circuit 901, or outputted to the memory 902 for further processing.
WiFi属于短距离无线传输技术,手机通过WiFi模块907可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。WiFi is a short-range wireless transmission technology, and the mobile phone can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 907, which provides users with wireless broadband Internet access.
处理器908是手机的控制中心,处理器908利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器902内的软件程序和/或模块,以及调用存储在存储器902内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器908可包括一个或多个处理单元;优选的,处理器908可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器908中。The processor 908 is the control center of the handset, and the processor 908 connects various portions of the entire handset using various interfaces and lines, by running or executing software programs and/or modules stored in the memory 902, and recalling stored in the memory 902. Data, perform various functions of the mobile phone and process data to monitor the mobile phone as a whole. Optionally, the processor 908 may include one or more processing units; preferably, the processor 908 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like. The modem processor primarily handles wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 908.
手机还包括给各个部件供电的电源909(比如电池),优选的,电源可以 通过电源管理系统与处理器908逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The handset also includes a power source 909 (e.g., a battery) that powers the various components. Preferably, the power source can be logically coupled to the processor 908 via a power management system to manage functions such as charging, discharging, and power management through the power management system.
尽管未示出,手机还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown, the mobile phone may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
前述图2或图3所示的实施例中,各步骤方法流程可以基于该手机的结构实现。In the foregoing embodiment shown in FIG. 2 or FIG. 3, each step method flow may be implemented based on the structure of the mobile phone.
前述图6或图7所示的实施例中,各单元功能可以基于该手机的结构实现。In the foregoing embodiment shown in FIG. 6 or FIG. 7, each unit function can be implemented based on the structure of the mobile phone.
举例来说,处理器908可以调用存储器902中存储的计算机程序,用于执行以下操作:For example, processor 908 can call a computer program stored in memory 902 for performing the following operations:
监测终端设备中将游戏应用由前台运行切换到后台运行的切换操作;Monitoring a switching operation in the terminal device that switches the game application from the foreground operation to the background operation;
确定所述游戏应用在所述切换操作的时刻进行数据传输的第一数据量;所述第一数据量包括上行数据量以及下行数据量;Determining, by the game application, a first data amount for data transmission at a time of the switching operation; the first data amount includes an uplink data amount and a downlink data amount;
所述第一数据量大于第一阈值的情况下,限制所述游戏应用在后台运行时可用的网络带宽不超过预设网络带宽阈值。In a case where the first data amount is greater than the first threshold, the network bandwidth available when the game application is running in the background is limited to not exceed a preset network bandwidth threshold.
作为一种可选的实施方式,处理器908可以调用存储器902中存储的计算机程序,还用于执行以下操作:As an optional implementation, the processor 908 can call a computer program stored in the memory 902, and is also used to perform the following operations:
所述游戏应用在后台运行时进行数据传输的第二数据量小于第二阈值的情况下,提高所述游戏应用的网络带宽占用率;其中,所述游戏应用的网络带宽占用率为所述游戏应用占用的网络带宽与所述终端设备具有的总网络带宽的比值;所述第二阈值小于所述第一阈值。The game application increases the network bandwidth occupancy of the game application when the second data amount of the data transmission in the background operation is less than the second threshold; wherein the network bandwidth occupancy of the game application is the game a ratio of the network bandwidth occupied by the application to the total network bandwidth of the terminal device; the second threshold is less than the first threshold.
作为一种可选的实施方式,处理器908可以调用存储器902中存储的计算机程序,还用于执行以下操作:As an optional implementation, the processor 908 can call a computer program stored in the memory 902, and is also used to perform the following operations:
提高所述游戏应用的网络带宽占用率之后,所述游戏应用在预设时间间隔内没有进行数据传输的情况下,清除所述游戏应用在后台运行的进程。After the network bandwidth occupancy of the game application is increased, the game application clears the progress of the game application running in the background without performing data transmission within a preset time interval.
作为一种可选的实施方式,处理器908可以调用存储器902中存储的计算机程序,还用于执行以下操作:As an optional implementation, the processor 908 can call a computer program stored in the memory 902, and is also used to perform the following operations:
统计所述游戏应用在后台运行期间进行数据传输的总数据量;Counting the total amount of data transferred by the game application during background operation;
所述总数据量大于第三阈值的情况下,关闭所述游戏应用在后台运行时使用网络进行数据传输的权限;其中,所述第三阈值大于所述第一阈值。If the total data volume is greater than the third threshold, the right of the game application to use the network for data transmission when running in the background is disabled; wherein the third threshold is greater than the first threshold.
作为一种可选的实施方式,在提高所述游戏应用的网络带宽占用率方面,处理器908可以调用存储器902中存储的计算机程序,具体用于执行以下操作:As an optional implementation manner, in improving network bandwidth usage of the game application, the processor 908 may invoke a computer program stored in the memory 902, specifically for performing the following operations:
获取所述游戏应用后台运行时使用网络的其他应用;Obtaining other applications that use the network when the game application is running in the background;
降低所述其他应用对网络带宽的占用以释放目标网络带宽;Reducing the occupation of network bandwidth by the other applications to release the target network bandwidth;
将所述目标网络带宽分配给所述游戏应用使用。The target network bandwidth is allocated for use by the gaming application.
由此可见,图9所描述的终端设备,可以在游戏应用切换到后台运行后可以进行数据传输的情况下,限制游戏应用后台运行可用的网络带宽,避免游戏应用在后台占用过多网络带宽而影响前台运行的应用的网络使用。It can be seen that the terminal device described in FIG. 9 can limit the available network bandwidth of the game application in the background operation, and prevent the game application from occupying excessive network bandwidth in the background, in the case that the game application can perform data transmission after switching to the background operation. A network that affects the applications running in the foreground.
本申请实施例还提供一种计算机存储介质,其中,该计算机存储介质存储用于电子数据交换的计算机程序,该计算机程序使得计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤,所述计算机包括终端设备。The embodiment of the present application further provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, the computer program causing the computer to perform some or all of the steps of any of the methods described in the foregoing method embodiments. The computer includes a terminal device.
本申请实施例还提供一种计算机程序产品,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤。该计算机程序产品可以为一个软件安装包,所述计算机包括终端设备。The embodiment of the present application further provides a computer program product, comprising: a non-transitory computer readable storage medium storing a computer program, the computer program being operative to cause a computer to perform the operations as recited in the foregoing method embodiments Part or all of the steps of either method. The computer program product can be a software installation package, the computer including a terminal device.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。It should be noted that, for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should understand that the present application is not limited by the described action sequence. Because certain steps may be performed in other sequences or concurrently in accordance with the present application. In the following, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above embodiments, the descriptions of the various embodiments are different, and the details that are not detailed in a certain embodiment can be referred to the related descriptions of other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided herein, it should be understood that the disclosed apparatus may be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical or otherwise.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售 或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present application, in essence or the contribution to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a memory. A number of instructions are included to cause a computer device (which may be a personal computer, server or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present application. The foregoing memory includes: a U disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk, and the like, which can store program codes.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、只读存储器(英文:Read-Only Memory,简称:ROM)、随机存取器(英文:Random Access Memory,简称:RAM)、磁盘或光盘等。A person skilled in the art can understand that all or part of the steps of the foregoing embodiments can be completed by a program to instruct related hardware, and the program can be stored in a computer readable memory, and the memory can include: a flash drive , read-only memory (English: Read-Only Memory, referred to as: ROM), random accessor (English: Random Access Memory, referred to as: RAM), disk or CD.
以上对本申请实施例进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The embodiments of the present application have been described in detail above. The principles and implementations of the present application are described in the specific examples. The description of the above embodiments is only used to help understand the method and core ideas of the present application. A person skilled in the art will have a change in the specific embodiments and the scope of the application according to the idea of the present application. In summary, the content of the present specification should not be construed as limiting the present application.

Claims (20)

  1. 一种网络管理方法,其特征在于,包括:A network management method, comprising:
    终端设备监测将游戏应用由前台运行切换到后台运行的切换操作;The terminal device monitors a switching operation of switching the game application from the foreground operation to the background operation;
    确定所述游戏应用在所述切换操作的时刻进行数据传输的第一数据量;所述第一数据量包括上行数据量以及下行数据量;Determining, by the game application, a first data amount for data transmission at a time of the switching operation; the first data amount includes an uplink data amount and a downlink data amount;
    所述第一数据量大于第一阈值的情况下,限制所述游戏应用在后台运行时可用的网络带宽不超过预设网络带宽阈值。In a case where the first data amount is greater than the first threshold, the network bandwidth available when the game application is running in the background is limited to not exceed a preset network bandwidth threshold.
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 further comprising:
    所述游戏应用在后台运行时进行数据传输的第二数据量小于第二阈值的情况下,提高所述游戏应用的网络带宽占用率;其中,所述游戏应用的网络带宽占用率为所述游戏应用占用的网络带宽与所述终端设备具有的总网络带宽的比值;所述第二阈值小于所述第一阈值。The game application increases the network bandwidth occupancy of the game application when the second data amount of the data transmission in the background operation is less than the second threshold; wherein the network bandwidth occupancy of the game application is the game a ratio of the network bandwidth occupied by the application to the total network bandwidth of the terminal device; the second threshold is less than the first threshold.
  3. 根据权利要求2所述的方法,其特征在于,所述提高所述游戏应用的网络带宽占用率,包括:The method of claim 2, wherein the increasing the network bandwidth usage of the game application comprises:
    获取所述游戏应用后台运行时使用网络的其他应用;Obtaining other applications that use the network when the game application is running in the background;
    降低所述其他应用对网络带宽的占用以释放目标网络带宽;Reducing the occupation of network bandwidth by the other applications to release the target network bandwidth;
    将所述目标网络带宽分配给所述游戏应用使用。The target network bandwidth is allocated for use by the gaming application.
  4. 根据权利要求1~3中任意一项所述的方法,其特征在于,所述限制所述游戏应用在后台运行时可用的网络带宽不超过预设网络带宽阈值,包括:The method according to any one of claims 1 to 3, wherein the limiting the network bandwidth available to the game application when running in the background does not exceed a preset network bandwidth threshold, including:
    所述终端设备接入的网络为移动通信网络的情况下,限制所述游戏应用在后台运行时可用的网络带宽不超过所述网络带宽阈值。In the case that the network accessed by the terminal device is a mobile communication network, the network bandwidth available when the game application is running in the background is limited to not exceed the network bandwidth threshold.
  5. 根据权利要求4所述的方法,其特征在于,所述方法还包括:The method of claim 4, wherein the method further comprises:
    所述终端设备接入的网络为无线局域网络,则不对所述游戏应用在后台使用网络进行网速限制。The network accessed by the terminal device is a wireless local area network, and the network application is not used in the background to limit the network speed.
  6. 根据权利要求1~3任一项所述的方法,其特征在于,所述限制所述游戏应用在后台运行时可用的网络带宽不超过预设网络带宽阈值,包括:The method according to any one of claims 1 to 3, wherein the network bandwidth that is available when the game application is running in the background does not exceed a preset network bandwidth threshold, and includes:
    监测当前连接的AP的信号强度,并在当前接入的AP的信号强度小于预设信号强度阈值的情况下,对所述游戏应用后台运行时可用的网络带宽进行限制。The signal strength of the currently connected AP is monitored, and if the signal strength of the currently accessed AP is less than the preset signal strength threshold, the network bandwidth available for the background operation of the game application is limited.
  7. 根据权利要求4所述的方法,其特征在于,所述方法还包括:The method of claim 4, wherein the method further comprises:
    提高所述游戏应用的网络带宽占用率之后,所述游戏应用在预设时间间隔 内没有进行数据传输的情况下,清除所述游戏应用在后台运行的进程。After the network bandwidth occupancy of the game application is increased, the game application clears the progress of the game application running in the background without performing data transmission within a preset time interval.
  8. 根据权利要求7所述的方法,其特征在于,所述方法还包括:The method of claim 7, wherein the method further comprises:
    统计所述游戏应用在后台运行期间进行数据传输的总数据量;Counting the total amount of data transferred by the game application during background operation;
    所述总数据量大于第三阈值的情况下,关闭所述游戏应用在后台运行时使用网络进行数据传输的权限;其中,所述第三阈值大于所述第一阈值。If the total data volume is greater than the third threshold, the right of the game application to use the network for data transmission when running in the background is disabled; wherein the third threshold is greater than the first threshold.
  9. 根据权利要求2-8任一项所述的方法,其特征在于,所述网络带宽占用率为所述游戏应用占用的网络带宽与所述终端设备具有的总网络带宽的比值。The method according to any one of claims 2-8, wherein the network bandwidth occupancy is a ratio of a network bandwidth occupied by the game application to a total network bandwidth of the terminal device.
  10. 一种网络管理装置,其特征在于,应用于终端设备,所述网络管理装置包括:A network management device, which is applied to a terminal device, where the network management device includes:
    监测单元,用于监测所述终端设备将游戏应用由前台运行切换到后台运行的切换操作;a monitoring unit, configured to monitor, by the terminal device, a switching operation of switching a game application from a foreground operation to a background operation;
    确定单元,用于确定所述游戏应用在所述切换操作的时刻进行数据传输的第一数据量;所述第一数据量包括上行数据量以及下行数据量;a determining unit, configured to determine a first data amount that the game application performs data transmission at a time of the switching operation; the first data amount includes an uplink data amount and a downlink data amount;
    控制单元,用于在所述第一数据量大于第一阈值的情况下,限制所述游戏应用在后台运行时可用的网络带宽不超过预设网络带宽阈值。And a control unit, configured to limit, when the first data amount is greater than the first threshold, a network bandwidth that is available when the game application is running in the background does not exceed a preset network bandwidth threshold.
  11. 根据权利要求10所述的网络管理装置,其特征在于,所述网络管理装置还包括:The network management device according to claim 10, wherein the network management device further comprises:
    调整单元,用于所述游戏应用在后台运行时进行数据传输的第二数据量小于第二阈值的情况下,提高所述游戏应用的网络带宽占用率;其中,所述游戏应用的网络带宽占用率为所述游戏应用占用的网络带宽与所述终端设备具有的总网络带宽的比值;所述第二阈值小于所述第一阈值。And an adjusting unit, configured to increase a network bandwidth occupancy of the game application, where the game application uses a network bandwidth occupied by the game application, where the second data amount of data transmission is less than a second threshold And a ratio of a network bandwidth occupied by the game application to a total network bandwidth of the terminal device; the second threshold is less than the first threshold.
  12. 根据权利要求11所述的网络管理装置,其特征在于,所述调整单元,包括:The network management device according to claim 11, wherein the adjustment unit comprises:
    获取子单元,用于获取所述游戏应用后台运行时使用网络的其他应用;Obtaining a subunit, configured to acquire other applications that use the network when the game application runs in the background;
    释放子单元,用于降低所述其他应用对网络带宽的占用以释放目标网络带宽;Release a subunit for reducing the occupation of network bandwidth by the other application to release the target network bandwidth;
    分配子单元,用于将所述目标网络带宽分配给所述游戏应用使用。An allocation subunit is configured to allocate the target network bandwidth to the game application for use.
  13. 根据权利要求10~12中任意一项所述的网络管理装置,其特征在于,A network management device according to any one of claims 10 to 12, characterized in that
    所述控制单元,具体用于所述终端设备接入的网络为移动通信网络的情况下,限制所述游戏应用在后台运行时可用的网络带宽不超过所述网络带宽阈值。The control unit, specifically for the network that the terminal device accesses is a mobile communication network, limits the network bandwidth available when the game application is running in the background does not exceed the network bandwidth threshold.
  14. 根据权利要求13所述的网络管理装置,其特征在于,所述控制单元 还具体用于:The network management device according to claim 13, wherein the control unit is further configured to:
    所述终端设备接入的网络为无线局域网络,则不对所述游戏应用在后台使用网络进行网速限制。The network accessed by the terminal device is a wireless local area network, and the network application is not used in the background to limit the network speed.
  15. 根据权利要求10~12任一项所述的网络管理装置,其特征在于,在所述限制所述游戏应用在后台运行时可用的网络带宽不超过预设网络带宽阈值方面,所述控制单元具体用于:The network management apparatus according to any one of claims 10 to 12, wherein the control unit is specific to the network bandwidth available when the game application is restricted to run in the background does not exceed a preset network bandwidth threshold. Used for:
    监测当前连接的AP的信号强度,并在当前接入的AP的信号强度小于预设信号强度阈值的情况下,对所述游戏应用后台运行时可用的网络带宽进行限制。The signal strength of the currently connected AP is monitored, and if the signal strength of the currently accessed AP is less than the preset signal strength threshold, the network bandwidth available for the background operation of the game application is limited.
  16. 根据权利要求13所述的网络管理装置,其特征在于,所述网络管理装置还包括:The network management device according to claim 13, wherein the network management device further comprises:
    清除单元,用于所述调整单元提高所述游戏应用的网络带宽占用率之后,所述游戏应用在预设时间间隔内没有进行数据传输的情况下,清除所述游戏应用在后台运行的进程。a clearing unit, configured to: after the adjusting unit increases the network bandwidth occupancy of the game application, the game application clears a process running by the game application in the background without performing data transmission within a preset time interval.
  17. 根据权利要求16所述的网络管理装置,其特征在于,所述网络管理装置还包括:The network management device according to claim 16, wherein the network management device further comprises:
    统计单元,用于统计所述游戏应用在后台运行期间进行数据传输的总数据量;a statistical unit, configured to count the total amount of data transmitted by the game application during data transmission in the background;
    关闭单元,用于所述总数据量大于第三阈值的情况下,关闭所述游戏应用在后台运行时使用网络进行数据传输的权限;其中,所述第三阈值大于所述第一阈值。And a closing unit, configured to: when the total data volume is greater than the third threshold, turn off the permission of the game application to use the network for data transmission when running in the background; wherein the third threshold is greater than the first threshold.
  18. 一种终端设备,其特征在于,包括处理器、存储器、通信接口以及一个或多个程序,其中,所述一个或多个程序被存储在所述存储器中,并且被配置为由所述处理器执行,所述程序包括用于执行权利要求1至9任意一项方法中的步骤的指令。A terminal device, comprising: a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be configured by the processor Executing, the program comprises instructions for performing the steps of the method of any one of claims 1 to 9.
  19. 一种计算机可读存储介质,其特征在于,其存储用于电子数据交换的计算机程序,其中,所述计算机程序使得计算机执行如权利要求1至9任意一项所述的方法,所述计算机包括终端设备。A computer readable storage medium storing a computer program for electronic data exchange, wherein the computer program causes a computer to perform the method of any one of claims 1 to 9, the computer comprising Terminal Equipment.
  20. 一种计算机程序产品,其特征在于,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如权利要求1-9任一项所述的方法。A computer program product, comprising: a non-transitory computer readable storage medium storing a computer program, the computer program being operative to cause a computer to perform as claimed in any one of claims 1-9 The method described.
PCT/CN2018/110122 2017-10-25 2018-10-12 Network management method and related products WO2019080732A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201711020630.5A CN107634867A (en) 2017-10-25 2017-10-25 Network management and Related product
CN201711020630.5 2017-10-25

Publications (1)

Publication Number Publication Date
WO2019080732A1 true WO2019080732A1 (en) 2019-05-02

Family

ID=61106413

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/110122 WO2019080732A1 (en) 2017-10-25 2018-10-12 Network management method and related products

Country Status (2)

Country Link
CN (1) CN107634867A (en)
WO (1) WO2019080732A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110489344A (en) * 2019-08-02 2019-11-22 Oppo广东移动通信有限公司 Engine test method and Related product
CN112671672A (en) * 2020-12-16 2021-04-16 深圳Tcl新技术有限公司 Application flow control method, device, equipment and readable storage medium
CN117640410A (en) * 2024-01-26 2024-03-01 深圳市迈腾电子有限公司 Functional unit deconstruction method and device based on functional network family calculation force self-adaption

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107634867A (en) * 2017-10-25 2018-01-26 广东欧珀移动通信有限公司 Network management and Related product
CN108769192B (en) * 2018-05-29 2022-01-14 努比亚技术有限公司 Game bandwidth regulation and control method, device and computer readable storage medium
CN109316743A (en) * 2018-07-31 2019-02-12 努比亚技术有限公司 A kind of game control method, terminal and computer readable storage medium
CN109358963A (en) * 2018-08-21 2019-02-19 奇酷互联网络科技(深圳)有限公司 Mobile terminal and storage device and the method, apparatus for adjusting game performance
CN112714907B (en) * 2018-11-08 2023-08-11 深圳市欢太科技有限公司 Method and device for filtering during application freezing and electronic equipment
CN111722919A (en) * 2019-03-21 2020-09-29 北京小米移动软件有限公司 Method and device for running background application program, storage medium and electronic equipment
CN112039713B (en) * 2020-09-09 2023-04-18 北京时信互联网络科技有限公司 Data transmission method and system for cloud computing and meeting user requirements

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101788926A (en) * 2009-12-28 2010-07-28 中兴通讯股份有限公司 Resource allocation method and device for switching J2ME (Java 2 Micro Edition) application platform
CN103024825A (en) * 2011-09-26 2013-04-03 中国移动通信集团公司 Method and device of distributing network source among multiple applications of terminal
WO2014200631A1 (en) * 2013-06-11 2014-12-18 Seven Networks, Inc. Optimizing keepalive and other background traffic in a wireless network
CN107634867A (en) * 2017-10-25 2018-01-26 广东欧珀移动通信有限公司 Network management and Related product
CN107770381A (en) * 2017-10-25 2018-03-06 广东欧珀移动通信有限公司 Network management and Related product

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7373500B2 (en) * 2003-04-15 2008-05-13 Sun Microsystems, Inc. Secure network processing
US8909807B2 (en) * 2005-04-07 2014-12-09 Opanga Networks, Inc. System and method for progressive download using surplus network capacity
CN103780447B (en) * 2012-10-23 2016-02-17 腾讯科技(深圳)有限公司 A kind of flow control methods and device
CN103746876B (en) * 2013-12-31 2017-08-01 迈普通信技术股份有限公司 A kind of bandwidth traffic detection method and system based on business
CN105700930B (en) * 2016-02-22 2019-10-01 青岛海信移动通信技术股份有限公司 The application acceleration method and device of embedded OS

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101788926A (en) * 2009-12-28 2010-07-28 中兴通讯股份有限公司 Resource allocation method and device for switching J2ME (Java 2 Micro Edition) application platform
CN103024825A (en) * 2011-09-26 2013-04-03 中国移动通信集团公司 Method and device of distributing network source among multiple applications of terminal
WO2014200631A1 (en) * 2013-06-11 2014-12-18 Seven Networks, Inc. Optimizing keepalive and other background traffic in a wireless network
CN107634867A (en) * 2017-10-25 2018-01-26 广东欧珀移动通信有限公司 Network management and Related product
CN107770381A (en) * 2017-10-25 2018-03-06 广东欧珀移动通信有限公司 Network management and Related product

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110489344A (en) * 2019-08-02 2019-11-22 Oppo广东移动通信有限公司 Engine test method and Related product
CN112671672A (en) * 2020-12-16 2021-04-16 深圳Tcl新技术有限公司 Application flow control method, device, equipment and readable storage medium
CN112671672B (en) * 2020-12-16 2023-12-08 深圳Tcl新技术有限公司 Application flow control method, device, equipment and readable storage medium
CN117640410A (en) * 2024-01-26 2024-03-01 深圳市迈腾电子有限公司 Functional unit deconstruction method and device based on functional network family calculation force self-adaption
CN117640410B (en) * 2024-01-26 2024-04-12 深圳市迈腾电子有限公司 Functional unit deconstruction method and device based on functional network family calculation force self-adaption

Also Published As

Publication number Publication date
CN107634867A (en) 2018-01-26

Similar Documents

Publication Publication Date Title
WO2019080732A1 (en) Network management method and related products
WO2020164475A1 (en) Data distribution method and apparatus, mobile terminal, and storage medium
CN108632930B (en) Network searching control method and device and mobile terminal
CN110036661B (en) Uplink data transmission method, terminal, network side equipment and system
CN107736000B (en) Method for interaction between terminal and network equipment and terminal
WO2016150331A1 (en) Method and device for operating game client
WO2015058656A1 (en) Live broadcast control method and main broadcast device
CN107707768B (en) Processing method for running game application and related product
EP3471450B1 (en) Network bandwidth management method, terminal and computer storage medium
TW201532422A (en) Method and device for rendering image and electronic apparatus thereof
CN107800585B (en) Network communication method and device, and message pushing method and device
WO2015035870A1 (en) Multiple cpu scheduling method and device
WO2018126409A1 (en) Signaling transmission method and device
CN111919505B (en) Data processing method and terminal
CN109922504B (en) Data distribution method and related product
WO2020164521A1 (en) Data packet distribution method and apparatus, and mobile terminal and storage medium
CN107770381B (en) Network management method and related product
CN110955510B (en) Isolation processing method and related device
WO2018126407A1 (en) Data transmission method and device
CN108391288B (en) Method for optimizing communication service quality and mobile terminal
CN107749763B (en) WI-FI transmission control method, mobile terminal and routing equipment
WO2018227541A1 (en) Power control method for link and related product
CN112667339B (en) Screen refresh rate setting method, terminal and computer readable medium
WO2018103379A1 (en) Terminal monitoring method and mobile terminal
CN115412988A (en) Method and device for terminal equipment to select cell, terminal equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18870230

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18870230

Country of ref document: EP

Kind code of ref document: A1