WO2020118498A1 - Service control method and electronic device - Google Patents

Service control method and electronic device Download PDF

Info

Publication number
WO2020118498A1
WO2020118498A1 PCT/CN2018/120159 CN2018120159W WO2020118498A1 WO 2020118498 A1 WO2020118498 A1 WO 2020118498A1 CN 2018120159 W CN2018120159 W CN 2018120159W WO 2020118498 A1 WO2020118498 A1 WO 2020118498A1
Authority
WO
WIPO (PCT)
Prior art keywords
service
network
receiving window
value
delay
Prior art date
Application number
PCT/CN2018/120159
Other languages
French (fr)
Chinese (zh)
Inventor
王皓
梁恒辉
姚松平
李锋
郭兴民
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2018/120159 priority Critical patent/WO2020118498A1/en
Priority to CN201880095144.6A priority patent/CN112425201B/en
Publication of WO2020118498A1 publication Critical patent/WO2020118498A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/16Central resource management; Negotiation of resources or communication parameters, e.g. negotiating bandwidth or QoS [Quality of Service]

Definitions

  • This application relates to the field of terminal technology, and in particular, to a method of business control and electronic equipment.
  • terminals such as mobile phones, tablet computers, etc.
  • terminals can support multi-service operation.
  • delay-sensitive services such as online games, video telephony, etc.
  • bandwidth-sensitive services such as application downloads, etc.
  • the transmission delay of the data packet of the delay service increases, which reduces the user experience.
  • the terminal limits the background download rate of the bandwidth sensitive service to ensure the user experience of the delay sensitive service running in the foreground.
  • the background download rate is usually limited to a low value, for example, 500KB/s ⁇ 1MB/s.
  • This application provides a method of business control and electronic equipment, which is helpful when electronic equipment runs both bandwidth-sensitive services and delay-sensitive services under the premise of meeting the delay requirements of delay-sensitive services , To increase the bandwidth resources occupied by bandwidth-sensitive classes, thereby helping to improve the user experience.
  • a service control method includes: an electronic device establishes a connection with a first network and a second network; when the first service and the second service are running, the first service and the The second service is network-isolated, so that the first service monopolizes the first network and the second network with a smaller delay, and the second service monopolizes the first network and the first network
  • the first service is a delay-sensitive service
  • the second service is a bandwidth-sensitive service
  • the electronic device when the electronic device establishes a connection with the first network and the second network, and runs the first service and the second service, the time delay for satisfying the first service does not exceed the preset threshold
  • adjusting the size of the bandwidth resources occupied by the first network by the second service helps to improve the utilization of bandwidth resources, thereby improving the user experience.
  • the electronic device may implement network isolation between the first service and the second service based on the following manner:
  • the electronic device When running the first service and the second service, the electronic device sets the first receiving window to the first value, the second receiving window to the second value, the third receiving window to the third value, and the fourth receiving The window is set to a fourth value; the first value is greater than the second value, the fourth value is greater than the third value, and the second value is not greater than the first threshold, and the third to no greater than the second threshold;
  • the first receiving window is the receiving window of the first service for the link established through the first network
  • the second receiving window is the establishing of the first service for the link established by the second network
  • a receiving window of the link is the receiving window of the second service for the link established through the first network
  • the fourth receiving window is the second service for the passing of the first 2.
  • the above provides only a specific implementation manner of performing network isolation on the first service and the second service.
  • the embodiments of the present application may also implement the first service in other ways. It is isolated from the network of the second service, which is not limited.
  • the embodiments of the present application may dynamically adjust the bandwidth resources occupied by the second network by the second service in the following manner:
  • the embodiments of the present application may dynamically adjust the bandwidth resources occupied by the second network by the second service in the following manner:
  • the electronic device increases the value of the third receiving window according to the first step
  • the electronic device After increasing the value of the third receiving window, the electronic device determines whether the first service exceeds the preset threshold
  • the electronic device when the delay sizes of the first network and the second network change, automatically exchanges the configurations of the first receiving window and the fourth receiving window.
  • the configuration of automatically exchanging the first receiving window and the fourth receiving window can be understood as: exchanging the value of the first receiving window and the value of the second receiving window, and exchanging the third receiving The value of the window and the value of the fourth receiving window.
  • the delay of the first network is greater than the delay of the second network, and the delay of the first network is less than the first The delay of the second network, or the delay of the first network is less than the delay of the second network, the delay of the first network is greater than the delay of the second network, or the delay of the first network is greater than the delay of the second network
  • the difference of the change meets the preset condition, for example, the difference of the change is not less than a preset threshold, or the delay of the first network is less than the second
  • the difference of the change meets a preset condition, for example, the difference of the change is not less than a preset threshold.
  • the electronic device before the preset timer overflows, the electronic device does not trigger the step of automatically swapping the configuration of the first receiving window and the fourth receiving window. Thereby, it helps to avoid frequent exchange of the configuration of the receiving window by the electronic device.
  • the electronic device when the electronic device establishes a connection with the first network and does not establish a connection with the second network, if it is detected that the first service and the second service are running, it prompts The user opens the second network, or automatically opens the second network, and prompts the user that the second network has been opened. Therefore, it helps to improve the interaction between the electronic device and the user, thereby improving the user experience.
  • a service control method includes: establishing a connection between an electronic device and a first network; when running a first service and a second service, giving priority to the first service to occupy the Bandwidth resources of the first network; the first service is a delay-sensitive service, and the second service is a bandwidth-sensitive service; dynamically adjusted under the premise that the delay of the first service does not exceed a preset threshold The second service squeezes bandwidth resources of the first network.
  • the electronic device after giving priority to the resources occupied by the first service, the electronic device can dynamically adjust the bandwidth resources of the first network to be occupied by the second service under the premise that the delay of the first service does not exceed a preset threshold, Helps improve the utilization of bandwidth resources.
  • the electronic device may preferentially make the first service occupy bandwidth resources of the first network in the following manner:
  • the electronic device sets the first receiving window to a first value and the second receiving window to a second value, the first value is greater than the second value, and the second value is not greater than the first threshold;
  • the first receiving window is a receiving window of the first service for a link established through the first network
  • the second receiving window is a establishing window of the second service for the first network The receive window of the link.
  • the above provides only a specific implementation method that preferentially causes the first service to occupy the bandwidth resources of the first network.
  • the embodiments of the present application may also implement the priority implementation in other ways.
  • the first service occupies the bandwidth resources of the first network, which is not limited.
  • the electronic device may dynamically adjust the second service to occupy bandwidth resources of the first network in the following manner:
  • the electronic device determines whether the delay of the first service is greater than the preset threshold; if the delay of the first service is less than the preset threshold, then according to the first step, continue to increase the size of the second receiving window, And execute the step of determining whether the delay of the first service is greater than the preset threshold amount; if the delay of the first service is greater than the preset threshold, then reduce the second receiving window according to the second step Size and execute the step of determining whether the delay of the first service is greater than the preset threshold amount.
  • the electronic device preferentially makes the first service occupy the bandwidth resources of the first network, first increase the size of the second receiving window according to the first step length, and then judge Whether the delay of the first service is greater than a preset threshold.
  • an electronic device provided by an embodiment of the present application includes a processor and a memory; wherein the memory is used to store program instructions; and the processor is used to call program instructions stored in the memory , Perform the following steps:
  • the first service and the second service When the first service and the second service are running, perform network isolation on the first service and the second service, so that the first service monopolizes the delay between the first network and the second network In a small network, the second service monopolizes the first network and the second network with a large delay.
  • the first service is a delay-sensitive service and the second service is a bandwidth-sensitive service. business;
  • dynamically scheduling the second service occupies bandwidth resources of the first network.
  • the first service and the second service may be network-isolated based on the following manner:
  • the first receiving window is set to the first value
  • the second receiving window is set to the second value
  • the third receiving window is set to the third value
  • the fourth receiving window is set Is a fourth value
  • the first value is greater than the second value
  • the fourth value is greater than the third value
  • the second value is not greater than the first threshold, and the third to no greater than the second threshold
  • the first receiving window is the receiving window of the first service for the link established through the first network
  • the second receiving window is the establishing of the first service for the link established by the second network
  • a receiving window of the link is the receiving window of the second service for the link established through the first network
  • the fourth receiving window is the second service for the passing of the first 2.
  • the second service can be dynamically adjusted to occupy bandwidth resources of the first network in the following manner:
  • the second service may also be used to dynamically adjust the bandwidth resource occupied by the first network in the following manner:
  • the processor is further configured to automatically exchange the first receiving window and the fourth receiving window when the delay sizes of the first network and the second network change Configuration.
  • the processor is further configured not to trigger the step of automatically swapping the configuration of the first receiving window and the fourth receiving window before the preset timer overflows.
  • the processor is further configured to detect that the first service and the first service are running when a connection is established with the first network and a connection is not established with the second network For the second service, the user is prompted to open the second network, or the second network is automatically opened, and the user is prompted to open the second network.
  • an electronic device includes the processor and a memory; wherein the memory is used to store program instructions; and the processor is used to call the program instructions stored in the memory and execute The following steps:
  • the first service and the second service are running, priority is given to making the first service occupy bandwidth resources of the first network;
  • the first service is a delay-sensitive service, and the second service is a bandwidth-sensitive service business;
  • the second service is dynamically adjusted to occupy bandwidth resources of the first network.
  • the first service when the first service and the second service are running, the first service may be preferentially used to occupy the bandwidth resources of the first network in the following manner:
  • the first receiving window is a receiving window of the first service for a link established through the first network
  • the second receiving window is a establishing window of the second service for the first network The receive window of the link.
  • the second service may be dynamically adjusted to occupy bandwidth resources of the first network in the following manner:
  • the delay of the first service is less than the preset threshold, then according to the first step, continue to increase the size of the second receiving window, and execute to determine whether the delay of the first service is greater than the preset threshold A step of;
  • the processor is further configured to determine whether the delay of the first service is greater than the preset threshold after the first service takes up bandwidth resources of the first network first. 2. The size of the receiving window.
  • an electronic device provided by an embodiment of the present application includes: one or more processors, memory, multiple application programs, and one or more program instructions; wherein, one or more program instructions are stored in In the memory, when the computer program is executed by the electronic device, the foregoing aspects of the embodiments of the present application and any possible design methods involved in the various aspects are implemented.
  • a chip provided in an embodiment of the present application is coupled to a memory in an electronic device, so that the chip calls program instructions stored in the memory when the chip is running to implement the above aspects of the embodiment of the present application And any possible design method involved in various aspects.
  • a computer storage medium stores program instructions, and when the program instructions run on an electronic device, the electronic device performs the above-mentioned aspects and aspects of the embodiments of the present application Any possible design method involved.
  • a computer program product of an embodiment of the present application when the computer program product runs on an electronic device, causes the electronic device to perform the above-mentioned various aspects of the embodiment of the present application and any possibility involved in the various aspects Design method.
  • an embodiment of the present application provides an electronic device, which includes a processor and a memory; its memory is used to store program instructions; and its processor is used to invoke the program instructions stored in the memory to execute the above-mentioned various embodiments of the present application Aspects and any possible design methods involved in each aspect.
  • FIG. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
  • FIG. 2 is a schematic diagram of an application scenario according to an embodiment of the present application.
  • FIG. 3 is a schematic diagram of a user interface according to an embodiment of this application.
  • FIG. 4 is a schematic diagram of another user interface according to an embodiment of the present application.
  • FIG. 5 is a schematic flowchart of a service control method according to an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of another electronic device according to an embodiment of the present application.
  • At least one refers to one or more, and “multiple” refers to two or more.
  • “And/or” describes the relationship of the related objects, indicating that there can be three relationships.
  • a and/or B can represent the following three relationships: A exists alone, A and B exist simultaneously, and B exists alone.
  • a and B can be singular or plural.
  • the character “/” generally indicates that the related object is a "or” relationship.
  • “At least one (item) of the following” or similar expressions refer to any combination of these items, including any combination of a single item (s) or a plurality of items (s).
  • At least one (a) of a, b, or c can represent: a, b, c, a and b, a and c, b and c, or a, b and c, where a, b, c It can be single or multiple.
  • the embodiments of the present application are applied to electronic devices.
  • the electronic device of the embodiment of the present application may support access to one network, or may support simultaneous access to two or more networks.
  • electronic devices support the MPTCP protocol and can simultaneously access a cellular network and a wireless fidelity (WiFi) network.
  • WiFi wireless fidelity
  • the electronic device can also access two cellular networks at the same time.
  • the electronic device can also simultaneously access two cellular networks and one WiFi network. It should be noted that, taking the electronic device accessing the first network as an example, after the electronic device completes the first network access, the electronic device establishes a connection with the first network, and the electronic device is in the first network connected state.
  • the electronic device in the embodiment of the present application may be a portable electronic device, such as a mobile phone, a tablet computer, a wearable device (such as a smart watch) with wireless communication function, an in-vehicle device, and the like.
  • portable electronic devices include, but are not limited to Or portable electronic devices of other operating systems.
  • the above-mentioned portable electronic device may also be, for example, a laptop computer with a touch-sensitive surface (for example, a touch panel) or the like. It should also be understood that, in some other embodiments of the present application, the electronic device may also be a desktop computer with a touch-sensitive surface (such as a touch panel).
  • the electronic device 100 includes a processor 110, an internal memory 121, an external memory interface 122, an antenna 1, a mobile communication module 131, an antenna 2, a wireless communication module 132, an audio module 140, a speaker 140A, a receiver 140B, a microphone 140C, a headset Interface 140D, display screen 151, subscriber identification module (SIM) card interface 152, camera 153, button 154, sensor module 160, universal serial bus (USB) interface 170, charging management module 180, Power management module 181 and battery 182.
  • the electronic device 100 may further include a motor, an indicator, and the like.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (ISP), a controller, and a video Codec, digital signal processor (DSP), baseband processor, and/or neural-network processor (NPU), etc.
  • application processor application processor
  • AP application processor
  • modem processor graphics processor
  • ISP image signal processor
  • controller a controller
  • video Codec video Codec
  • DSP digital signal processor
  • NPU neural-network processor
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in the processor 110 may be a cache memory.
  • the memory may be used to store instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Therefore, it helps to avoid repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
  • the internal memory 121 may be used to store computer executable program code.
  • the executable program code includes instructions.
  • the processor 110 executes instructions stored in the internal memory 121 to execute various functional applications and data processing of the electronic device 100.
  • the internal memory 121 may include a storage program area and a storage data area.
  • the storage program area may store an operating system, at least one function required application programs (such as sound playback function, image playback function, etc.).
  • the storage data area may store data (such as audio data, phone book, etc.) created during use of the electronic device 100 and the like.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and so on.
  • a non-volatile memory such as at least one disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and so on.
  • the external memory interface 122 may be used to connect an external memory card (for example, a Micro SD card) to achieve expansion of the storage capacity of the electronic device 100.
  • the external memory card communicates with the processor 110 through the external memory interface 122 to realize the data storage function. For example, save music, video and other files in an external memory card.
  • Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in the electronic device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • the antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 131 can provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the electronic device 100.
  • the mobile communication module 131 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), and so on.
  • the mobile communication module 131 can receive the electromagnetic wave signal from the antenna 1 and filter, amplify, etc. the received electromagnetic wave signal, and transmit it to the modem processor for demodulation.
  • the mobile communication module 131 can also amplify the signal modulated by the modulation and demodulation processor and convert it into an electromagnetic wave signal via the antenna 1 to radiate it out.
  • at least part of the functional modules of the mobile communication module 131 may be provided in the processor 110.
  • at least part of the functional modules of the mobile communication module 131 and at least part of the modules of the processor 110 may be provided in the same device.
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low-frequency baseband signal to be transmitted into a high-frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal.
  • the demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low-frequency baseband signal is processed by the baseband processor and then passed to the application processor.
  • the application processor outputs a sound signal through an audio device (not limited to a speaker 140A, a receiver 140B, etc.), or displays an image or video through a display screen 151.
  • the modem processor may be an independent device.
  • the modem processor may be independent of the processor 110, and may be set in the same device as the mobile communication module 131 or other functional modules.
  • the wireless communication module 132 can provide WLAN (such as WiFi network), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), frequency modulation (FM), and other applications that are applied to the electronic device 100.
  • WLAN such as WiFi network
  • Bluetooth Bluetooth
  • GNSS global navigation satellite system
  • FM frequency modulation
  • FM frequency modulation
  • FM frequency modulation
  • the wireless communication module 132 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 132 receives the electromagnetic wave signal via the antenna 2, frequency-modulates and filters the electromagnetic wave signal, and sends the processed signal to the processor 110.
  • the wireless communication module 132 can also receive the signal to be transmitted from the processor 110, perform frequency modulation and amplification on it, and convert it to an electromagnetic wave signal via the antenna 2 to radiate it out.
  • the antenna 1 of the electronic device 100 and the mobile communication module 131 are coupled, and the antenna 2 and the wireless communication module 132 are coupled so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include a global mobile communication system (global system for mobile communications, GSM), general packet radio service (general packet radio service (GPRS), code division multiple access (CDMA), broadband) Wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long-term evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
  • the GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a beidou navigation system (BDS), and a quasi-zenith satellite system (quasi -zenith satellite system (QZSS) and/or satellite-based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS beidou navigation system
  • QZSS quasi-zenith satellite system
  • SBAS satellite-based augmentation systems
  • the electronic device 100 may implement audio functions through an audio module 140, a speaker 140A, a receiver 140B, a microphone 140C, a headphone interface 140D, an application processor, and the like. For example, music playback, recording, etc.
  • the audio module 140 can be used to convert digital audio information into an analog audio signal output, and also to convert analog audio input into a digital audio signal.
  • the audio module 140 may also be used to encode and decode audio signals.
  • the audio module 140 may be disposed in the processor 110, or some functional modules of the audio module 140 may be disposed in the processor 110.
  • the speaker 140A also called “speaker” is used to convert audio electrical signals into sound signals.
  • the electronic device 100 can listen to music through the speaker 140A or answer hands-free calls.
  • the receiver 140B also known as "handset" is used to convert audio electrical signals into sound signals.
  • the user uses the electronic device 100 to answer a call, the user can answer the voice received by the electronic device 100 through the mobile communication module 131 or the wireless communication module 132 by bringing the receiver 140B close to the human ear.
  • the microphone 140C also called “microphone”, “microphone”, is used to convert sound signals into electrical signals.
  • the user uses the electronic device 100 to make a call or send a voice, the user can approach the microphone 140C through the mouth of the person, and the microphone 140C can be used to collect the user's voice, and then convert the user's voice into an electrical signal.
  • the electronic device 100 may be provided with at least one microphone 140C. In some embodiments, the electronic device 100 may be provided with two microphones 140C. In addition to collecting sound signals, it may also implement a noise reduction function. In other embodiments, the electronic device 100 may also be provided with three, four, or more microphones 140C to achieve sound signal collection, noise reduction, identify sound sources, and implement directional recording functions.
  • the headset interface 140D is used to connect wired headsets.
  • the headphone jack 140D can be a USB jack 130 or a 3.5mm open mobile electronic device (open mobile terminal) platform (OMTP) standard interface, the American Telecommunications Industry Association (cellular telecommunications industry association of the USA, CTIA) standard interface, etc. .
  • OMTP open mobile electronic device
  • CTIA cellular telecommunications industry association of the USA, CTIA
  • the electronic device 100 can realize a display function through a GPU, a display screen 151, an application processor, and the like.
  • the GPU is a microprocessor for image processing, and connects the display screen 151 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations, and is used for graphics rendering.
  • the processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
  • the display screen 151 may be used to display images, videos, and the like.
  • the display screen 151 may include a display panel.
  • the display panel may use a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light-emitting diode or an active matrix organic light-emitting diode (active-matrix organic light) emitting diodes (AMOLED), flexible light-emitting diodes (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (QLED), etc.
  • the electronic device 100 may include 1 or N display screens 151, where N is a positive integer greater than 1.
  • the electronic device 100 can realize a shooting function through an ISP, a camera 153, a video codec, a GPU, a display screen 151, an application processor, and the like.
  • the ISP can be used to process the data fed back by the camera 153. For example, when taking a picture, the shutter is opened, and the optical signal is collected by the camera 153, and then the camera 153 converts the collected optical signal into an electrical signal, and transmits the electrical signal to an ISP for processing, which is converted into an image visible to the naked eye.
  • ISP can also optimize the algorithm of image noise, brightness and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be set in the camera 193.
  • the camera 153 may be used to capture still images or video.
  • the camera 153 includes a lens and an image sensor.
  • the object generates an optical image through the lens and projects it onto the graphic sensor.
  • the image sensor may be a charge coupled device (charge coupled device, CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CCD charge coupled device
  • CMOS complementary metal-oxide-semiconductor
  • the image sensor converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
  • the ISP outputs the digital image signal to the DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other format image signals.
  • the electronic device 100 may include 1 or N cameras 153, where N is a positive integer greater than 1.
  • the key 154 may include a power-on key, a volume key, and the like.
  • the key 154 may be a mechanical key. It can also be a touch button.
  • the electronic device 100 can receive key input and generate key signal input related to user settings and function control of the electronic device 100.
  • the sensor module 160 may include one or more sensors.
  • the sensor module 160 may further include an environmental sensor, a distance sensor, a proximity light sensor, a bone conduction sensor, and the like.
  • the touch sensor 160A may also be referred to as a “touch panel”.
  • the touch sensor 160A may be disposed on the display screen 151, and the touch sensor 160A and the display screen 151 constitute a touch screen, also referred to as a "touch screen”.
  • the touch sensor 160A is used to detect a touch operation acting on or near it.
  • the touch sensor 160A may pass the detected touch operation to the application processor to determine the type of touch event.
  • the visual output related to the touch operation can be provided through the display screen 151.
  • the touch sensor 160A may also be disposed on the surface of the electronic device 100, which is different from the location where the display screen 151 is located.
  • the fingerprint sensor 160B can be used to collect fingerprints.
  • the electronic device 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, access to application lock, fingerprint taking pictures, fingerprint answering calls, and the like.
  • the gyro sensor 160C may be used to determine the movement posture of the electronic device 100.
  • the angular velocity of the electronic device 100 around three axes ie, x, y, and z axes
  • the gyro sensor 160C can be used for shooting anti-shake.
  • the gyro sensor 160C detects the shaking angle of the electronic device 100, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to counteract the shaking of the electronic device 100 through reverse movement to achieve anti-shake.
  • the gyro sensor 160C can also be used for navigation and somatosensory game scenes.
  • the pressure sensor 160D is used to sense the pressure signal and can convert the pressure signal into an electrical signal.
  • the pressure sensor 160D may be provided on the display screen 151.
  • the capacitive pressure sensor may be at least two parallel plates with conductive materials. When force is applied to the pressure sensor 160D, the capacitance between the electrodes changes.
  • the electronic device 100 determines the strength of the pressure according to the change in capacitance.
  • the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 160D.
  • the electronic device 100 may calculate the touched position according to the detection signal of the pressure sensor 160D.
  • touch operations that act on the same touch position but have different touch operation intensities may correspond to different operation instructions. For example, when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
  • the acceleration sensor 160E can detect the magnitude of acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device is stationary, the size and direction of gravity can be detected. It can also be used to recognize the posture of the electronic device 100, and be used in applications such as horizontal and vertical screen switching and pedometers.
  • the processor 110 may further include one or more interfaces.
  • the interface may be a SIM card interface 152.
  • the interface may also be a USB interface 170.
  • the interface may also be an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit integrated audio (inter-integrated circuit, sound, I2S) interface, a pulse code modulation (pulse code modulation (PCM) interface, universal asynchronous transceiver transmission (Universal asynchronous receiver/transmitter, UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input/output (GPIO) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit integrated audio
  • PCM pulse code modulation
  • UART universal asynchronous transceiver transmission
  • mobile industry processor interface mobile industry processor interface
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • the processor 110 may be connected to different modules of the electronic device 100 through an interface, so that the electronic device 100 can implement different functions. For example, taking pictures and processing. It should be noted that the embodiment of the present application does not limit the connection method of the interface in the electronic device 100.
  • the SIM card interface 152 may be used to connect a SIM card.
  • the SIM card can be inserted into or removed from the SIM card interface 152 to achieve contact and separation with the electronic device 100.
  • the electronic device 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
  • the SIM card interface 152 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple SIM cards can be inserted into the same SIM card interface 152 at the same time. The types of the multiple cards may be the same or different.
  • the SIM card interface 152 can also be compatible with different types of SIM cards.
  • the SIM card interface 152 may also be compatible with external memory cards.
  • the electronic device 100 interacts with the network through the SIM card to realize functions such as call and data communication.
  • the electronic device 100 uses eSIM, that is, an embedded SIM card.
  • the eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
  • the electronic device 100 can access a cellular network through the SIM card inserted in the SIM card interface 152.
  • the electronic device 100 can access a cellular network through the two SIM cards inserted in the SIM card interface 152, respectively.
  • the USB interface 170 is an interface conforming to the USB standard specification.
  • the USB interface 170 may include a Mini USB interface, a Micro USB interface, a USB Type C interface, and so on.
  • the USB interface 170 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and peripheral devices. It can also be used to connect headphones and play audio through the headphones.
  • the USB interface 170 can also be used to connect other electronic devices, such as augmented reality (augmented reality, AR) devices.
  • the charging management module 180 is used to receive charging input from the charger.
  • the charger may be a wireless charger or a wired charger.
  • the charging management module 180 may receive the charging input of the wired charger through the USB interface 170.
  • the charging management module 180 may receive wireless charging input through the wireless charging coil of the electronic device 100. While the charging management module 180 charges the battery 182, it can also supply power to the electronic device 100 through the power management module 181.
  • the power management module 181 is used to connect the battery 182, the charging management module 180 and the processor 110.
  • the power management module 181 receives input from the battery 182 and/or the charging management module 180, and supplies power to the processor 110, internal memory 121, external memory, display screen 151, camera 153, mobile communication module 131, wireless communication module 132, and the like.
  • the power management module 181 can also be used to monitor parameters such as battery capacity, number of battery cycles, battery health status (leakage, impedance) and so on.
  • the power management module 181 may also be disposed in the processor 110.
  • the power management module 181 and the charging management module 180 may also be set in the same device.
  • FIG. 1 is only an example.
  • the electronic device 100 of the embodiment of the present application may have more or less components than shown in the figure, may combine two or more components, or may have different component configurations.
  • the various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
  • the electronic device 100 can support multiple applications. For example, one or more of the following applications: drawing, presentation, word processing, games, phone, video player, music player, email, instant messaging, photo management, camera, browser, calendar, clock, payment, Application market, desktop and health management applications.
  • the electronic device 100 may run one or more applications at the same time.
  • the electronic device 100 may run a game in the foreground when downloading an application from the application market in the background.
  • the electronic device 100 downloads a video from a video player in the background, a video call can be made at the foreground through timely messaging.
  • the electronic device 100 may also run a music player to play music in the background, and perform a payment operation through a payment application in the foreground.
  • the electronic device 100 may also run a voice chat application in the background, and download a video through a video player in the foreground.
  • downloading an application from the application market in the background, running a game in the foreground, downloading a video from a video player in the background, and making a video call through timely message sending and receiving in the foreground are all services that the electronic device 100 runs.
  • different services running simultaneously on the electronic device 100 may include delay-sensitive services and bandwidth-sensitive services.
  • delay-sensitive services have high requirements for delay. When the delay exceeds a set threshold, it may cause the electronic device 100 to run into a stagnation, which may affect the user experience.
  • a typical delay-sensitive service may be Online games, video calls, WeChat voice calls, etc.
  • bandwidth-sensitive services require more bandwidth resources and are expected to occupy the entire bandwidth.
  • typical bandwidth-sensitive services can be data download, such as downloading application programs from the application market or downloading videos from video applications.
  • the bandwidth-sensitive services may seize the bandwidth resources of the delay-sensitive services, resulting in stalls in the delay-sensitive services. Reduce user experience.
  • the electronic device 100 when the electronic device 100 establishes a connection with two or more networks and runs both delay-sensitive services and bandwidth-sensitive services, it can perform delay-sensitive services and bandwidth-sensitive services first.
  • Network isolation makes the delay-sensitive business exclusive to two or more networks that the electronic device 100 accesses at the same time, and the network with a smaller delay and the bandwidth-sensitive business exclusive to a network different from the delay-sensitive business. Do not affect each other.
  • the electronic device 100 may support access to the first network and the second network.
  • the electronic device 100 can simultaneously access the first network and the second network, so that the electronic device 100 can establish connections with the first network and the second network, respectively.
  • the electronic device 100 accesses the second network when the first network is turned off and the second network is turned on.
  • the electronic device 100 accesses the first network when the first network is turned on and the second network is turned off.
  • the first network may be a cellular network or a WLAN network.
  • the second network may be a cellular network or a WLAN network.
  • the cellular network may be a 2G network, a 3G network, or a 4G network.
  • the WLAN network may be a WiFi network, a hotspot, and so on. It should be noted that, in the embodiment of the present application, the electronic device 100 may be connected to the first network through wireless means, or may be connected to the first network through wired means; the electronic device 100 may be connected to the second network through wireless means , You can also connect to the second network by wire.
  • the first network is a wireless network such as a cellular network, a WLAN network
  • the electronic device 100 may access the first network in response to a user's operation of opening the first network.
  • the operation for the user to open the first network may be an operation for the user to turn on the virtual button that controls the first network to be turned on or off, or a shortcut gesture operation, or a voice command, which is not limited.
  • the electronic device 100 may also trigger an event to automatically turn on the first network and access the first network.
  • the event that automatically triggers the opening of the first network may be an event such as the electronic device 100 starting a video player.
  • the embodiment of the present application does not limit the event that automatically triggers the opening of the first network.
  • the first network is a network accessed by the electronic device 100 in a wired manner
  • the electronic device 100 may access the first network when it detects that the wired access network port is connected to the router.
  • Embodiment 1 When the electronic device 100 establishes a connection with the first network and the second network respectively, and is running both delay-sensitive services and bandwidth-sensitive services: It should be noted that delay-sensitive services can be run in the foreground , Can also be run in the background, bandwidth-sensitive services can be run in the foreground or in the background.
  • the electronic device 100 may first establish a connection with the first network and the second network, and may start the delay sensitive service and the bandwidth sensitive service before starting the delay sensitive service and the bandwidth sensitive service. , And then establish a connection with the first network and the second network.
  • the embodiment of the present application does not limit the sequence of establishing a connection with the first network, establishing a connection with the second network, starting a delay-sensitive service, and starting a bandwidth-sensitive service. Taking the delay-sensitive service as an example, the electronic device 100 can start the delay-sensitive service in response to the user's operation.
  • the user's operation may be that the user touches the icon of the game application, or that the user touches the virtual button of the voice call, and may also be a voice command, a shortcut gesture, and the like.
  • the touch sensor 160 of the electronic device 100 detects the user's touch operation, it may be reported to the processor 110, and the processor 110 may start a delay sensitive service.
  • the audio module 140 can parse the voice instruction, and if it is determined to be a voice instruction to start a delay-sensitive service, then process The processor 110 reports an instruction to start a delay-sensitive service. After receiving the instruction to start the delay-sensitive service, the processor 110 performs an operation to start the delay-sensitive service.
  • the electronic device 100 When the electronic device 100 establishes a connection with the first network and the second network respectively, and runs both delay-sensitive services and bandwidth-sensitive services, it can perform network isolation on delay-sensitive services and bandwidth-sensitive services , So that delay-sensitive services alone occupy the first network and the second network with smaller delays, and bandwidth-sensitive services alone occupy the first network and the second network with larger delays, thereby making the delay sensitive Similar services and bandwidth-sensitive services may not affect each other. Then, under the premise that the delay of the delay-sensitive service is not greater than the threshold, dynamically adjust the bandwidth-sensitive service to occupy the bandwidth resources of the network with the smaller delay in the first network and the second network, thereby helping to improve Utilization of bandwidth resources and increase the background download rate of bandwidth-sensitive services.
  • different thresholds may be set for different delay-sensitive services.
  • the threshold corresponding to online games is 150 ms
  • the threshold corresponding to online telephony may be 300 ms.
  • the size of the threshold set for different delay-sensitive services can be set according to actual conditions or experience. In other embodiments, the same threshold may be set for different delay-sensitive services.
  • the processor 110 in the electronic device 100 establishes a connection with the first network and the second network respectively, and runs both delay-sensitive services and bandwidth-sensitive services, it is sensitive to delay-sensitive services and bandwidth-sensitive services. Services are network-isolated and dynamically adjust bandwidth-sensitive services to occupy bandwidth resources of the first network and the second network with smaller delays.
  • the delay-sensitive services and the bandwidth-sensitive services are not started, or the bandwidth-sensitive services and the delay-sensitive services are not started It can run the started service on the first network and the second network at the same time, or it can run the started service on the network with the better signal strength in the first network and the second network, which is not limited.
  • the electronic device 100 may execute the service control method in the embodiments of the present application. It should be noted that, after starting the delay sensitive service and the bandwidth sensitive service, the electronic device 100 runs the delay sensitive service and the bandwidth sensitive service.
  • the electronic device 100 establishes a connection with both the first network and the second network, and runs both the first service and the For the second service, the first service and the second service can be network-isolated based on the following methods:
  • the reception window of the first service for the link established through the first network is set to a larger value p, and the first service is targeted to pass through the second network
  • the reception window of the established link is set to a small value m, so that the value of the reception window reported by the electronic device to the first network is p, and the value of the reception window reported to the second network is m;
  • the receiving window of the second service for the link established through the first network is set to a small value n, and the receiving window of the second service to the link established through the second network is set to a large value q, so that the electronic
  • the value of the receiving window reported by the device to the first network is n, and the value of the receiving window reported to the second network is q; thus, the first service can monopolize the first network, and the second service can monopolize the second network.
  • the network of the first service and the second service are isolated.
  • the values of m and n in the embodiments of the present application may be the same or different.
  • the value of m and n can be 0.
  • the values of p and q can be the same or different.
  • the values of p and q may be the upper limit of the interface window supported by the electronic device 100. Among them, p is greater than m, q is greater than n.
  • the values of p and q can refer to the setting method of the receiving window value in the prior art, or p can be set to a value greater than a certain threshold, and q can be set to a value greater than a certain threshold, or P and q are directly set as the upper limit value of the receiving window, etc.
  • the embodiment of the present application does not limit the setting method of p and q.
  • the value of m is not greater than the first threshold
  • the value of n is not greater than the second threshold, where the first threshold and the second threshold may be preset, may be the same, or may be different, so that Helps simplify implementation.
  • the values of m and n may be directly set to fixed values, for example, 0.
  • the receiving window of the first service for the link established through the first network is simply referred to as the first receiving window
  • the receiving window of the first service for the link established through the second network is simply referred to as the second receiving window
  • the second The receiving window of the service for the link established through the first network is simply referred to as the third receiving window
  • the receiving window of the second service for the link established through the second network is simply referred to as the fourth receiving window.
  • the value of the first receiving window is used to indicate how much data the electronic device 100 can receive through the link established by the first network.
  • the larger the value of the first receiving window the more data the electronic device 100 can receive through the link established by the first network, and the smaller the value of the first receiving window, the electronic device 100 can pass the first network The less data received by the established link. For example, when the value of the first receiving window is 0, it indicates that the electronic device 100 no longer receives data of the first service through the link established by the first network.
  • the first receiving window and the fourth receiving window can be set to a larger value, and the second receiving window and the third receiving window can be set to a smaller value, thereby enabling the first service
  • the first network can be monopolized and the second service can monopolize the second network to achieve network isolation.
  • the link established through the first network may also be referred to as a round trip time (RTT) relative
  • RTT round trip time
  • the smaller MPTCP-subflow (subflow) and the link established through the second network may be called MPTCP-subflow with a relatively larger RTT.
  • the second service may gradually occupy the remaining bandwidth resources of the first network by gradually increasing the value of the third receiving window.
  • the electronic device 100 may increase the value of the third receiving window according to the first step.
  • the first step length may be half of the upper limit of the third receiving window, or may be one quarter of the upper limit of the third receiving window. It can be preset according to different business types, or can be set or modified by the user.
  • the electronic device 100 determines whether the delay of the first service exceeds a preset threshold, and if it does not exceed, may continue to increase the value of the third receiving window. After increasing the value of the third receiving window, if the delay of the first service exceeds the preset threshold, then decrease the value of the third receiving window, and then continue to determine whether the delay of the first service exceeds the preset threshold . It should be noted that the electronic device 100 may reduce the value of the third receiving window according to the second step. For example, the second step size may be half of the upper limit of the third receiving window, or may be one quarter of the upper limit of the third receiving window. The first step size may be the same as the second step size, or may be different from the second step size.
  • the value of the third receiving window may continue to be increased. If the value of the third receiving window is reduced and the delay of the first service exceeds the preset threshold, the value of the third receiving window may be further reduced. In this way, the electronic device 100 can realize the maximum utilization of resources of the second service when the first service meets the delay requirement, thereby helping to improve the utilization of bandwidth resources.
  • the delay of the first service does not exceed the preset threshold and the value of the third receiving window is the maximum value (for example, when the value of the third receiving window is a1, the first service The delay of does not exceed the preset threshold; when the value of the third receiving window is increased to a1 + the first step length, the delay of the first service exceeds the preset threshold, then a1 is the maximum value of the third receiving window.
  • the delay of the first service does not exceed the preset threshold; when the value of the third receiving window is increased to a1 + the first step length, the delay of the first service exceeds the preset Threshold; so when the value of the third receiving window is reduced to a1+first step-second step (where the second step is not equal to the first step), the delay of the first service does not exceed the preset threshold, then a1 + first step length-the second step length is the maximum value of the third receiving window.), suspending the dynamic adjustment of the value of the third receiving window, thereby helping to save power consumption of the electronic device. Specifically, when the processor 110 of the electronic device 100 detects that the delay of the first service does not exceed a preset threshold and the value of the third receiving window is the maximum value, it suspends the dynamic adjustment of the value of the third receiving window .
  • the electronic device 100 may also stop adjusting the value of the third receiving window after the second service is suspended or completed, or after the first service exits, thereby stopping dynamically adjusting the second service to occupy the second Network bandwidth resources.
  • the delay of detecting the first service exceeds a preset threshold, or after the preset time expires, or when other preset conditions are detected, the above detection and adjustment process may be started again.
  • the configuration of the receiving window may be automatically exchanged .
  • the configuration of the automatic exchange receiving window is: automatically exchange the values of the first receiving window and the second receiving window, and the values of the third receiving window and the fourth receiving window, so as to implement link switching.
  • the electronic device 100 may perform the steps of automatically exchanging the values of the first receiving window and the second receiving window, and the values of the third receiving window and the fourth receiving window through the processor 110, or may be performed by a dedicated processor , This is not limited.
  • the first receiving window is the receiving window of the first service for the link established through the WiFi network
  • the second receiving window is the receiving window of the first service for the link established by the 4G network
  • the third receiving window is the second service
  • the fourth receiving window is the receiving window of the second service for the link established by the 4G network.
  • the value of the first receiving window is set to the first value, and the value of the second receiving window is set to the second value, then when the network delay changes to : After the delay of the WiFi network is greater than that of the 4G network, the value of the first receiving window is set to the second value, and the value of the second receiving window is set to the first value.
  • the value of the third receiving window is set to the third value, and the value of the fourth receiving window is set to the fourth value, then when the network delay changes to: WiFi network After the delay of is greater than that of the 4G network, the value of the third receiving window is set to the fourth value, and the value of the fourth receiving window is set to the third value.
  • the exchange of the configuration of the receiving window is adjusted on a minute level to reduce the impact on the services operated by the electronic device 100.
  • the electronic device 100 may set a timer after the configuration of the receiving window is exchanged, and do not detect the network delay before the timer overflows, thereby ensuring that the electronic device 100 does not frequently exchange the configuration of the receiving window.
  • the electronic device 100 may set a timer after the configuration of the receiving window is exchanged to detect the delay of the network before the timer overflows, but after detecting a relative change in the delay of the network, if If the timer does not overflow, no processing is performed. If the timer overflows, the configuration of the receiving window is exchanged, thereby ensuring that the electronic device 100 does not frequently exchange the configuration of the receiving window.
  • the electronic device 100 can distinguish between delay-sensitive services and bandwidth-sensitive services by tokens held by the running services. Therefore, it helps to simplify the manner in which the electronic device 100 distinguishes between delay-sensitive services and bandwidth-sensitive services. For example, delay-sensitive services hold red tokens, and bandwidth-sensitive services hold blue tokens.
  • the electronic device 100 may look up the service type corresponding to the package name of the started application from the database.
  • the database may be set by the electronic device manufacturer in the electronic device 100 in advance, or may be obtained by the electronic device 100 from the network.
  • the database includes the correspondence between the application package name and the service type. For example, the service type corresponding to the package name of WeChat is a delay-sensitive service, the service type corresponding to the package name in the application market is a bandwidth-sensitive service, and the service type corresponding to the package name of King Glory is a delay-sensitive service. Then, the electronic device 100 marks the activated application according to the found service type corresponding to the package name of the activated application.
  • the process of marking the started application in the embodiment of the present application is the process of issuing a token for the started application.
  • a red token corresponds to a delay-sensitive service
  • a blue token corresponds to a bandwidth-sensitive service.
  • 0 can represent a red token
  • 1 can represent a blue token.
  • the embodiments of the present application may also distinguish delay-sensitive services and bandwidth-sensitive services in other ways, which is not limited.
  • the download speed is 10 Mb/s, where the service type corresponding to the iQiyi package name is a bandwidth-sensitive service , Holding a blue token, in this case, the electronic device 100 starts King Glory in the foreground in response to the user's operation to open King Glory, where the service type corresponding to King Glory's package name is a delay-sensitive service, Holding the red token, the electronic device 100 starts the technical solution of the embodiment of the present application when the business holding the blue token and the business holding the red token run simultaneously, thereby enabling the king of the electronic device 100 to run in the foreground Glory keeps flowing smoothly, and the speed of iQIYI downloading videos may gradually increase, for example, from 1Mb/s, 3Mb/s, ..., 8MB/s and then tend to be dynamically stable, so that the electronic device 100
  • Embodiment 2 The electronic device 100 supports simultaneous access to the first network and the second network, and currently only a connection is established with the first network, the first service is started, and the second service is not started.
  • the first service is a delay-sensitive service
  • the second service is a bandwidth-sensitive service; or, the first service is a bandwidth-sensitive service, and the second service is a delay-sensitive service.
  • the electronic device 100 supports simultaneous access to the first network and the second network, if only a connection with the first network is currently established , And the first service is started, in response to the operation of starting the second service, the user may be prompted to open the second network, or the second network may be automatically opened, and the user is prompted to open the second network.
  • the first network is a cellular network
  • the second network may be a WiFi network.
  • the first network is a cellular network
  • the second network may be a cellular network or a WiFi network.
  • the electronic device 100 may prompt the user to open the second network or prompt the user that the second network has been opened by displaying prompt information on the display screen 150.
  • the electronic device 100 displays a prompt box 300, where the prompt box 300 includes prompt information, and the prompt information is used to prompt the user whether to open the second network.
  • the electronic device 100 may open the second network in response to the user's operation of selecting the virtual button "Yes" and not open the second network in response to the user's operation of selecting the virtual button "No".
  • the first network currently accessed by the electronic device 150 is a cellular network and two SIM cards are installed in the electronic device 100, as shown in FIG.
  • the electronic device 100 displays a prompt box 400, and the prompt box 400 includes Prompt information, which is used to prompt the user to open the second network.
  • the electronic device 100 may open the WiFi network in response to the user's operation of selecting the virtual button 401 and open another cellular network in response to the user's operation of selecting the virtual button 402. If the electronic device 100 does not detect that the user selects the virtual button 401 or the virtual button 402 after exceeding the preset duration, the WiFi network may be automatically turned on, or another cellular network may be automatically turned on, or the second network may not be turned on. For another example, the electronic device 100 may prompt the user to open the second network by voice or prompt the user that the second network has been opened, etc.
  • the manner in which the electronic device 100 prompts the user in the embodiment of the present application is not limited.
  • the electronic device 100 automatically shuts down the second network after one of the bandwidth-sensitive business and the delay-sensitive business is shut down or suspended, or after the bandwidth-sensitive business download is completed. Thereby helping to avoid waste of traffic and saving costs.
  • the electronic device 100 when the electronic device 100 supports simultaneous access to the first network and the second network, if only a connection with the first network is currently established and the first service is started, the electronic device 100 responds to the After the operation, after starting the second service, if the delay of the first service exceeds a preset threshold, or the transmission rate of the second service does not meet the user's needs, the user is prompted to open the second network or automatically open the second network. If the delay of the first service does not exceed the preset threshold and the transmission rate of the second service meets user requirements, the user is no longer prompted to open the second network or the second network is no longer automatically opened.
  • the electronic device 100 After opening the second network, the electronic device 100 can execute the service control method in the embodiment of the present application.
  • the electronic device 100 can execute the service control method in the embodiment of the present application.
  • the service control method for a specific implementation manner, refer to Embodiment 1, and details are not described herein again.
  • Embodiment 3 The electronic device 100 can only communicate through a connection established by one network.
  • the electronic device 100 When the electronic device 100 establishes a connection with the first network, if it runs both bandwidth-sensitive services and delay-sensitive services, it can first ensure that the delay-sensitive services occupy the bandwidth resources of the first network, and then meet In the case of delay requirements of the delay-sensitive services, dynamically adjust the bandwidth-sensitive services to occupy the remaining bandwidth resources of the first network, so as to maximize the utilization of the bandwidth resources of the first network by the bandwidth-sensitive services. Specifically, as described in the above embodiment, by setting the receiving window of the delay-sensitive service to a larger value and setting the receiving window of the bandwidth-sensitive service to a smaller value, the delay-sensitive service is guaranteed.
  • the delay does not exceed the preset threshold, increase the bandwidth occupied by bandwidth-sensitive services until the delay-sensitive service reaches the preset threshold, or it can be dynamically adjusted (the delay of the delay-sensitive service does not exceed the preset threshold)
  • Setting a threshold increases the bandwidth occupied by bandwidth-sensitive services. If the bandwidth of delay-sensitive services exceeds the threshold, it reduces the bandwidth occupied by bandwidth-sensitive services.
  • the first network may be a cellular network or a wireless network, such as a WiFi network, personal identification, etc., or a wired network.
  • the electronic device 100 may start the bandwidth-sensitive service first and then the delay-sensitive service after establishing a connection with the first network, and may also start the delay-sensitive service first and then start the bandwidth-sensitive service.
  • This application The embodiment does not limit the order of starting bandwidth-sensitive services and delay-sensitive services.
  • the following takes the first service as a delay-sensitive service and the second service as a bandwidth-sensitive service as an example.
  • the receiving window of the first service may be set to x
  • the receiving window of the second service may be set to y , Where x can be a large value or can be set based on the prior art, and y is a small value, such as 0.
  • the electronic device 100 gradually increases the value of the reception window of the second service, so that the second service gradually squeezes the bandwidth resources of the first network, thereby helping To improve the utilization of bandwidth resources and increase the background download rate of bandwidth-sensitive services.
  • the electronic device 100 may also establish a connection with the first network after starting the delay-sensitive services and/or bandwidth-sensitive services, or may start the delay-sensitive services and/or bandwidth-sensitive services. Before business, establish a connection with the first network.
  • embodiments of the present application provide a method for service control, which may be in an electronic device having the hardware structure shown in FIG. 1.
  • the electronic device can simultaneously access the first network and the second network.
  • FIG. 5 it is a schematic flowchart of the service control method according to an embodiment of the present application, and includes the following steps.
  • Step 501 the electronic device 100 establishes a connection with the first network and the second network, and monitors the delay size of the first network and the second network.
  • the embodiment of the present application does not limit the order in which the electronic device 100 establishes a connection with the first network and monitors the delay sizes of the first network and the second network.
  • step 502 the electronic device 100 recognizes that the first service and the second service are started, where the first service is a delay-sensitive service and the second service is a bandwidth-sensitive service.
  • the embodiment of the present application does not limit the order of step 501 and step 502, nor the order of starting the first service and the second service.
  • the electronic device 100 can identify the different services started by the token. For example, when the electronic device 100 detects a service running a blue token and a red token, it recognizes that the first service and the second service are started. Among them, the red token is used to identify delay-sensitive services, and the blue token is used to identify bandwidth-sensitive services.
  • Step 503 the electronic device 100 performs network isolation on the first service and the second service, so that the first service monopolizes the network with a smaller delay in the first network and the second network, and the second service monopolizes the first network and the second network Networks with large delays.
  • the electronic device 100 can achieve the first by setting the first receiving window to q, the second receiving window to m, the third receiving window to n, and the fourth receiving window to p
  • the business and the second business are separated by the network.
  • the values of q and p can be larger values, such as the upper limit of the receiving window, and can also be set based on the setting method in the prior art, and the values of m and n are smaller values, such as 0, It should be noted that the values of m and n may be the same or different.
  • the first receiving window is the receiving window of the first service for the link established through the first network
  • the second receiving window is the receiving window of the first service for the link established through the second network
  • the third receiving window is the receiving window of the second service for the link established by the first network
  • the fourth receiving window is the receiving window of the second service for the link established by the second network.
  • the electronic device 100 may increase the value of the third receiving window according to the first step, and then perform step 504. After the network isolation of the service and the second service, step 504 is directly executed, which is not limited.
  • step 504 the electronic device 100 determines whether the delay of the first service exceeds a preset threshold. If not, step 505 is performed, otherwise step 506 is performed.
  • step 505 the electronic device 100 increases the value of the third receiving window according to the first step, and then executes step 504 again.
  • step 506 the electronic device 100 decreases the value of the third receiving window according to the second step size, and then executes step 504 again.
  • Step 507 the electronic device 100 automatically exchanges the values of the first receiving window and the second receiving window after detecting that the relative change in the relative size of the delays of the first network and the second network meets the preset condition, and the third The values of the receiving window and the fourth receiving window, and then step 504 is executed.
  • the delay from the first network to the second network is larger, and the delay from the first network to the second network is smaller; the second network is from the first network.
  • the smaller delay becomes larger than the first network delay; or the difference in the relative change of the delay reaches a threshold; or the relative change in the delay reaches a certain time threshold.
  • the method provided by the embodiments of the present application is introduced from the perspective of an electronic device as an execution subject.
  • the electronic device may include a hardware structure and/or a software module, and implement the above functions in the form of a hardware structure, a software module, or a hardware structure plus a software module. Whether one of the above functions is executed in a hardware structure, a software module, or a hardware structure plus a software module depends on the specific application of the technical solution and design constraints.
  • FIG. 6 shows an electronic device 600 provided by the present application, which is used to execute the methods provided by the above embodiments of the present application.
  • the electronic device 600 includes a processor 601 and a memory 602.
  • the memory 602 is used to store program instructions
  • the processor 601 is used to call the program instructions stored in the memory 602 to implement the service control method in the embodiment of the present application. For example, if the memory 602 stores program instructions for executing the method of business control shown in FIG. 5, the processor 601 calls the program instructions stored in the memory 602 for executing the method of business control shown in FIG. 5, and executes the business shown in FIG. Control Method.
  • the processor 601 may be a general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), an existing programmable gate array (FPGA), field programmable gate array (FPGA) ) Or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
  • DSP digital signal processor
  • ASIC application specific integrated circuit
  • FPGA existing programmable gate array
  • FPGA field programmable gate array
  • the methods, steps, and logical block diagrams disclosed in the embodiments of the present application may be implemented or executed.
  • the general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
  • the steps of the method disclosed in conjunction with the embodiments of the present application may be directly embodied and executed by a hardware decoding processor, or may be executed and completed by a combination of hardware and software modules in the decoding processor.
  • Software modules can be located in random access memory (RAM), flash memory, read-only memory (ROM), programmable read-only memory or electrically erasable programmable memory, registers, etc.
  • Storage media The storage medium is located in the memory.
  • the processor reads the instructions in the memory and combines the hardware to complete the steps of the above method.
  • Computer-readable media includes computer storage media and communication media, where communication media includes any medium that facilitates transfer of a computer program from one place to another.
  • a storage medium may be any available medium that can be accessed by a computer.
  • computer readable media may include RAM, ROM, electrically erasable programmable read-only memory (electrically erasable programmable read only memory, EEPROM), compact disc read-only (memory, CD- ROM) or other optical disk storage, magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer. Also. Any connection can become a computer-readable medium as appropriate.
  • disks and discs include compact discs (CDs), laser discs, optical discs, digital video discs (DVDs), floppy disks, and Blu-ray discs, wherein Disks usually copy data magnetically, while disks use lasers to copy data optically.
  • CDs compact discs
  • DVDs digital video discs
  • floppy disks floppy disks
  • Blu-ray discs wherein Disks usually copy data magnetically, while disks use lasers to copy data optically.

Abstract

A service control method and an electronic device, relating to the technical field of terminals. The method comprises: an electronic device connecting to a first network and a second network; during operation of a first service and a second service, implementing network isolation between the first service and the second service, such that the first service monopolizes the network having less delay in the first network and the second network, and the second service monopolizes the network having longer delay in the first network and the second network, the first service being a delay-sensitive service and the second service being a bandwidth-sensitive service; and if a delay of the first service does not exceed a preset threshold, dynamically controlling the second service to occupy a bandwidth resource of the first network. The technical solution increases utilization of bandwidth resources, thereby improving user experience.

Description

一种业务控制的方法及电子设备Business control method and electronic equipment 技术领域Technical field
本申请涉及终端技术领域,特别涉及一种业务控制的方法及电子设备。This application relates to the field of terminal technology, and in particular, to a method of business control and electronic equipment.
背景技术Background technique
随着终端技术的进步,终端(例如手机、平板电脑等)可以支持多业务运行。现有技术中,当时延敏感类业务(例如网络游戏、视频电话等)和带宽敏感类业务(例如应用下载等)并存时,为了避免时延敏感类业务和带宽敏感类业务资源竞争,导致时延类业务的数据包的传输时延增大,降低用户体验,终端通过限制带宽敏感类业务的后台下载速率,来保证前台运行的时延敏感类业务的用户体验。目前,通常情况下将后台下载速率限制到一个较低的值,例如,500KB/s~1MB/s。With the advancement of terminal technology, terminals (such as mobile phones, tablet computers, etc.) can support multi-service operation. In the prior art, when delay-sensitive services (such as online games, video telephony, etc.) and bandwidth-sensitive services (such as application downloads, etc.) coexist, in order to avoid competition between the resources of delay-sensitive services and bandwidth-sensitive services, resulting in time The transmission delay of the data packet of the delay service increases, which reduces the user experience. The terminal limits the background download rate of the bandwidth sensitive service to ensure the user experience of the delay sensitive service running in the foreground. Currently, the background download rate is usually limited to a low value, for example, 500KB/s ~ 1MB/s.
现有技术中,这种通过限制带宽敏感类业务下载速率,保证时延敏感类业务传输时延的方式,容易导致带宽资源的浪费。In the prior art, this method of ensuring the transmission delay of the delay-sensitive service by limiting the download rate of the bandwidth-sensitive service is likely to cause a waste of bandwidth resources.
发明内容Summary of the invention
本申请提供一种业务控制的方法及电子设备,有助于当电子设备既运行有带宽敏感类业务又运行有时延敏感类业务时,能够在满足时延敏感类业务的时延要求的前提下,提高带宽敏感类占用的带宽资源,从而有助于提高用户体验。This application provides a method of business control and electronic equipment, which is helpful when electronic equipment runs both bandwidth-sensitive services and delay-sensitive services under the premise of meeting the delay requirements of delay-sensitive services , To increase the bandwidth resources occupied by bandwidth-sensitive classes, thereby helping to improve the user experience.
第一方面,本申请实施例的一种业务控制的方法,包括:电子设备与第一网络和第二网络建立连接;当运行有第一业务和第二业务时,对所述第一业务和所述第二业务进行网络隔离,使得所述第一业务独占所述第一网络和所述第二网络中时延较小的网络,所述第二业务独占所述第一网络和所述第二网络中时延较大的网络,所述第一业务为时延敏感类业务,所述第二业务为带宽敏感类业务;并在所述第一业务的时延不超过预设阈值的前提下,动态调整或控制所述第二业务占用所述第一网络的带宽资源。In a first aspect, a service control method according to an embodiment of the present application includes: an electronic device establishes a connection with a first network and a second network; when the first service and the second service are running, the first service and the The second service is network-isolated, so that the first service monopolizes the first network and the second network with a smaller delay, and the second service monopolizes the first network and the first network In a network with a large delay in the second network, the first service is a delay-sensitive service, and the second service is a bandwidth-sensitive service; and if the delay of the first service does not exceed a preset threshold Next, dynamically adjust or control the second service to occupy bandwidth resources of the first network.
本申请实施例中由于当电子设备与第一网络和第二网络建立了连接,且运行有第一业务和第二业务的前提下,能够在满足第一业务的时延不超过预设阈值的前提下,调整第二业务占用第一网络的带宽资源的大小,从而有助于提高带宽资源的利用率,进而提高用户体验。In the embodiment of the present application, when the electronic device establishes a connection with the first network and the second network, and runs the first service and the second service, the time delay for satisfying the first service does not exceed the preset threshold Under the premise, adjusting the size of the bandwidth resources occupied by the first network by the second service helps to improve the utilization of bandwidth resources, thereby improving the user experience.
在一种可能的设计中,电子设备可以基于下列方式实现对所述第一业务和所述第二业务进行网络隔离:In a possible design, the electronic device may implement network isolation between the first service and the second service based on the following manner:
电子设备当运行有第一业务和第二业务时,将第一接收窗口设置为第一值,第二接收窗口设置为第二值,将第三接收窗口设置为第三值,将第四接收窗口设置为第四值;所述第一值大于第二值,所述第四值大于第三值,且所述第二值不大于第一阈值,所述第三至不大于第二阈值;When running the first service and the second service, the electronic device sets the first receiving window to the first value, the second receiving window to the second value, the third receiving window to the third value, and the fourth receiving The window is set to a fourth value; the first value is greater than the second value, the fourth value is greater than the third value, and the second value is not greater than the first threshold, and the third to no greater than the second threshold;
其中,所述第一接收窗口为所述第一业务针对通过所述第一网络建立的链路的接收窗口,所述第二接收窗口为所述第一业务针对通过所述第二网络建立的链路的接收窗口,所述第三接收窗口为所述第二业务针对通过所述第一网络建立的链路的接收窗口,所述第四接收窗口为所述第二业务针对通过所述第二网络建立的链路的接收窗口。Wherein, the first receiving window is the receiving window of the first service for the link established through the first network, and the second receiving window is the establishing of the first service for the link established by the second network A receiving window of the link, the third receiving window is the receiving window of the second service for the link established through the first network, and the fourth receiving window is the second service for the passing of the first 2. The receiving window of the link established by the network.
通过上述技术方案,有助于简化对第一业务和第二业务进行网络隔离的实现方式。Through the above technical solution, it is helpful to simplify the implementation manner of performing network isolation on the first service and the second service.
需要说明的是,本申请实施例中,上述提供的仅为一种对第一业务和第二业务进行网络隔离的具体实现方式,此外,本申请实施例还可以通过其它方式实现对第一业务和第二业务的网络隔离,对此不作限定。It should be noted that, in the embodiments of the present application, the above provides only a specific implementation manner of performing network isolation on the first service and the second service. In addition, the embodiments of the present application may also implement the first service in other ways. It is isolated from the network of the second service, which is not limited.
在一种可能的设计中,本申请实施例可以通过以下方式动态调整所述第二业务占用所述第一网络的带宽资源:In a possible design, the embodiments of the present application may dynamically adjust the bandwidth resources occupied by the second network by the second service in the following manner:
判断所述第一业务的时延是否超过所述预设阈值;Judging whether the delay of the first service exceeds the preset threshold;
若否,则按照第一步长,增大所述的第三接收窗口的取值;并在增大所述第三接收窗口的取值后,执行判断所述第一业务的是否超过所述预设阈值的步骤;If not, according to the first step, increase the value of the third receiving window; and after increasing the value of the third receiving window, execute to determine whether the first service exceeds the value The step of presetting the threshold;
若是,则按照第二步长,减小所述第三接收窗口的取值;并在减小所述第三接收窗口的取值后,执行判断所述第一业务的是否超过所述预设阈值的步骤。If yes, reduce the value of the third receiving window according to the second step; and after reducing the value of the third receiving window, execute to determine whether the first service exceeds the preset Threshold steps.
通过上述技术方案,有助于降低实现的复杂性。Through the above technical solutions, it helps to reduce the complexity of implementation.
在一种可能的设计中,本申请实施例可以通过以下方式动态调整所述第二业务占用所述第一网络的带宽资源:In a possible design, the embodiments of the present application may dynamically adjust the bandwidth resources occupied by the second network by the second service in the following manner:
所述电子设备按照第一步长,增大所述的第三接收窗口的取值;The electronic device increases the value of the third receiving window according to the first step;
所述电子设备在增大所述第三接收窗口的取值后,判断所述第一业务的是否超过所述预设阈值;After increasing the value of the third receiving window, the electronic device determines whether the first service exceeds the preset threshold;
若是,则按照第二步长,减小所述第三接收窗口的取值;并在减小所述第三接收窗口的取值后,执行判断所述第一业务的是否超过所述预设阈值的步骤;若否,则按照第一步长,继续增大所述的第三接收窗口的取值;并在增大所述第三接收窗口的取值后,执行判断所述第一业务的是否超过所述预设阈值的步骤。通过上述技术方案,有助于降低实现的复杂性。If yes, reduce the value of the third receiving window according to the second step; and after reducing the value of the third receiving window, execute to determine whether the first service exceeds the preset Threshold step; if not, then continue to increase the value of the third receiving window according to the first step; and after increasing the value of the third receiving window, execute the judgment of the first service Step of whether the preset threshold is exceeded. Through the above technical solutions, it helps to reduce the complexity of implementation.
在一种可能的设计中,所述电子设备当所述第一网络和所述第二网络的时延大小发生变化时,自动交换所述第一接收窗口和所述第四接收窗口的配置。从而有助于简化实现方式。需要说明的是,自动交换所述第一接收窗口和所述第四接收窗口的配置可以理解为:交换所述第一接收窗口的取值和第二接收窗口的取值,以及交换第三接收窗口的取值和所述第四接收窗口的取值。In a possible design, when the delay sizes of the first network and the second network change, the electronic device automatically exchanges the configurations of the first receiving window and the fourth receiving window. This helps simplify implementation. It should be noted that the configuration of automatically exchanging the first receiving window and the fourth receiving window can be understood as: exchanging the value of the first receiving window and the value of the second receiving window, and exchanging the third receiving The value of the window and the value of the fourth receiving window.
需要说明的是,当所述第一网络和所述第二网络的时延大小发生变化可以理解为:第一网络的时延大于第二网络的时延变化为第一网络的时延小于第二网络的时延、或者,第一网络的时延小于第二网络的时延变化为第一网络的时延大于第二网络的时延,或者,第一网络的时延从大于第二网络的时延变化为小于第二网络的时延后,其变化的差值满足预设条件,例如变化的差值不小于某一预设阈值,又或者,第一网络的时延从小于第二网络的时延变化为大于第二网络的时延后,其变化的差值满足预设条件,例如变化的差值不小于某一预设阈值。It should be noted that, when the delay sizes of the first network and the second network change, it can be understood that: the delay of the first network is greater than the delay of the second network, and the delay of the first network is less than the first The delay of the second network, or the delay of the first network is less than the delay of the second network, the delay of the first network is greater than the delay of the second network, or the delay of the first network is greater than the delay of the second network After the delay change of is less than the delay of the second network, the difference of the change meets the preset condition, for example, the difference of the change is not less than a preset threshold, or the delay of the first network is less than the second After the delay change of the network is greater than the delay of the second network, the difference of the change meets a preset condition, for example, the difference of the change is not less than a preset threshold.
在一种可能的设计中,电子设备在预设定时器溢出之前,不触发执行自动交换所述第一接收窗口和所述第四接收窗口的配置的步骤。从而有助于避免电子设备频繁交换接收窗口的配置。In a possible design, before the preset timer overflows, the electronic device does not trigger the step of automatically swapping the configuration of the first receiving window and the fourth receiving window. Thereby, it helps to avoid frequent exchange of the configuration of the receiving window by the electronic device.
在一种可能的设计中,电子设备当与所述第一网络建立连接,与所述第二网络未建立连接时,若检测到运行有所述第一业务和所述第二业务,则提示用户打开所述第二网络、或者自动打开所述第二网络,并提示用户所述第二网络已打开。从而有助于提高电子设备与用户的交互,进而提升用户体验。In a possible design, when the electronic device establishes a connection with the first network and does not establish a connection with the second network, if it is detected that the first service and the second service are running, it prompts The user opens the second network, or automatically opens the second network, and prompts the user that the second network has been opened. Therefore, it helps to improve the interaction between the electronic device and the user, thereby improving the user experience.
第二方面,本申请实施例提供的一种业务控制的方法,包括:电子设备与第一网络建立连接;当运行有第一业务和第二业务时,优先使得所述第一业务占用所述第一网络的带宽资源;所述第一业务为时延敏感类业务,所述第二业务为带宽敏感类业务;在所述第一业务的时延不超过预设阈值的前提下,动态调整所述第二业务挤占所述第一网络的带宽资源。In a second aspect, a service control method provided by an embodiment of the present application includes: establishing a connection between an electronic device and a first network; when running a first service and a second service, giving priority to the first service to occupy the Bandwidth resources of the first network; the first service is a delay-sensitive service, and the second service is a bandwidth-sensitive service; dynamically adjusted under the premise that the delay of the first service does not exceed a preset threshold The second service squeezes bandwidth resources of the first network.
本申请实施例中,由于电子设备在优先考虑第一业务占用的资源后,可以在第一业务的时延不超过预设阈值的前提下,动态调整第二业务挤占第一网络的带宽资源,有助于提高带宽资源的利用率。In the embodiment of the present application, after giving priority to the resources occupied by the first service, the electronic device can dynamically adjust the bandwidth resources of the first network to be occupied by the second service under the premise that the delay of the first service does not exceed a preset threshold, Helps improve the utilization of bandwidth resources.
在一种可能的设计中,电子设备当运行有第一业务和第二业务时,可以通过以下方式优先使得所述第一业务占用所述第一网络的带宽资源:In a possible design, when the first service and the second service are running, the electronic device may preferentially make the first service occupy bandwidth resources of the first network in the following manner:
所述电子设备将第一接收窗口设置为第一值,第二接收窗口设置为第二值,所述第一值大于第二值,且所述第二值不大于第一阈值;The electronic device sets the first receiving window to a first value and the second receiving window to a second value, the first value is greater than the second value, and the second value is not greater than the first threshold;
其中,所述第一接收窗口为所述第一业务针对通过所述第一网络建立的链路的接收窗口,所述第二接收窗口为所述第二业务针对通过所述第一网络建立的链路的接收窗口。Wherein, the first receiving window is a receiving window of the first service for a link established through the first network, and the second receiving window is a establishing window of the second service for the first network The receive window of the link.
通过上述技术方案,有助于简化实现方式。Through the above technical solutions, it helps to simplify the implementation.
需要说明的是,本申请实施例中,上述提供的仅为一种优先使得第一业务占用述第一网络的带宽资源的具体实现方式,此外,本申请实施例还可以通过其它方式实现优先使得第一业务占用第一网络的带宽资源,对此不作限定。It should be noted that, in the embodiments of the present application, the above provides only a specific implementation method that preferentially causes the first service to occupy the bandwidth resources of the first network. In addition, the embodiments of the present application may also implement the priority implementation in other ways. The first service occupies the bandwidth resources of the first network, which is not limited.
在一种可能的设计中,电子设备在所述第一业务的时延不超过预设阈值的前提下,可以通过下列方式动态调整所述第二业务挤占所述第一网络的带宽资源:In a possible design, on the premise that the delay of the first service does not exceed a preset threshold, the electronic device may dynamically adjust the second service to occupy bandwidth resources of the first network in the following manner:
电子设备判断第一业务的时延是否大于所述预设阈值;若第一业务的时延小于所述预设阈值,则按照第一步长,继续增大所述第二接收窗口的大小,并执行判断第一业务的时延是否大于所述预设阈值额的步骤;若第一业务的时延大于所述预设阈值,则按照第二步长,减小所述第二接收窗口的大小,并执行判断第一业务的时延是否大于所述预设阈值额的步骤。通过上述技术方案,有助于降低实现的复杂性。The electronic device determines whether the delay of the first service is greater than the preset threshold; if the delay of the first service is less than the preset threshold, then according to the first step, continue to increase the size of the second receiving window, And execute the step of determining whether the delay of the first service is greater than the preset threshold amount; if the delay of the first service is greater than the preset threshold, then reduce the second receiving window according to the second step Size and execute the step of determining whether the delay of the first service is greater than the preset threshold amount. Through the above technical solutions, it helps to reduce the complexity of implementation.
在一种可能的设计中,电子设备优先使得所述第一业务占用所述第一网络的带宽资源之后,先按照所述第一步长,增大所述第二接收窗口的大小,再判断第一业务的时延是否大于预设阈值。In a possible design, after the electronic device preferentially makes the first service occupy the bandwidth resources of the first network, first increase the size of the second receiving window according to the first step length, and then judge Whether the delay of the first service is greater than a preset threshold.
第三方面,本申请实施例提供的一种电子设备,所述电子设备包括处理器和存储器;其中,所述存储器用于存储程序指令;所述处理器用于调用所述存储器中存储的程序指令,执行以下步骤:In a third aspect, an electronic device provided by an embodiment of the present application includes a processor and a memory; wherein the memory is used to store program instructions; and the processor is used to call program instructions stored in the memory , Perform the following steps:
与第一网络和第二网络建立连接;Establish a connection with the first network and the second network;
当运行有第一业务和第二业务时,对所述第一业务和所述第二业务进行网络隔离,使得所述第一业务独占所述第一网络和所述第二网络中时延较小的网络,所述第二业务独占所述第一网络和所述第二网络中时延较大的网络,所述第一业务为时延敏感类业务,所述第二业务为带宽敏感类业务;When the first service and the second service are running, perform network isolation on the first service and the second service, so that the first service monopolizes the delay between the first network and the second network In a small network, the second service monopolizes the first network and the second network with a large delay. The first service is a delay-sensitive service and the second service is a bandwidth-sensitive service. business;
在所述第一业务的时延不超过预设阈值的前提下,动态调度所述第二业务占用所述第一网络的带宽资源。On the premise that the delay of the first service does not exceed a preset threshold, dynamically scheduling the second service occupies bandwidth resources of the first network.
在一种可能的设计中,可以基于下列方式实现对所述第一业务和所述第二业务进行网络隔离:In a possible design, the first service and the second service may be network-isolated based on the following manner:
当运行有第一业务和第二业务时,将第一接收窗口设置为第一值,第二接收窗口设置为第二值,将第三接收窗口设置为第三值,将第四接收窗口设置为第四值;所述第一值大于第二值,所述第四值大于第三值,且所述第二值不大于第一阈值,所述第三至不大于第二阈值;When the first service and the second service are running, the first receiving window is set to the first value, the second receiving window is set to the second value, the third receiving window is set to the third value, and the fourth receiving window is set Is a fourth value; the first value is greater than the second value, the fourth value is greater than the third value, and the second value is not greater than the first threshold, and the third to no greater than the second threshold;
其中,所述第一接收窗口为所述第一业务针对通过所述第一网络建立的链路的接收窗口,所述第二接收窗口为所述第一业务针对通过所述第二网络建立的链路的接收窗口,所述第三接收窗口为所述第二业务针对通过所述第一网络建立的链路的接收窗口,所述第四接收窗口为所述第二业务针对通过所述第二网络建立的链路的接收窗口。Wherein, the first receiving window is the receiving window of the first service for the link established through the first network, and the second receiving window is the establishing of the first service for the link established by the second network A receiving window of the link, the third receiving window is the receiving window of the second service for the link established through the first network, and the fourth receiving window is the second service for the passing of the first 2. The receiving window of the link established by the network.
在一种可能的设计中,在所述第一业务的时延不超过预设阈值的前提下,可以通过下列方式实现动态调整所述第二业务占用所述第一网络的带宽资源:In a possible design, on the premise that the delay of the first service does not exceed a preset threshold, the second service can be dynamically adjusted to occupy bandwidth resources of the first network in the following manner:
判断所述第一业务的时延是否超过所述预设阈值;Judging whether the delay of the first service exceeds the preset threshold;
若否,则按照第一步长,增大所述的第三接收窗口的取值;并在增大所述第三接收窗口的取值后,执行判断所述第一业务的是否超过所述预设阈值的步骤;If not, according to the first step, increase the value of the third receiving window; and after increasing the value of the third receiving window, execute to determine whether the first service exceeds the value The step of presetting the threshold;
若是,则按照第二步长,减小所述第三接收窗口的取值;并在减小所述第三接收窗口的取值后,执行判断所述第一业务的是否超过所述预设阈值的步骤。If yes, reduce the value of the third receiving window according to the second step; and after reducing the value of the third receiving window, execute to determine whether the first service exceeds the preset Threshold steps.
在一种可能的设计中,在所述第一业务的时延不超过预设阈值的前提下,还可以通过下列方式实现动态调整所述第二业务占用所述第一网络的带宽资源:In a possible design, on the premise that the delay of the first service does not exceed a preset threshold, the second service may also be used to dynamically adjust the bandwidth resource occupied by the first network in the following manner:
按照第一步长,增大所述的第三接收窗口的取值;According to the first step, increase the value of the third receiving window;
在增大所述第三接收窗口的取值后,判断所述第一业务的是否超过所述预设阈值;After increasing the value of the third receiving window, determine whether the first service exceeds the preset threshold;
若是,则按照第二步长,减小所述第三接收窗口的取值;并在减小所述第三接收窗口的取值后,执行判断所述第一业务的是否超过所述预设阈值的步骤;若否,则按照第一步长,继续增大所述的第三接收窗口的取值;并在增大所述第三接收窗口的取值后,执行判断所述第一业务的是否超过所述预设阈值的步骤。If yes, reduce the value of the third receiving window according to the second step; and after reducing the value of the third receiving window, execute to determine whether the first service exceeds the preset Threshold step; if not, then continue to increase the value of the third receiving window according to the first step; and after increasing the value of the third receiving window, execute the judgment of the first service Step of whether the preset threshold is exceeded.
在一种可能的设计中,所述处理器还用于当所述第一网络和所述第二网络的时延大小发生变化时,自动交换所述第一接收窗口和所述第四接收窗口的配置。In a possible design, the processor is further configured to automatically exchange the first receiving window and the fourth receiving window when the delay sizes of the first network and the second network change Configuration.
在一种可能的设计中,所述处理器还用于在预设定时器溢出之前,不触发执行自动交换所述第一接收窗口和所述第四接收窗口的配置的步骤。In a possible design, the processor is further configured not to trigger the step of automatically swapping the configuration of the first receiving window and the fourth receiving window before the preset timer overflows.
在一种可能的设计中,所述处理器还用于当与所述第一网络建立连接,与所述第二网络未建立连接时,若检测到运行有所述第一业务和所述第二业务,则提示用户打开所述第二网络、或者自动打开所述第二网络,并提示用户所述第二网络已打开。In a possible design, the processor is further configured to detect that the first service and the first service are running when a connection is established with the first network and a connection is not established with the second network For the second service, the user is prompted to open the second network, or the second network is automatically opened, and the user is prompted to open the second network.
另外,第三方面及第三方面中任一种可能设计方式所带来的技术效果可参见第一方面及第一方面中任一种可能设计方式所带来的技术效果,此处不再赘述。In addition, for the technical effects brought by the third aspect and any possible design method in the third aspect, please refer to the technical effects brought by the first aspect and any possible design method in the first aspect, which will not be repeated here. .
第四方面,本申请实施例的一种电子设备,所述电子设备包括处理器和存储器;其中,所述存储器用于存储程序指令;所述处理器用于调用所述存储器存储的程序指令,执行下述步骤:In a fourth aspect, an electronic device according to an embodiment of the present application includes the processor and a memory; wherein the memory is used to store program instructions; and the processor is used to call the program instructions stored in the memory and execute The following steps:
与第一网络建立连接;Establish a connection with the first network;
当运行有第一业务和第二业务时,优先使得所述第一业务占用所述第一网络的带宽资源;所述第一业务为时延敏感类业务,所述第二业务为带宽敏感类业务;When the first service and the second service are running, priority is given to making the first service occupy bandwidth resources of the first network; the first service is a delay-sensitive service, and the second service is a bandwidth-sensitive service business;
在所述第一业务的时延不超过预设阈值的前提下,动态调整所述第二业务挤占所述第一网络的带宽资源。On the premise that the delay of the first service does not exceed a preset threshold, the second service is dynamically adjusted to occupy bandwidth resources of the first network.
在一种可能的设计中,当运行有第一业务和第二业务时,可以通过下列方式优先使得所述第一业务占用所述第一网络的带宽资源:In a possible design, when the first service and the second service are running, the first service may be preferentially used to occupy the bandwidth resources of the first network in the following manner:
将第一接收窗口设置为第一值,第二接收窗口设置为第二值,所述第一值大于第二值,且所述第二值不大于第一阈值;Setting the first receiving window to a first value and the second receiving window to a second value, the first value is greater than the second value, and the second value is not greater than the first threshold;
其中,所述第一接收窗口为所述第一业务针对通过所述第一网络建立的链路的接收窗口,所述第二接收窗口为所述第二业务针对通过所述第一网络建立的链路的接收窗口。Wherein, the first receiving window is a receiving window of the first service for a link established through the first network, and the second receiving window is a establishing window of the second service for the first network The receive window of the link.
在一种可能的设计中,在所述第一业务的时延不超过预设阈值的前提下,可以通过下列方式动态调整所述第二业务挤占所述第一网络的带宽资源:In a possible design, on the premise that the delay of the first service does not exceed a preset threshold, the second service may be dynamically adjusted to occupy bandwidth resources of the first network in the following manner:
判断第一业务的时延是否大于所述预设阈值;Determine whether the delay of the first service is greater than the preset threshold;
若第一业务的时延小于所述预设阈值,则按照第一步长,继续增大所述第二接收窗口的大小,并执行判断第一业务的时延是否大于所述预设阈值额的步骤;If the delay of the first service is less than the preset threshold, then according to the first step, continue to increase the size of the second receiving window, and execute to determine whether the delay of the first service is greater than the preset threshold A step of;
若第一业务的时延大于所述预设阈值,则按照第二步长,减小所述第二接收窗口的大小,并执行判断第一业务的时延是否大于所述预设阈值额的步骤。If the delay of the first service is greater than the preset threshold, reduce the size of the second receiving window according to the second step, and execute to determine whether the delay of the first service is greater than the preset threshold step.
在一种可能的设计,所述处理器还用于在优先使得所述第一业务占用所述第一网络的带宽资源之后,判断第一业务的时延是否大于所述预设阈值之前,第二接收窗口的大小。In a possible design, the processor is further configured to determine whether the delay of the first service is greater than the preset threshold after the first service takes up bandwidth resources of the first network first. 2. The size of the receiving window.
另外,第四方面及第四方面中任一种可能设计方式所带来的技术效果可参见第二方面及第二人方面中任一种可能设计方式所带来的技术效果,此处不再赘述。In addition, for the technical effects brought by any possible design method in the fourth aspect and the fourth aspect, please refer to the technical effects brought by any possible design method in the second aspect and the second person's aspect. Repeat.
第五方面,本申请实施例提供的一种电子设备,包括:一个或多个处理器、存储器、多个应用程序、以及一个或多个程序指令;其中,一个或多个程序指令被存储在存储器中,当计算机程序被电子设备执行时,实现本申请实施例上述各个方面以及各个方面涉及的任一可能设计的方法。According to a fifth aspect, an electronic device provided by an embodiment of the present application includes: one or more processors, memory, multiple application programs, and one or more program instructions; wherein, one or more program instructions are stored in In the memory, when the computer program is executed by the electronic device, the foregoing aspects of the embodiments of the present application and any possible design methods involved in the various aspects are implemented.
第六方面,本申请实施例提供的一种芯片,所述芯片与电子设备中的存储器耦合,使得所述芯片在运行时调用所述存储器中存储的程序指令,实现本申请实施例上述各个方面以及各个方面涉及的任一可能设计的方法。According to a sixth aspect, a chip provided in an embodiment of the present application is coupled to a memory in an electronic device, so that the chip calls program instructions stored in the memory when the chip is running to implement the above aspects of the embodiment of the present application And any possible design method involved in various aspects.
第七方面,本申请实施例的一种计算机存储介质,该计算机存储介质存储有程序指令,当所述程序指令在电子设备上运行时,使得电子设备执行本申请实施例上述各个方面以及各个方面涉及的任一可能设计的方法。In a seventh aspect, a computer storage medium according to an embodiment of the present application, the computer storage medium stores program instructions, and when the program instructions run on an electronic device, the electronic device performs the above-mentioned aspects and aspects of the embodiments of the present application Any possible design method involved.
第八方面,本申请实施例的一种计算机程序产品,当所述计算机程序产品在电子设备上运行时,使得所述电子设备执行实现本申请实施例上述各个方面以及各个方面涉及的任一可能设计的方法。In an eighth aspect, a computer program product of an embodiment of the present application, when the computer program product runs on an electronic device, causes the electronic device to perform the above-mentioned various aspects of the embodiment of the present application and any possibility involved in the various aspects Design method.
第九方面,本申请实施例提供一种电子设备,其包括处理器和存储器;其存储器用于存储程序指令;其处理器用于调用所述存储器中存储的程序指令,执行本申请实施例上述各个方面以及各个方面涉及的任一可能设计的方法。In a ninth aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory; its memory is used to store program instructions; and its processor is used to invoke the program instructions stored in the memory to execute the above-mentioned various embodiments of the present application Aspects and any possible design methods involved in each aspect.
另外,第五方面至第九方面中任一种可能设计方式所带来的技术效果可参见方法部分相关中不同设计方式所带来的技术效果,此处不再赘述。In addition, for the technical effects brought by any one of the possible design methods in the fifth aspect to the ninth aspect, please refer to the technical effects brought about by different design methods in the method section, which will not be repeated here.
附图说明BRIEF DESCRIPTION
图1为本申请实施例一种电子设备的结构示意图;1 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
图2为本申请实施例的一种应用场景的示意图;2 is a schematic diagram of an application scenario according to an embodiment of the present application;
图3为本申请实施例的一种用户界面的示意图;3 is a schematic diagram of a user interface according to an embodiment of this application;
图4为本申请实施例的另一种用户界面的示意图;4 is a schematic diagram of another user interface according to an embodiment of the present application;
图5为本申请实施例的一种业务控制的方法的流程示意图;5 is a schematic flowchart of a service control method according to an embodiment of the present application;
图6为本申请实施例的另一种电子设备的结构示意图。6 is a schematic structural diagram of another electronic device according to an embodiment of the present application.
具体实施方式detailed description
应理解,本申请实施例中“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系。例如,A和/或B,可以表示以下三种关系:单独存在A,同时存在A和B,单独存在B。其中A、B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一(项)个”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a、b或c中的至少一项(个),可以表示:a,b,c,a和b,a和c,b和c,或a、b和c,其中a、b、c可以是单个,也可以是多个。It should be understood that in the embodiments of the present application, "at least one" refers to one or more, and "multiple" refers to two or more. "And/or" describes the relationship of the related objects, indicating that there can be three relationships. For example, A and/or B can represent the following three relationships: A exists alone, A and B exist simultaneously, and B exists alone. A and B can be singular or plural. The character "/" generally indicates that the related object is a "or" relationship. "At least one (item) of the following" or similar expressions refer to any combination of these items, including any combination of a single item (s) or a plurality of items (s). For example, at least one (a) of a, b, or c can represent: a, b, c, a and b, a and c, b and c, or a, b and c, where a, b, c It can be single or multiple.
应理解,本申请实施例应用于电子设备。其中,本申请实施例的电子设备可以支持接入一个网络,也可以支持同时接入两个或两个以上的网络。例如,电子设备支持MPTCP协议,可以同时接入一个蜂窝网络和一个无线保真(wireless fidelity,WiFi)网络。再例如,电子设备还可以同时接入两个的蜂窝网络。又例如,电子设备还可以同时接入两个蜂窝网络和一个WiFi网络。需要说明的是,以电子设备接入第一网络为例,当电子设备完成第一网络接入后,则电子设备与第一网络建立了连接,则电子设备处于第一网络已接入状态。It should be understood that the embodiments of the present application are applied to electronic devices. Among them, the electronic device of the embodiment of the present application may support access to one network, or may support simultaneous access to two or more networks. For example, electronic devices support the MPTCP protocol and can simultaneously access a cellular network and a wireless fidelity (WiFi) network. For another example, the electronic device can also access two cellular networks at the same time. For another example, the electronic device can also simultaneously access two cellular networks and one WiFi network. It should be noted that, taking the electronic device accessing the first network as an example, after the electronic device completes the first network access, the electronic device establishes a connection with the first network, and the electronic device is in the first network connected state.
示例的,本申请实施例中电子设备可以是便携式电子设备,诸如手机、平板电脑、具备无线通讯功能的可穿戴设备(如智能手表)、车载设备等。便携式电子设备的示例性实施例包括但不限于搭载
Figure PCTCN2018120159-appb-000001
或者其它操作系统的便携式电子设备。上述便携式电子设备也可以是诸如具有触敏表面(例如触控面板)的膝上型计算机(Laptop)等。还应当理解的是,在本申请其他一些实施例中,电子设备也可以是具有触敏表面(例如触控面板)的台式计算机。
Illustratively, the electronic device in the embodiment of the present application may be a portable electronic device, such as a mobile phone, a tablet computer, a wearable device (such as a smart watch) with wireless communication function, an in-vehicle device, and the like. Exemplary embodiments of portable electronic devices include, but are not limited to
Figure PCTCN2018120159-appb-000001
Or portable electronic devices of other operating systems. The above-mentioned portable electronic device may also be, for example, a laptop computer with a touch-sensitive surface (for example, a touch panel) or the like. It should also be understood that, in some other embodiments of the present application, the electronic device may also be a desktop computer with a touch-sensitive surface (such as a touch panel).
如图1所示,为本申请实施例的一种电子设备的硬件结构示意图。具体的,电子设备100包括处理器110、内部存储器121、外部存储器接口122、天线1、移动通信模块131、天线2、无线通信模块132、音频模块140、扬声器140A、受话器140B、麦克风140C、耳机接口140D、显示屏151、用户标识模块(subscriber identification module,SIM)卡接口152、摄像头153、按键154、传感器模块160、通用串行总线(universal serial bus,USB)接口170、充电管理模块180、电源管理模块181和电池182。在另一些实施例中,电子设备100还可以包括马达、指示器等。As shown in FIG. 1, it is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application. Specifically, the electronic device 100 includes a processor 110, an internal memory 121, an external memory interface 122, an antenna 1, a mobile communication module 131, an antenna 2, a wireless communication module 132, an audio module 140, a speaker 140A, a receiver 140B, a microphone 140C, a headset Interface 140D, display screen 151, subscriber identification module (SIM) card interface 152, camera 153, button 154, sensor module 160, universal serial bus (USB) interface 170, charging management module 180, Power management module 181 and battery 182. In other embodiments, the electronic device 100 may further include a motor, an indicator, and the like.
其中,处理器110可以包括一个或多个处理单元。例如:处理器110可以包括应用处理器(application processor,AP)、调制解调处理器、图形处理器(graphics processing unit,GPU)、图像信号处理器(image signal processor,ISP)、控制器、视频编解码器、数字信号处理器(digital signal processor,DSP)、基带处理器、和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (ISP), a controller, and a video Codec, digital signal processor (DSP), baseband processor, and/or neural-network processor (NPU), etc. Among them, different processing units may be independent devices, or may be integrated in one or more processors.
在一些实施例中,处理器110中还可以设置存储器,用于存储指令和数据。示例的,处理器110中的存储器可以为高速缓冲存储器。该存储器可以用于保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从该存储器中 直接调用。从而有助于避免重复存取,减少了处理器110的等待时间,因而提高了系统的效率。In some embodiments, a memory may also be provided in the processor 110 for storing instructions and data. Exemplarily, the memory in the processor 110 may be a cache memory. The memory may be used to store instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Therefore, it helps to avoid repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
内部存储器121可以用于存储计算机可执行程序代码。所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据、电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、通用闪存存储器(universal flash storage,UFS)等。The internal memory 121 may be used to store computer executable program code. The executable program code includes instructions. The processor 110 executes instructions stored in the internal memory 121 to execute various functional applications and data processing of the electronic device 100. The internal memory 121 may include a storage program area and a storage data area. Among them, the storage program area may store an operating system, at least one function required application programs (such as sound playback function, image playback function, etc.). The storage data area may store data (such as audio data, phone book, etc.) created during use of the electronic device 100 and the like. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and so on.
外部存储器接口122可以用于连接外部存储卡(例如,Micro SD卡),实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口122与处理器110通信,实现数据存储功能。例如将音乐、视频等文件保存在外部存储卡中。The external memory interface 122 may be used to connect an external memory card (for example, a Micro SD card) to achieve expansion of the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 122 to realize the data storage function. For example, save music, video and other files in an external memory card.
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, the antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
移动通信模块131可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块131可以包括至少一个滤波器、开关、功率放大器、低噪声放大器(low noise amplifier,LNA)等。移动通信模块131可以由天线1接收电磁波信号,并对接收的电磁波信号进行滤波、放大等处理,传送至调制解调处理器进行解调。移动通信模块131还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波信号辐射出去。在一些实施例中,移动通信模块131的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块131的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 131 can provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the electronic device 100. The mobile communication module 131 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), and so on. The mobile communication module 131 can receive the electromagnetic wave signal from the antenna 1 and filter, amplify, etc. the received electromagnetic wave signal, and transmit it to the modem processor for demodulation. The mobile communication module 131 can also amplify the signal modulated by the modulation and demodulation processor and convert it into an electromagnetic wave signal via the antenna 1 to radiate it out. In some embodiments, at least part of the functional modules of the mobile communication module 131 may be provided in the processor 110. In some embodiments, at least part of the functional modules of the mobile communication module 131 and at least part of the modules of the processor 110 may be provided in the same device.
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器140A、受话器140B等)输出声音信号,或通过显示屏151显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块131或其他功能模块设置在同一个器件中。The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be transmitted into a high-frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. The low-frequency baseband signal is processed by the baseband processor and then passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 140A, a receiver 140B, etc.), or displays an image or video through a display screen 151. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110, and may be set in the same device as the mobile communication module 131 or other functional modules.
无线通信模块132可以提供应用在电子设备100上的包括WLAN(如WiFi网络)、蓝牙(bluetooth,BT)、全球导航卫星系统(global navigation satellite system,GNSS)、调频(frequency modulation,FM)、近距离无线通信技术(near field communication,NFC)、红外技术(infrared,IR)等无线通信的解决方案。无线通信模块132可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块132经由天线2接收电磁波信号,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块132还可以从处理器110接收待发送的信号,对其进行调频、放大,经天线2转为电磁波信号辐射出去。The wireless communication module 132 can provide WLAN (such as WiFi network), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), frequency modulation (FM), and other applications that are applied to the electronic device 100. Distance wireless communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 132 may be one or more devices integrating at least one communication processing module. The wireless communication module 132 receives the electromagnetic wave signal via the antenna 2, frequency-modulates and filters the electromagnetic wave signal, and sends the processed signal to the processor 110. The wireless communication module 132 can also receive the signal to be transmitted from the processor 110, perform frequency modulation and amplification on it, and convert it to an electromagnetic wave signal via the antenna 2 to radiate it out.
在一些实施例中,电子设备100的天线1和移动通信模块131耦合,天线2和无线通信模块132耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications, GSM)、通用分组无线服务(general packet radio service,GPRS)、码分多址接入(code division multiple access,CDMA)、宽带码分多址(wideband code division multiple access,WCDMA)、时分码分多址(time-division code division multiple access,TD-SCDMA)、长期演进(long term evolution,LTE)、BT、GNSS、WLAN、NFC、FM、和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS)、全球导航卫星系统(global navigation satellite system,GLONASS)、北斗卫星导航系统(beidou navigation satellite system,BDS)、准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the electronic device 100 and the mobile communication module 131 are coupled, and the antenna 2 and the wireless communication module 132 are coupled so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include a global mobile communication system (global system for mobile communications, GSM), general packet radio service (general packet radio service (GPRS), code division multiple access (CDMA), broadband) Wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long-term evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a beidou navigation system (BDS), and a quasi-zenith satellite system (quasi -zenith satellite system (QZSS) and/or satellite-based augmentation systems (SBAS).
电子设备100可以通过音频模块140、扬声器140A、受话器140B、麦克风140C、耳机接口140D以及应用处理器等实现音频功能。例如音乐播放、录音等。The electronic device 100 may implement audio functions through an audio module 140, a speaker 140A, a receiver 140B, a microphone 140C, a headphone interface 140D, an application processor, and the like. For example, music playback, recording, etc.
音频模块140可以用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块140还可以用于对音频信号编码和解码。在一些实施例中,音频模块140可以设置于处理器110中,或将音频模块140的部分功能模块设置于处理器110中。The audio module 140 can be used to convert digital audio information into an analog audio signal output, and also to convert analog audio input into a digital audio signal. The audio module 140 may also be used to encode and decode audio signals. In some embodiments, the audio module 140 may be disposed in the processor 110, or some functional modules of the audio module 140 may be disposed in the processor 110.
扬声器140A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器140A收听音乐、或接听免提通话。The speaker 140A, also called "speaker", is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music through the speaker 140A or answer hands-free calls.
受话器140B,也称“听筒”,用于将音频电信号转换成声音信号。当用户使用电子设备100接听电话时,可以通过将受话器140B靠近人耳来接听电子设备100通过移动通信模块131或者无线通信模块132接收到的语音。The receiver 140B, also known as "handset", is used to convert audio electrical signals into sound signals. When the user uses the electronic device 100 to answer a call, the user can answer the voice received by the electronic device 100 through the mobile communication module 131 or the wireless communication module 132 by bringing the receiver 140B close to the human ear.
麦克风140C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当用户使用电子设备100拨打电话或发送语音时,用户可以通过人嘴靠近麦克风140C发声,麦克风140C可以用于采集用户的声音,然后,将用户的声音转换为电信号。电子设备100可以设置至少一个麦克风140C。在一些实施例中,电子设备100可以设置两个麦克风140C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个、四个或更多麦克风140C,实现声音信号采集、降噪、还可以识别声音来源,实现定向录音功能等。The microphone 140C, also called "microphone", "microphone", is used to convert sound signals into electrical signals. When the user uses the electronic device 100 to make a call or send a voice, the user can approach the microphone 140C through the mouth of the person, and the microphone 140C can be used to collect the user's voice, and then convert the user's voice into an electrical signal. The electronic device 100 may be provided with at least one microphone 140C. In some embodiments, the electronic device 100 may be provided with two microphones 140C. In addition to collecting sound signals, it may also implement a noise reduction function. In other embodiments, the electronic device 100 may also be provided with three, four, or more microphones 140C to achieve sound signal collection, noise reduction, identify sound sources, and implement directional recording functions.
耳机接口140D用于连接有线耳机。耳机接口140D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口、美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口等。The headset interface 140D is used to connect wired headsets. The headphone jack 140D can be a USB jack 130 or a 3.5mm open mobile electronic device (open mobile terminal) platform (OMTP) standard interface, the American Telecommunications Industry Association (cellular telecommunications industry association of the USA, CTIA) standard interface, etc. .
电子设备100可以通过GPU、显示屏151、以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏151和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 100 can realize a display function through a GPU, a display screen 151, an application processor, and the like. The GPU is a microprocessor for image processing, and connects the display screen 151 and the application processor. The GPU is used to perform mathematical and geometric calculations, and is used for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
显示屏151可以用于显示图像、视频等。显示屏151可以包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD)、有机发光二极管(organic light-emitting diode,OLED)、有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED)、柔性发光二极管(flex light-emitting diode,FLED)、Miniled、MicroLed、Micro-oLed、量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏151,N为大于1的正整数。The display screen 151 may be used to display images, videos, and the like. The display screen 151 may include a display panel. The display panel may use a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light-emitting diode or an active matrix organic light-emitting diode (active-matrix organic light) emitting diodes (AMOLED), flexible light-emitting diodes (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 151, where N is a positive integer greater than 1.
电子设备100可以通过ISP、摄像头153、视频编解码器、GPU、显示屏151以及应用处理器等实现拍摄功能。The electronic device 100 can realize a shooting function through an ISP, a camera 153, a video codec, a GPU, a display screen 151, an application processor, and the like.
ISP可以用于处理摄像头153反馈的数据。例如,拍照时,打开快门,通过摄像头153采集光信号,然后摄像头153将采集的光信号转换为电信号,并将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点、亮度、肤色进行算法优化。ISP还可以对拍摄场景的曝光、色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。The ISP can be used to process the data fed back by the camera 153. For example, when taking a picture, the shutter is opened, and the optical signal is collected by the camera 153, and then the camera 153 converts the collected optical signal into an electrical signal, and transmits the electrical signal to an ISP for processing, which is converted into an image visible to the naked eye. ISP can also optimize the algorithm of image noise, brightness and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be set in the camera 193.
摄像头153可以用于捕获静态图像或视频。通常情况下,摄像头153包括镜头和图像传感器。其中,物体通过镜头生成光学图像投射到图形传感器。图像传感器可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。图像传感器把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB、YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头153,N为大于1的正整数。The camera 153 may be used to capture still images or video. Generally, the camera 153 includes a lens and an image sensor. Among them, the object generates an optical image through the lens and projects it onto the graphic sensor. The image sensor may be a charge coupled device (charge coupled device, CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The image sensor converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. DSP converts digital image signals into standard RGB, YUV and other format image signals. In some embodiments, the electronic device 100 may include 1 or N cameras 153, where N is a positive integer greater than 1.
按键154可以包括开机键、音量键等。按键154可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。The key 154 may include a power-on key, a volume key, and the like. The key 154 may be a mechanical key. It can also be a touch button. The electronic device 100 can receive key input and generate key signal input related to user settings and function control of the electronic device 100.
传感器模块160可以包括一个或多个传感器。例如,触摸传感器160A、指纹传感器160B、陀螺仪传感器160C、压力传感器160D、加速度传感器160E等。在一些实施例中,传感器模块160还可以包括环境传感器、距离传感器、接近光传感器、骨传导传感器等。The sensor module 160 may include one or more sensors. For example, the touch sensor 160A, the fingerprint sensor 160B, the gyro sensor 160C, the pressure sensor 160D, the acceleration sensor 160E, and the like. In some embodiments, the sensor module 160 may further include an environmental sensor, a distance sensor, a proximity light sensor, a bone conduction sensor, and the like.
触摸传感器160A,也可称为“触控面板”。触摸传感器160A可以设置于显示屏151,由触摸传感器160A与显示屏151组成触摸屏,也称“触控屏”。触摸传感器160A用于检测作用于其上或附近的触摸操作。触摸传感器160A可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏151提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器160A也可以设置于电子设备100的表面,与显示屏151所处的位置不同。The touch sensor 160A may also be referred to as a “touch panel”. The touch sensor 160A may be disposed on the display screen 151, and the touch sensor 160A and the display screen 151 constitute a touch screen, also referred to as a "touch screen". The touch sensor 160A is used to detect a touch operation acting on or near it. The touch sensor 160A may pass the detected touch operation to the application processor to determine the type of touch event. The visual output related to the touch operation can be provided through the display screen 151. In other embodiments, the touch sensor 160A may also be disposed on the surface of the electronic device 100, which is different from the location where the display screen 151 is located.
指纹传感器160B可以用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁、访问应用锁、指纹拍照、指纹接听来电等。The fingerprint sensor 160B can be used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, access to application lock, fingerprint taking pictures, fingerprint answering calls, and the like.
陀螺仪传感器160C可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器160C确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器160C可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器160C检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器160C还可以用于导航、体感游戏场景。The gyro sensor 160C may be used to determine the movement posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (ie, x, y, and z axes) may be determined by the gyro sensor 160C. The gyro sensor 160C can be used for shooting anti-shake. Exemplarily, when the shutter is pressed, the gyro sensor 160C detects the shaking angle of the electronic device 100, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to counteract the shaking of the electronic device 100 through reverse movement to achieve anti-shake. The gyro sensor 160C can also be used for navigation and somatosensory game scenes.
压力传感器160D用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器160D可以设置于显示屏151。压力传感器160D的种类很多,如电阻式压力传感器、电感式压力传感器、电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器160D,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器160D检测所述触摸操作强度。电子设备100也可以根据压力传感器160D的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强 度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。The pressure sensor 160D is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 160D may be provided on the display screen 151. There are many types of pressure sensors 160D, such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors. The capacitive pressure sensor may be at least two parallel plates with conductive materials. When force is applied to the pressure sensor 160D, the capacitance between the electrodes changes. The electronic device 100 determines the strength of the pressure according to the change in capacitance. When a touch operation is applied to the display screen 194, the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 160D. The electronic device 100 may calculate the touched position according to the detection signal of the pressure sensor 160D. In some embodiments, touch operations that act on the same touch position but have different touch operation intensities may correspond to different operation instructions. For example, when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
加速度传感器160E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备静止时可检测出重力的大小及方向。还可以用于识别电子设备100姿态,应用于横竖屏切换、计步器等应用。The acceleration sensor 160E can detect the magnitude of acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device is stationary, the size and direction of gravity can be detected. It can also be used to recognize the posture of the electronic device 100, and be used in applications such as horizontal and vertical screen switching and pedometers.
在另一些实施例中,处理器110还可以包括一个或多个接口。例如,接口可以为SIM卡接口152。又例如,接口还可以为USB接口170。再例如,接口还可以为集成电路(inter-integrated circuit,I2C)接口、集成电路内置音频(inter-integrated circuit sound,I2S)接口、脉冲编码调制(pulse code modulation,PCM)接口、通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口、移动产业处理器接口(mobile industry processor interface,MIPI)、通用输入输出(general-purpose input/output,GPIO)接口等。可以理解的是,本申请实施例处理器110可以通过接口连接电子设备100的不同模块,从而使得电子设备100能够实现不同的功能。例如拍照、处理等。需要说明的是,本申请实施例对电子设备100中接口的连接方式不作限定。In other embodiments, the processor 110 may further include one or more interfaces. For example, the interface may be a SIM card interface 152. For another example, the interface may also be a USB interface 170. For another example, the interface may also be an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit integrated audio (inter-integrated circuit, sound, I2S) interface, a pulse code modulation (pulse code modulation (PCM) interface, universal asynchronous transceiver transmission (Universal asynchronous receiver/transmitter, UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input/output (GPIO) interface, etc. It can be understood that, in the embodiment of the present application, the processor 110 may be connected to different modules of the electronic device 100 through an interface, so that the electronic device 100 can implement different functions. For example, taking pictures and processing. It should be noted that the embodiment of the present application does not limit the connection method of the interface in the electronic device 100.
其中,SIM卡接口152可以用于连接SIM卡。SIM卡可以通过插入SIM卡接口152,或从SIM卡接口152拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口152可以支持Nano SIM卡、Micro SIM卡、SIM卡等。同一个SIM卡接口152可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口152也可以兼容不同类型的SIM卡。SIM卡接口152也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。例如,当SIM卡接口152只能插入一张SIM卡时,则电子设备100可以通过SIM卡接口152中插入的SIM卡接入一个蜂窝网络。再例如,当SIM卡接口152能够插入两张SIM卡时,则电子设备100可以通过SIM卡接口152中插入的两张SIM卡分别接入一个蜂窝网络。Among them, the SIM card interface 152 may be used to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 152 to achieve contact and separation with the electronic device 100. The electronic device 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 152 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple SIM cards can be inserted into the same SIM card interface 152 at the same time. The types of the multiple cards may be the same or different. The SIM card interface 152 can also be compatible with different types of SIM cards. The SIM card interface 152 may also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to realize functions such as call and data communication. In some embodiments, the electronic device 100 uses eSIM, that is, an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100. For example, when only one SIM card can be inserted in the SIM card interface 152, the electronic device 100 can access a cellular network through the SIM card inserted in the SIM card interface 152. For another example, when two SIM cards can be inserted in the SIM card interface 152, the electronic device 100 can access a cellular network through the two SIM cards inserted in the SIM card interface 152, respectively.
USB接口170是符合USB标准规范的接口。例如,USB接口170可以包括Mini USB接口、Micro USB接口、USB Type C接口等。USB接口170可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。USB接口170还可以用于连接其他电子设备,例如增强现实技术(augmented reality,AR)设备等。The USB interface 170 is an interface conforming to the USB standard specification. For example, the USB interface 170 may include a Mini USB interface, a Micro USB interface, a USB Type C interface, and so on. The USB interface 170 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and peripheral devices. It can also be used to connect headphones and play audio through the headphones. The USB interface 170 can also be used to connect other electronic devices, such as augmented reality (augmented reality, AR) devices.
充电管理模块180用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块180可以通过USB接口170接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块180可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块180为电池182充电的同时,还可以通过电源管理模块181为电子设备100供电。The charging management module 180 is used to receive charging input from the charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 180 may receive the charging input of the wired charger through the USB interface 170. In some wireless charging embodiments, the charging management module 180 may receive wireless charging input through the wireless charging coil of the electronic device 100. While the charging management module 180 charges the battery 182, it can also supply power to the electronic device 100 through the power management module 181.
电源管理模块181用于连接电池182,充电管理模块180与处理器110。电源管理模块181接收电池182和/或充电管理模块180的输入,为处理器110、内部存储器121、外部存储器、显示屏151、摄像头153、移动通信模块131和无线通信模块132等供电。电源管理模块181还可以用于监测电池容量、电池循环次数、电池健康状态(漏电、阻抗)等参 数。在其他一些实施例中,电源管理模块181也可以设置于处理器110中。在另一些实施例中,电源管理模块181和充电管理模块180也可以设置于同一个器件中。The power management module 181 is used to connect the battery 182, the charging management module 180 and the processor 110. The power management module 181 receives input from the battery 182 and/or the charging management module 180, and supplies power to the processor 110, internal memory 121, external memory, display screen 151, camera 153, mobile communication module 131, wireless communication module 132, and the like. The power management module 181 can also be used to monitor parameters such as battery capacity, number of battery cycles, battery health status (leakage, impedance) and so on. In some other embodiments, the power management module 181 may also be disposed in the processor 110. In other embodiments, the power management module 181 and the charging management module 180 may also be set in the same device.
应理解,图1所示的硬件结构仅是一个示例。本申请实施例的电子设备100可以具有比图中所示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。It should be understood that the hardware structure shown in FIG. 1 is only an example. The electronic device 100 of the embodiment of the present application may have more or less components than shown in the figure, may combine two or more components, or may have different component configurations. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
下面结合图1所示的电子设备100的结构示意图,对本申请实施例进行详细说明。The embodiments of the present application will be described in detail below in conjunction with the schematic structural diagram of the electronic device 100 shown in FIG. 1.
通常情况下,电子设备100可以支持多种应用。比如以下应用中的一个或多个:绘图、演示、字处理、游戏、电话、视频播放器、音乐播放器、电子邮件、即时消息收发、照片管理、相机、浏览器、日历、时钟、支付、应用市场、桌面和健康管理等应用。示例的,电子设备100可以同时运行一个或多个应用。例如,电子设备100可以在后台从应用市场下载应用时,在前台运行游戏。又例如,电子设备100可以在后台从视频播放器下载视频时,在前台通过及时消息收发进行视频电话等。再例如,电子设备100还可以在后台运行音乐播放器播放音乐,在前台通过支付应用进行支付操作。再例如,电子设备100还可以在后台运行语音聊天应用,在前台通过视频播放器下载视频。Generally, the electronic device 100 can support multiple applications. For example, one or more of the following applications: drawing, presentation, word processing, games, phone, video player, music player, email, instant messaging, photo management, camera, browser, calendar, clock, payment, Application market, desktop and health management applications. For example, the electronic device 100 may run one or more applications at the same time. For example, the electronic device 100 may run a game in the foreground when downloading an application from the application market in the background. For another example, when the electronic device 100 downloads a video from a video player in the background, a video call can be made at the foreground through timely messaging. For another example, the electronic device 100 may also run a music player to play music in the background, and perform a payment operation through a payment application in the foreground. For another example, the electronic device 100 may also run a voice chat application in the background, and download a video through a video player in the foreground.
其中,在后台从应用市场下载应用、在前台运行游戏、在后台从视频播放器下载视频、在前台通过及时消息收发进行视频电话等均为电子设备100运行的一个业务。应理解,在电子设备100同时运行的不同的业务可以包括时延敏感类业务和带宽敏感类业务。其中,时延敏感类业务对于时延要求较高,当时延超过设定的阈值时,有可能导致电子设备100运行的卡顿,影响用户的体验,例如,典型的时延敏感类业务可以为网络游戏、视频电话、微信语音电话等。而带宽敏感类业务为对带宽资源要求较多,期望占满整个带宽。例如,典型的带宽敏感类业务可以为数据下载等,例如从应用市场下载应用程序,或者从视频应用下载视频等。Among them, downloading an application from the application market in the background, running a game in the foreground, downloading a video from a video player in the background, and making a video call through timely message sending and receiving in the foreground are all services that the electronic device 100 runs. It should be understood that different services running simultaneously on the electronic device 100 may include delay-sensitive services and bandwidth-sensitive services. Among them, delay-sensitive services have high requirements for delay. When the delay exceeds a set threshold, it may cause the electronic device 100 to run into a stagnation, which may affect the user experience. For example, a typical delay-sensitive service may be Online games, video calls, WeChat voice calls, etc. However, bandwidth-sensitive services require more bandwidth resources and are expected to occupy the entire bandwidth. For example, typical bandwidth-sensitive services can be data download, such as downloading application programs from the application market or downloading videos from video applications.
当电子设备100中既运行有时延敏感类业务,又运行有带宽敏感类业务时,由于带宽敏感类业务可能会抢占时延敏感类业务的带宽资源,导致时延敏感类业务的卡顿等,降低用户体验。When the electronic device 100 runs both delay-sensitive services and bandwidth-sensitive services, the bandwidth-sensitive services may seize the bandwidth resources of the delay-sensitive services, resulting in stalls in the delay-sensitive services. Reduce user experience.
因此,电子设备100当与两个或两个以上的网络建立了连接、且既运行有时延敏感类业务又运行有带宽敏感类业务时,可以先对时延敏感类业务和带宽敏感类业务进行网络隔离,使得时延敏感类业务独占电子设备100同时接入的两个或两个以上的网络中时延较小的网络、以及带宽敏感类业务独占一个与时延敏感类业务不同的网络,互不影响。然后,在满足时延敏感类业务的时延要求的前提下,动态地逐渐调整带宽敏感类业务占用时延较小的网络的带宽资源,从而有助于提升带宽资源的利用率,以及提高带宽敏感类业务的后台下载速率。Therefore, when the electronic device 100 establishes a connection with two or more networks and runs both delay-sensitive services and bandwidth-sensitive services, it can perform delay-sensitive services and bandwidth-sensitive services first. Network isolation makes the delay-sensitive business exclusive to two or more networks that the electronic device 100 accesses at the same time, and the network with a smaller delay and the bandwidth-sensitive business exclusive to a network different from the delay-sensitive business. Do not affect each other. Then, on the premise of meeting the delay requirements of the delay-sensitive services, dynamically and gradually adjust the bandwidth resources of the bandwidth-sensitive services to occupy the network with a smaller delay, thereby helping to improve the utilization of bandwidth resources and increase the bandwidth The background download rate of sensitive services.
示例的,如图2所示,电子设备100可以支持接入第一网络和第二网络。电子设备100当第一网络和第二网络均打开时,可以同时接入第一网络和第二网络,从而使得电子设备100可以与第一网络和第二网络分别建立连接。电子设备100当第一网络关闭,第二网络打开时,接入第二网络。电子设备100当第一网络打开,第二网络关闭时,接入第一网络。需要说明的是,第一网络可以为蜂窝网络,也可以为WLAN网络等。第二网络可以为蜂窝网络,也可以为WLAN网络等。例如,蜂窝网络可以为2G网络、3G网络或4G网络等。WLAN网络可以为WiFi网络、热点等。需要说明的是,本申请实施例中,电子设备100可以通过 无线方式接入到第一网络,也可以通过有线方式接入到第一网络;电子设备100可以通过无线方式接入到第二网络,也可以通过有线方式接入到第二网络。For example, as shown in FIG. 2, the electronic device 100 may support access to the first network and the second network. When both the first network and the second network are turned on, the electronic device 100 can simultaneously access the first network and the second network, so that the electronic device 100 can establish connections with the first network and the second network, respectively. The electronic device 100 accesses the second network when the first network is turned off and the second network is turned on. The electronic device 100 accesses the first network when the first network is turned on and the second network is turned off. It should be noted that the first network may be a cellular network or a WLAN network. The second network may be a cellular network or a WLAN network. For example, the cellular network may be a 2G network, a 3G network, or a 4G network. The WLAN network may be a WiFi network, a hotspot, and so on. It should be noted that, in the embodiment of the present application, the electronic device 100 may be connected to the first network through wireless means, or may be connected to the first network through wired means; the electronic device 100 may be connected to the second network through wireless means , You can also connect to the second network by wire.
以第一网络为例。例如第一网络为蜂窝网络、WLAN网络等无线网络,电子设备100可以响应于用户打开第一网络的操作,接入第一网络。例如,用户打开第一网络的操作可以为用户将控制第一网络开启或关闭的虚拟按钮的置于开启的操作,也可以为快捷手势操作,还可以为语音指令等,对此不作限定。又例如,电子设备100还可以事件性触发自动打开第一网络,并接入第一网络。例如,自动触发打开第一网络的事件可以为电子设备100启动视频播放器等事件。本申请实施例对自动触发打开第一网络的事件不作限定。再例如,第一网络为电子设备100通过有线方式接入的网络时,电子设备100可以当检测到有线接入网口连接到路由器时,接入第一网络。Take the first network as an example. For example, the first network is a wireless network such as a cellular network, a WLAN network, and the electronic device 100 may access the first network in response to a user's operation of opening the first network. For example, the operation for the user to open the first network may be an operation for the user to turn on the virtual button that controls the first network to be turned on or off, or a shortcut gesture operation, or a voice command, which is not limited. For another example, the electronic device 100 may also trigger an event to automatically turn on the first network and access the first network. For example, the event that automatically triggers the opening of the first network may be an event such as the electronic device 100 starting a video player. The embodiment of the present application does not limit the event that automatically triggers the opening of the first network. For another example, when the first network is a network accessed by the electronic device 100 in a wired manner, the electronic device 100 may access the first network when it detects that the wired access network port is connected to the router.
实施例一:电子设备100与第一网络和第二网络分别建立了连接、且既运行有时延敏感类业务和带宽敏感类业务的情况:需要说明的是,时延敏感类业务可以在前台运行,也可以在后台运行,带宽敏感类业务可以在前台运行,也可以在后台运行。Embodiment 1: When the electronic device 100 establishes a connection with the first network and the second network respectively, and is running both delay-sensitive services and bandwidth-sensitive services: It should be noted that delay-sensitive services can be run in the foreground , Can also be run in the background, bandwidth-sensitive services can be run in the foreground or in the background.
还需要说明的是,电子设备100可以先建立与第一网络和第二网络的连接,在启动时延敏感类业务和带宽敏感类业务,也可以先启动时延敏感类业务和带宽敏感类业务,再建立与第一网络和第二网络的连接等。本申请实施例对建立与第一网络的连接、建立与第二网络的连接、启动时延敏感类业务、启动带宽敏感类业务的先后顺序不作限定。以时延敏感类业务为例,电子设备100可以响应于用户的操作,启动时延敏感类业务。例如用户的操作可以为用户触摸游戏应用的图标,也可以为用户触摸语音通话的虚拟按钮,还可以为语音指令、快捷手势等。示例的,电子设备100的触摸传感器160检测到用户的触摸操作后,可以上报给处理器110,由处理器110启动时延敏感类业务。又示例的,电子设备100的麦克风140C接收到用户的语音指令后,上报给音频模块140,音频模块140可对语音指令进行解析,若确定为启动时延敏感类业务的语音指令,则向处理器110上报启动时延敏感类业务的指示,处理器110在接收到启动时延敏感类业务的指示后,执行启动时延敏感类业务的操作。It should also be noted that the electronic device 100 may first establish a connection with the first network and the second network, and may start the delay sensitive service and the bandwidth sensitive service before starting the delay sensitive service and the bandwidth sensitive service. , And then establish a connection with the first network and the second network. The embodiment of the present application does not limit the sequence of establishing a connection with the first network, establishing a connection with the second network, starting a delay-sensitive service, and starting a bandwidth-sensitive service. Taking the delay-sensitive service as an example, the electronic device 100 can start the delay-sensitive service in response to the user's operation. For example, the user's operation may be that the user touches the icon of the game application, or that the user touches the virtual button of the voice call, and may also be a voice command, a shortcut gesture, and the like. For example, after the touch sensor 160 of the electronic device 100 detects the user's touch operation, it may be reported to the processor 110, and the processor 110 may start a delay sensitive service. For another example, after receiving the user's voice instruction from the microphone 140C of the electronic device 100, it is reported to the audio module 140. The audio module 140 can parse the voice instruction, and if it is determined to be a voice instruction to start a delay-sensitive service, then process The processor 110 reports an instruction to start a delay-sensitive service. After receiving the instruction to start the delay-sensitive service, the processor 110 performs an operation to start the delay-sensitive service.
电子设备100当与第一网络和第二网络分别建立了连接、且运行既有时延敏感类业务、又运行有带宽敏感类业务时,可以对时延敏感类业务和带宽敏感类业务进行网络隔离,使得时延敏感类业务独自占用第一网络和第二网络中时延较小的网络,带宽敏感类业务独自占用第一网络和第二网络中时延较大的网络,从而使得时延敏感类业务和带宽敏感类业务可以互不影响。然后,在时延敏感类业务的时延不大于阈值的前提下,动态地逐渐调整带宽敏感类业务占用第一网络和第二网络中时延较小的网络的带宽资源,从而有助于提升带宽资源的利用率,以及提高带宽敏感类业务的后台下载速率。When the electronic device 100 establishes a connection with the first network and the second network respectively, and runs both delay-sensitive services and bandwidth-sensitive services, it can perform network isolation on delay-sensitive services and bandwidth-sensitive services , So that delay-sensitive services alone occupy the first network and the second network with smaller delays, and bandwidth-sensitive services alone occupy the first network and the second network with larger delays, thereby making the delay sensitive Similar services and bandwidth-sensitive services may not affect each other. Then, under the premise that the delay of the delay-sensitive service is not greater than the threshold, dynamically adjust the bandwidth-sensitive service to occupy the bandwidth resources of the network with the smaller delay in the first network and the second network, thereby helping to improve Utilization of bandwidth resources and increase the background download rate of bandwidth-sensitive services.
需要说明的是,在一些实施例中,针对不同的时延敏感类业务可以设置不同的阈值,例如,网络游戏对应的阈值为150ms,网络电话对应的阈值可以为300ms等。其中,针对不同的时延敏感类业务设置的阈值的大小可以根据实际情况或者经验进行设置。在另一些实施例中,针对不同的时延敏感类业务也可以设置相同的阈值。It should be noted that, in some embodiments, different thresholds may be set for different delay-sensitive services. For example, the threshold corresponding to online games is 150 ms, and the threshold corresponding to online telephony may be 300 ms. The size of the threshold set for different delay-sensitive services can be set according to actual conditions or experience. In other embodiments, the same threshold may be set for different delay-sensitive services.
以图1所示的电子设备100的结构为例。电子设备100中的处理器110当与第一网络和第二网络分别建立了连接、且既运行有时延敏感类业务、又运行有带宽敏感类业务时,对时延敏感类业务和带宽敏感类业务进行网络隔离,并动态地逐渐调整带宽敏感类业务占用第一网络和第二网络中时延较小的网络的带宽资源。Take the structure of the electronic device 100 shown in FIG. 1 as an example. When the processor 110 in the electronic device 100 establishes a connection with the first network and the second network respectively, and runs both delay-sensitive services and bandwidth-sensitive services, it is sensitive to delay-sensitive services and bandwidth-sensitive services. Services are network-isolated and dynamically adjust bandwidth-sensitive services to occupy bandwidth resources of the first network and the second network with smaller delays.
例如,电子设备100当与第一网络和第二网络分别建立了连接后,启动时延敏感类业 务、未启动带宽敏感类业务时,或者启动带宽敏感类业务、未启动时延敏感类业务时,可以在第一网络和第二网络上同时运行启动的业务,也可以在第一网络和第二网络中信号强度较好的网络上运行启动的业务,对此不作限定。For example, when the electronic device 100 establishes a connection with the first network and the second network, respectively, the delay-sensitive services and the bandwidth-sensitive services are not started, or the bandwidth-sensitive services and the delay-sensitive services are not started It can run the started service on the first network and the second network at the same time, or it can run the started service on the network with the better signal strength in the first network and the second network, which is not limited.
电子设备100当与第一网络和第二网络分别建立了连接,且启动时延敏感类业务和带宽敏感类业务后,则可以执行本申请实施例业务控制的方法。需要说明的是,电子设备100当启动时延敏感类业务和带宽敏感类业务后,则运行时延敏感类业务,以及运行带宽敏感类业务。After the electronic device 100 establishes a connection with the first network and the second network respectively, and starts the delay-sensitive service and the bandwidth-sensitive service, the electronic device 100 may execute the service control method in the embodiments of the present application. It should be noted that, after starting the delay sensitive service and the bandwidth sensitive service, the electronic device 100 runs the delay sensitive service and the bandwidth sensitive service.
以时延敏感类业务为第一业务、带宽敏感类业务为第二业务为例,电子设备100当与第一网络和第二网络都建立了连接、且既运行有第一业务,又运行有第二业务时,可以基于下列方式对第一业务和第二业务进行网络隔离:Taking the delay-sensitive service as the first service and the bandwidth-sensitive service as the second service as an example, the electronic device 100 establishes a connection with both the first network and the second network, and runs both the first service and the For the second service, the first service and the second service can be network-isolated based on the following methods:
如果第一网络的时延小于第二网络的时延,则将第一业务针对通过第一网络建立的链路的接收窗口设置为一个较大的值p,将第一业务针对通过第二网络建立的链路的接收窗口设置为一个较小的值m,使得电子设备向第一网络上报的接收窗口的取值为p,向第二网络上报的接收窗口的取值为m;以及将第二业务针对通过第一网络建立的链路的接收窗口设置为一个较小的值n,将第二业务针对通过第二网络建立的链路的接收窗口设置为一个较大的值q,使得电子设备向第一网络上报的接收窗口的取值为n,向第二网络上报的接收窗口的取值为q;从而使得第一业务可以独占第一网络,第二业务独占第二网络,实现对第一业务和第二业务的网络隔离。应理解,本申请实施例中m、n的取值可以相同,也可以不同。例如,m、n的取值可以为0。p、q的取值可以相同,也可以不同。例如p、q的取值可以为电子设备100支持的接口窗口的上限值。其中,p大于m,q大于n。示例的,p、q的取值可以参见现有技术中接收窗口取值的设置方式,也可以将p设置为大于某一阈值的值,将q设置为大于另某一阈值的值,还可以直接将p、q设置为接收窗口的上限值等,本申请实施例对p、q的设置方式不作限定。在一些实施例中,m的取值不大于第一阈值,n的取值不大于第二阈值,其中第一阈值和第二阈值可以是预先设定的,可以相同,也可以不同,从而有助于简化实现。又示例的,m、n的取值可以直接设置为固定值,例如0。If the delay of the first network is less than the delay of the second network, then the reception window of the first service for the link established through the first network is set to a larger value p, and the first service is targeted to pass through the second network The reception window of the established link is set to a small value m, so that the value of the reception window reported by the electronic device to the first network is p, and the value of the reception window reported to the second network is m; The receiving window of the second service for the link established through the first network is set to a small value n, and the receiving window of the second service to the link established through the second network is set to a large value q, so that the electronic The value of the receiving window reported by the device to the first network is n, and the value of the receiving window reported to the second network is q; thus, the first service can monopolize the first network, and the second service can monopolize the second network. The network of the first service and the second service are isolated. It should be understood that the values of m and n in the embodiments of the present application may be the same or different. For example, the value of m and n can be 0. The values of p and q can be the same or different. For example, the values of p and q may be the upper limit of the interface window supported by the electronic device 100. Among them, p is greater than m, q is greater than n. For example, the values of p and q can refer to the setting method of the receiving window value in the prior art, or p can be set to a value greater than a certain threshold, and q can be set to a value greater than a certain threshold, or P and q are directly set as the upper limit value of the receiving window, etc. The embodiment of the present application does not limit the setting method of p and q. In some embodiments, the value of m is not greater than the first threshold, and the value of n is not greater than the second threshold, where the first threshold and the second threshold may be preset, may be the same, or may be different, so that Helps simplify implementation. For another example, the values of m and n may be directly set to fixed values, for example, 0.
以下将第一业务针对通过第一网络建立的链路的接收窗口简称为第一接收窗口,将第一业务针对通过第二网络建立的链路的接收窗口简称为第二接收窗口,将第二业务针对通过第一网络建立的链路的接收窗口简称为第三接收窗口,将第二业务针对通过第二网络建立的链路的接收窗口简称为第四接收窗口。In the following, the receiving window of the first service for the link established through the first network is simply referred to as the first receiving window, and the receiving window of the first service for the link established through the second network is simply referred to as the second receiving window, and the second The receiving window of the service for the link established through the first network is simply referred to as the third receiving window, and the receiving window of the second service for the link established through the second network is simply referred to as the fourth receiving window.
以第一接收窗口为例,第一接收窗口的取值用于指示电子设备100可以通过第一网络建立的链路接收数据的多少。其中,第一接收窗口的取值越大,表示电子设备100可以通过第一网络建立的链路接收的数据越多,第一接收窗口的取值越小,表示电子设备100可以通过第一网络建立的链路接收的数据越少。例如,当第一接收窗口取值为0时,则表示电子设备100不再通过第一网络建立的链路接收第一业务的数据。Taking the first receiving window as an example, the value of the first receiving window is used to indicate how much data the electronic device 100 can receive through the link established by the first network. The larger the value of the first receiving window, the more data the electronic device 100 can receive through the link established by the first network, and the smaller the value of the first receiving window, the electronic device 100 can pass the first network The less data received by the established link. For example, when the value of the first receiving window is 0, it indicates that the electronic device 100 no longer receives data of the first service through the link established by the first network.
因此,本申请实施例中可以通过将第一接收窗口、第四接收窗口设置为一个较大的值,将第二接收窗口、第三接收窗口设置为一个较小的值,从而使得第一业务可以独占第一网络,第二业务独占第二网络,实现网络隔离。Therefore, in the embodiments of the present application, the first receiving window and the fourth receiving window can be set to a larger value, and the second receiving window and the third receiving window can be set to a smaller value, thereby enabling the first service The first network can be monopolized and the second service can monopolize the second network to achieve network isolation.
需要说明的是,本申请实施例中当第一网络的时延小于第二网络的时延时,通过第一网络建立的链路又可以称之为往返时延(round trip time,RTT)相对较小的MPTCP-subflow(子流),通过第二网络建立的链路又可以称之为RTT相对较大的MPTCP-subflow。It should be noted that, in the embodiment of the present application, when the time delay of the first network is less than the time delay of the second network, the link established through the first network may also be referred to as a round trip time (RTT) relative The smaller MPTCP-subflow (subflow), and the link established through the second network may be called MPTCP-subflow with a relatively larger RTT.
本申请实施例中电子设备100对第一业务和第二业务进行网络隔离后,可以通过逐渐增大第三接收窗口的取值来实现第二业务对第一网络的剩余带宽资源的占用。In the embodiment of the present application, after the electronic device 100 performs network isolation on the first service and the second service, the second service may gradually occupy the remaining bandwidth resources of the first network by gradually increasing the value of the third receiving window.
具体的,电子设备100可以按照第一步长增大第三接收窗口的取值。例如第一步长可以为第三接收窗口的上限值的一半,也可以为第三接收窗口的上限的四分之一等。可以根据不同业务类型预设,也可以由用户设置或修改。Specifically, the electronic device 100 may increase the value of the third receiving window according to the first step. For example, the first step length may be half of the upper limit of the third receiving window, or may be one quarter of the upper limit of the third receiving window. It can be preset according to different business types, or can be set or modified by the user.
电子设备100当增大第三接收窗口的取值后,判断第一业务的时延是否超过预设阈值,若未超过,可以继续增大第三接收窗口的取值。当增大第三接收窗口的取值后,若第一业务的时延超过预设阈值,则减小第三接收窗口的取值,然后继续判断的第一业务的时延是否超过预设阈值。需要说明的是,电子设备100可以按照第二步长减小第三接收窗口的取值。例如第二步长可以为第三接收窗口的上限的一半,也可以为第三接收窗口的上限的四分之一等。其中,第一步长可以与第二步长相同,也可以与第二步长不同。After increasing the value of the third receiving window, the electronic device 100 determines whether the delay of the first service exceeds a preset threshold, and if it does not exceed, may continue to increase the value of the third receiving window. After increasing the value of the third receiving window, if the delay of the first service exceeds the preset threshold, then decrease the value of the third receiving window, and then continue to determine whether the delay of the first service exceeds the preset threshold . It should be noted that the electronic device 100 may reduce the value of the third receiving window according to the second step. For example, the second step size may be half of the upper limit of the third receiving window, or may be one quarter of the upper limit of the third receiving window. The first step size may be the same as the second step size, or may be different from the second step size.
若减小第三接收窗口的取值后,第一业务的时延未超过预设阈值,则可以继续增大第三接收窗口的取值。若减小第三接收窗口的取值后,第一业务的时延还超过预设阈值,则可以继续减小第三接收窗口的取值。如此电子设备100可以实现在第一业务满足时延要求的情况下,使得第二业务实现资源的最大利用,从而有助于提升带宽资源的利用率。If the value of the third receiving window is reduced, and the delay of the first service does not exceed the preset threshold, the value of the third receiving window may continue to be increased. If the value of the third receiving window is reduced and the delay of the first service exceeds the preset threshold, the value of the third receiving window may be further reduced. In this way, the electronic device 100 can realize the maximum utilization of resources of the second service when the first service meets the delay requirement, thereby helping to improve the utilization of bandwidth resources.
在一些实施例中,电子设备100当第一业务的时延未超过预设阈值,且第三接收窗口的取值为最大值时(例如,第三接收窗口取值为a1时,第一业务的时延没有超过预设阈值;当增大第三接收窗口取值到a1+第一步长时,第一业务的时延超过了预设阈值,则a1为第三接收窗口的最大取值。或者第三接收窗口取值为a1时,第一业务的时延没有超过预设阈值;当增大第三接收窗口取值到a1+第一步长时,第一业务的时延超过了预设阈值;于是减小第三接收窗口取值到a1+第一步长-第二步长时(其中第二步长不等于第一步长),第一业务的时延没有超过预设阈值,则a1+第一步长-第二步长为第三接收窗口的最大取值。),暂停对第三接收窗口的取值的动态调整,从而有助于节省电子设备的功耗。具体的,电子设备100的处理器110当检测到第一业务的时延未超过预设阈值,且第三接收窗口的取值为最大值时,暂停对第三接收窗口的取值的动态调整。In some embodiments, when the delay of the first service does not exceed the preset threshold and the value of the third receiving window is the maximum value (for example, when the value of the third receiving window is a1, the first service The delay of does not exceed the preset threshold; when the value of the third receiving window is increased to a1 + the first step length, the delay of the first service exceeds the preset threshold, then a1 is the maximum value of the third receiving window. Or when the value of the third receiving window is a1, the delay of the first service does not exceed the preset threshold; when the value of the third receiving window is increased to a1 + the first step length, the delay of the first service exceeds the preset Threshold; so when the value of the third receiving window is reduced to a1+first step-second step (where the second step is not equal to the first step), the delay of the first service does not exceed the preset threshold, then a1 + first step length-the second step length is the maximum value of the third receiving window.), suspending the dynamic adjustment of the value of the third receiving window, thereby helping to save power consumption of the electronic device. Specifically, when the processor 110 of the electronic device 100 detects that the delay of the first service does not exceed a preset threshold and the value of the third receiving window is the maximum value, it suspends the dynamic adjustment of the value of the third receiving window .
在另一些实施例中,电子设备100还可以在第二业务暂停或者完成,又或者的第一业务退出后,则停止调整第三接收窗口的取值,从而停止动态调整第二业务占用第二网络的带宽资源。当然,在检测到第一业务的时延超过预设阈值,或者预设时间届满后,或者检测到其他预设条件满足时,可以再开始以上检测和调整过程。In other embodiments, the electronic device 100 may also stop adjusting the value of the third receiving window after the second service is suspended or completed, or after the first service exits, thereby stopping dynamically adjusting the second service to occupy the second Network bandwidth resources. Of course, when the delay of detecting the first service exceeds a preset threshold, or after the preset time expires, or when other preset conditions are detected, the above detection and adjustment process may be started again.
在一些实施例中,电子设备100当从第一网络的时延小于第二网络的时延,变化为第一网络的时延大于第二网络的时延时,则可以自动交换接收窗口的配置。具体的,自动交换接收窗口的配置为:自动交换第一接收窗口和第二接收窗口的取值,以及第三接收窗口和第四接收窗口的取值,以实现链路交换。具体的,电子设备100可以通过处理器110执行自动交换第一接收窗口和第二接收窗口的取值,以及第三接收窗口和第四接收窗口的取值的步骤,也可以由专用处理器执行,对此不作限定。In some embodiments, when the delay from the first network is less than the delay of the second network, and the change is that the delay of the first network is greater than the delay of the second network, the configuration of the receiving window may be automatically exchanged . Specifically, the configuration of the automatic exchange receiving window is: automatically exchange the values of the first receiving window and the second receiving window, and the values of the third receiving window and the fourth receiving window, so as to implement link switching. Specifically, the electronic device 100 may perform the steps of automatically exchanging the values of the first receiving window and the second receiving window, and the values of the third receiving window and the fourth receiving window through the processor 110, or may be performed by a dedicated processor , This is not limited.
以第一网络为WiFi网络、第二网络为4G网络为例。第一接收窗口为第一业务针对通过WiFi网络建立的链路的接收窗口,第二接收窗口为第一业务针对通过4G网络建立的链路的接收窗口,第三接收窗口为第二业务针对通过WiFi网络建立的链路的接收窗口,第四接收窗口为第二业务针对通过4G网络建立的链路的接收窗口。Take the first network as a WiFi network and the second network as a 4G network as an example. The first receiving window is the receiving window of the first service for the link established through the WiFi network, the second receiving window is the receiving window of the first service for the link established by the 4G network, and the third receiving window is the second service The receiving window of the link established by the WiFi network, and the fourth receiving window is the receiving window of the second service for the link established by the 4G network.
电子设备100当WiFi网络的时延小于4G网络的时延时,第一接收窗口的取值设置为第 一值,第二接收窗口的取值设置为第二值,则当网络时延变化为:WiFi网络的时延大于4G网络的时延后,则将第一接收窗口的取值设置为第二值,将第二接收窗口的取值设置为第一值。当WiFi网络的时延小于4G网络的时延时,第三接收窗口的取值设置为第三值,第四接收窗口的取值设置为第四值,则当网络时延变化为:WiFi网络的时延大于4G网络的时延后,则将第三接收窗口的取值设置为第四值,将第四接收窗口的取值设置为第三值。When the delay of the WiFi network is less than that of the 4G network, the value of the first receiving window is set to the first value, and the value of the second receiving window is set to the second value, then when the network delay changes to : After the delay of the WiFi network is greater than that of the 4G network, the value of the first receiving window is set to the second value, and the value of the second receiving window is set to the first value. When the delay of the WiFi network is less than that of the 4G network, the value of the third receiving window is set to the third value, and the value of the fourth receiving window is set to the fourth value, then when the network delay changes to: WiFi network After the delay of is greater than that of the 4G network, the value of the third receiving window is set to the fourth value, and the value of the fourth receiving window is set to the third value.
示例的,本申请实施例中针对时延敏感类业务和带宽敏感类业务,接收窗口的配置的互换是分钟级调整的,以降低对电子设备100运行的业务的影响。例如,电子设备100可以在接收窗口的配置互换后,设置一个定时器(timer),在timer溢出前不检测网络的时延情况,从而保证电子设备100不频繁互换接收窗口的配置。又例如,电子设备100可以在接收窗口的配置互换后,设置一个定时器(timer),在timer溢出前检测网络的时延情况,但是在检测到网络的时延情况发生相对变化后,若timer未溢出,则不进行处理,若timer溢出,才互换接收窗口的配置,从而保证电子设备100不频繁互换接收窗口的配置。Exemplarily, in the embodiments of the present application, for the delay-sensitive services and the bandwidth-sensitive services, the exchange of the configuration of the receiving window is adjusted on a minute level to reduce the impact on the services operated by the electronic device 100. For example, the electronic device 100 may set a timer after the configuration of the receiving window is exchanged, and do not detect the network delay before the timer overflows, thereby ensuring that the electronic device 100 does not frequently exchange the configuration of the receiving window. For another example, the electronic device 100 may set a timer after the configuration of the receiving window is exchanged to detect the delay of the network before the timer overflows, but after detecting a relative change in the delay of the network, if If the timer does not overflow, no processing is performed. If the timer overflows, the configuration of the receiving window is exchanged, thereby ensuring that the electronic device 100 does not frequently exchange the configuration of the receiving window.
在一些实施例中,电子设备100可以通过运行的业务所持的令牌来区分时延敏感类业务和带宽敏感类业务。从而有助于简化电子设备100区分时延敏感类业务和带宽敏感类业务的方式。例如,时延敏感类业务持有红色令牌、带宽敏感类业务持有蓝色令牌。In some embodiments, the electronic device 100 can distinguish between delay-sensitive services and bandwidth-sensitive services by tokens held by the running services. Therefore, it helps to simplify the manner in which the electronic device 100 distinguishes between delay-sensitive services and bandwidth-sensitive services. For example, delay-sensitive services hold red tokens, and bandwidth-sensitive services hold blue tokens.
示例的,电子设备100可以在检测到启动一个应用时,从数据库中查找与启动的应用的包名对应的业务类型。其中数据库可以为电子设备生产商可以预先设置在电子设备100中的,也可以为电子设备100从网络上获取的。数据库中包括应用的包名和业务类型的对应关系。例如,微信的包名对应的业务类型为时延敏感类业务、应用市场的包名对应的业务类型为带宽敏感类业务、王者荣耀的包名对应的业务类型为时延敏感类业务等。然后,电子设备100根据查找到的与启动的应用的包名对应的业务类型,标记该启动的应用。应理解,本申请实施例中标记该启动的应用的过程即为为该启动的应用发令牌的过程。示例的,红色令牌对应时延敏感类业务,蓝色令牌对应带宽敏感类业务,例如0可以代表红色令牌,1可以代表蓝色令牌,则当电子设备100查找到的与启动的应用的包名对应的业务类型为时延敏感类业务时,则为该应用/业务建立一条数据记录,数据记录包括业务对应的标记位,该标记位设置为0。当电子设备100查找到的与启动的应用的包名对应的业务类型为带宽敏感类业务时,则为该应用/业务建立一条数据记录,数据记录包括业务对应的标记位,该标记位设置为1。For example, when detecting that an application is started, the electronic device 100 may look up the service type corresponding to the package name of the started application from the database. The database may be set by the electronic device manufacturer in the electronic device 100 in advance, or may be obtained by the electronic device 100 from the network. The database includes the correspondence between the application package name and the service type. For example, the service type corresponding to the package name of WeChat is a delay-sensitive service, the service type corresponding to the package name in the application market is a bandwidth-sensitive service, and the service type corresponding to the package name of King Glory is a delay-sensitive service. Then, the electronic device 100 marks the activated application according to the found service type corresponding to the package name of the activated application. It should be understood that the process of marking the started application in the embodiment of the present application is the process of issuing a token for the started application. For example, a red token corresponds to a delay-sensitive service, and a blue token corresponds to a bandwidth-sensitive service. For example, 0 can represent a red token and 1 can represent a blue token. When the electronic device 100 finds the When the service type corresponding to the package name of the application is a delay-sensitive service, a data record is established for the application/service. The data record includes a mark bit corresponding to the service, and the mark bit is set to 0. When the service type corresponding to the package name of the launched application found by the electronic device 100 is a bandwidth-sensitive service, a data record is established for the application/service. The data record includes a mark bit corresponding to the service, and the mark bit is set to 1.
本申请实施例还可以通过其它方式来区分时延敏感类业务和带宽敏感类业务,对此不作限定。The embodiments of the present application may also distinguish delay-sensitive services and bandwidth-sensitive services in other ways, which is not limited.
例如,电子设备100当同时接入WiFi网络和4G网络时,若在后台使用爱奇艺下载视频,下载速度为10Mb/s,其中,爱奇艺的包名对应的业务类型为带宽敏感类业务,持有蓝色令牌,在这种情况下,电子设备100响应于用户打开王者荣耀的操作,在前台启动王者荣耀,其中,王者荣耀的包名对应的业务类型为时延敏感类业务,持有红色令牌,电子设备100在持有蓝色令牌的业务和持有红色令牌的业务同时运行时,启动本申请实施例的技术方案,从而能够使得电子设备100在前台运行的王者荣耀保持一直流畅,而爱奇艺下载视频的速度可能会逐渐提高,例如从1Mb/s、3Mb/s、…、8MB/s然后趋于动态稳定,使得电子设备100可以动态保持8Mb/s的下载速度完成后台视频的下载。For example, when the electronic device 100 is connected to a WiFi network and a 4G network at the same time, if iQiyi is used to download videos in the background, the download speed is 10 Mb/s, where the service type corresponding to the iQiyi package name is a bandwidth-sensitive service , Holding a blue token, in this case, the electronic device 100 starts King Glory in the foreground in response to the user's operation to open King Glory, where the service type corresponding to King Glory's package name is a delay-sensitive service, Holding the red token, the electronic device 100 starts the technical solution of the embodiment of the present application when the business holding the blue token and the business holding the red token run simultaneously, thereby enabling the king of the electronic device 100 to run in the foreground Glory keeps flowing smoothly, and the speed of iQIYI downloading videos may gradually increase, for example, from 1Mb/s, 3Mb/s, ..., 8MB/s and then tend to be dynamically stable, so that the electronic device 100 can dynamically maintain 8Mb/s Download speed completes downloading of background videos.
实施例二:电子设备100支持同时接入第一网络和第二网络,且当前只与第一网络建立了连接、启动了第一业务、未启动第二业务的情况。其中第一业务为时延敏感类业务, 第二业务为带宽敏感类业务;或者,第一业务为带宽敏感类业务,第二业务时延敏感类业务。Embodiment 2: The electronic device 100 supports simultaneous access to the first network and the second network, and currently only a connection is established with the first network, the first service is started, and the second service is not started. The first service is a delay-sensitive service, and the second service is a bandwidth-sensitive service; or, the first service is a bandwidth-sensitive service, and the second service is a delay-sensitive service.
下面以第一业务为时延敏感类业务,第二业务为带宽敏感类业务为例,电子设备100当支持同时接入第一网络和第二网络时,如果当前只与第一网络建立了连接,且启动了第一业务,则可以响应于启动第二业务的操作,提示用户打开第二网络,也可以自动打开第二网络,并提示用户第二网络已打开。例如,第一网络为蜂窝网络,第二网络可以为WiFi网络。又例如,当电子设备100安装有两张SIM卡时,第一网络为蜂窝网络,第二网络可以为蜂窝网络,也可以为WiFi网络等。示例的,电子设备100可以通过在显示屏150显示提示信息,来提示用户打开第二网络或者提示用户第二网络已打开。例如,如图3所示,电子设备100显示提示框300,其中提示框300包括提示信息,提示信息用于提示用户是否打开第二网络。电子设备100可以响应于用户选中虚拟按钮“是”的操作打开第二网络,响应于用户选中虚拟按钮“否”的操作不打开第二网络。又示例,当电子设备150当前接入的第一网络为蜂窝网络,且电子设备100中安装有两个SIM卡,则可以如图4所示,电子设备100显示提示框400,提示框400包括提示信息,提示信息用于提示用户打开第二网络。电子设备100可以响应于用户选中虚拟按钮401的操作打开WiFi网络,响应于用户选中虚拟按钮402的操作打开另一蜂窝网络。若电子设备100在超过预设时长后仍未检测到用户选中虚拟按钮401或者虚拟按钮402,则可以自动打开WiFi网络,或者自动打开另一蜂窝网络,也可以不打开第二网络。又示例的,电子设备100可以通过语音提示用户打开第二网络或者提示用户第二网络已打开等,本申请实施例电子设备100提示用户的方式不作限定。在上述情况下,又示例的,电子设备100当带宽敏感类业和时延敏感类业务其中一个业务关闭或暂停、或者带宽敏感类业务下载完成后,自动关闭第二网络。从而有助于避免流量浪费,节省费用。The following takes the first service as a delay-sensitive service and the second service as a bandwidth-sensitive service as an example. When the electronic device 100 supports simultaneous access to the first network and the second network, if only a connection with the first network is currently established , And the first service is started, in response to the operation of starting the second service, the user may be prompted to open the second network, or the second network may be automatically opened, and the user is prompted to open the second network. For example, the first network is a cellular network, and the second network may be a WiFi network. For another example, when two SIM cards are installed in the electronic device 100, the first network is a cellular network, and the second network may be a cellular network or a WiFi network. For example, the electronic device 100 may prompt the user to open the second network or prompt the user that the second network has been opened by displaying prompt information on the display screen 150. For example, as shown in FIG. 3, the electronic device 100 displays a prompt box 300, where the prompt box 300 includes prompt information, and the prompt information is used to prompt the user whether to open the second network. The electronic device 100 may open the second network in response to the user's operation of selecting the virtual button "Yes" and not open the second network in response to the user's operation of selecting the virtual button "No". As another example, when the first network currently accessed by the electronic device 150 is a cellular network and two SIM cards are installed in the electronic device 100, as shown in FIG. 4, the electronic device 100 displays a prompt box 400, and the prompt box 400 includes Prompt information, which is used to prompt the user to open the second network. The electronic device 100 may open the WiFi network in response to the user's operation of selecting the virtual button 401 and open another cellular network in response to the user's operation of selecting the virtual button 402. If the electronic device 100 does not detect that the user selects the virtual button 401 or the virtual button 402 after exceeding the preset duration, the WiFi network may be automatically turned on, or another cellular network may be automatically turned on, or the second network may not be turned on. For another example, the electronic device 100 may prompt the user to open the second network by voice or prompt the user that the second network has been opened, etc. The manner in which the electronic device 100 prompts the user in the embodiment of the present application is not limited. In the above case, as another example, the electronic device 100 automatically shuts down the second network after one of the bandwidth-sensitive business and the delay-sensitive business is shut down or suspended, or after the bandwidth-sensitive business download is completed. Thereby helping to avoid waste of traffic and saving costs.
在一些实施例中,电子设备100当支持同时接入第一网络和第二网络时,如果当前只与第一网络建立了连接,且启动了第一业务,则当响应于启动第二业务的操作,启动第二业务后,若第一业务的时延超过预设阈值,或者第二业务的传输速率不满足用户需求,则提示用户打开第二网络或者自动打开第二网络。如果第一业务的时延未超过预设阈值,以及第二业务的传输速率满足用户需求,则不再提示用户打开第二网络或者不再自动打开第二网络。In some embodiments, when the electronic device 100 supports simultaneous access to the first network and the second network, if only a connection with the first network is currently established and the first service is started, the electronic device 100 responds to the After the operation, after starting the second service, if the delay of the first service exceeds a preset threshold, or the transmission rate of the second service does not meet the user's needs, the user is prompted to open the second network or automatically open the second network. If the delay of the first service does not exceed the preset threshold and the transmission rate of the second service meets user requirements, the user is no longer prompted to open the second network or the second network is no longer automatically opened.
电子设备100当打开第二网络后,可以执行本申请实施例业务控制的方法,具体实现方式可以参见实施例一,在此不再赘述。After opening the second network, the electronic device 100 can execute the service control method in the embodiment of the present application. For a specific implementation manner, refer to Embodiment 1, and details are not described herein again.
实施例三:电子设备100只能通过一个网络建立的连接进行通信的场景。Embodiment 3: The electronic device 100 can only communicate through a connection established by one network.
电子设备100当与第一网络建立了连接时,若既运行有带宽敏感类业务,又运行有时延敏感类业务,则可以优先保证时延敏感类业务占用第一网络的带宽资源,然后在满足时延敏感类业务的时延要求的情况下,动态调整带宽敏感类业务占用第一网络的剩余带宽资源,以达到带宽敏感类业务最大化利用第一网络的带宽资源。具体的,与以上实施例描述相同,通过将时延敏感类业务的接收窗口设置为一个较大的值,将带宽敏感类业务的接收窗口设置为一个较小值,在保证时延敏感类业务的时延不超过预设阈值的前提下,提高带宽敏感类业务占用的带宽,直到到达时延类敏感业务达到预设阈值,或者可以一直动态调整中(时延敏感类业务时延未超过预设阈值则增加带宽敏感类业务占用的带宽,如果时延敏感类业务带宽超阈值则减小带宽敏感类业务占用的带宽,一直调下去)。When the electronic device 100 establishes a connection with the first network, if it runs both bandwidth-sensitive services and delay-sensitive services, it can first ensure that the delay-sensitive services occupy the bandwidth resources of the first network, and then meet In the case of delay requirements of the delay-sensitive services, dynamically adjust the bandwidth-sensitive services to occupy the remaining bandwidth resources of the first network, so as to maximize the utilization of the bandwidth resources of the first network by the bandwidth-sensitive services. Specifically, as described in the above embodiment, by setting the receiving window of the delay-sensitive service to a larger value and setting the receiving window of the bandwidth-sensitive service to a smaller value, the delay-sensitive service is guaranteed. On the premise that the delay does not exceed the preset threshold, increase the bandwidth occupied by bandwidth-sensitive services until the delay-sensitive service reaches the preset threshold, or it can be dynamically adjusted (the delay of the delay-sensitive service does not exceed the preset threshold) Setting a threshold increases the bandwidth occupied by bandwidth-sensitive services. If the bandwidth of delay-sensitive services exceeds the threshold, it reduces the bandwidth occupied by bandwidth-sensitive services.
需要说明的是,第一网络可以为蜂窝网络,也可以为无线网络,例如WiFi网络、个人 认定等,还可以为有线网络等。其中,电子设备100可以当与第一网络建立了连接后,先启动带宽敏感类业务,再启动时延敏感类业务,还可以先启动时延敏感类业务,再启动带宽敏感类业务,本申请实施例对启动带宽敏感类业务和启动时延敏感类业务的先后顺序不作限定。It should be noted that the first network may be a cellular network or a wireless network, such as a WiFi network, personal identification, etc., or a wired network. Among them, the electronic device 100 may start the bandwidth-sensitive service first and then the delay-sensitive service after establishing a connection with the first network, and may also start the delay-sensitive service first and then start the bandwidth-sensitive service. This application The embodiment does not limit the order of starting bandwidth-sensitive services and delay-sensitive services.
下面以第一业务为时延敏感类业务,第二业务为带宽敏感类业务为例。电子设备100与第一网络建立了连接后,若既运行有第一业务,又运行有第二业务,则可以将第一业务的接收窗口设置为x,将第二业务的接收窗口设置为y,其中,x可以为一个较大的值,也可以基于现有技术的方式进行设置,y为一个较小的值,例如0。然后,电子设备100在第一业务的时延不超过预设阈值的前提下,逐渐增大第二业务的接收窗口的取值,使得第二业务逐渐挤占第一网络的带宽资源,从而有助于提升带宽资源的利用率,以及提高带宽敏感类业务的后台下载速率。The following takes the first service as a delay-sensitive service and the second service as a bandwidth-sensitive service as an example. After the electronic device 100 establishes a connection with the first network, if both the first service and the second service are running, the receiving window of the first service may be set to x, and the receiving window of the second service may be set to y , Where x can be a large value or can be set based on the prior art, and y is a small value, such as 0. Then, on the premise that the delay of the first service does not exceed the preset threshold, the electronic device 100 gradually increases the value of the reception window of the second service, so that the second service gradually squeezes the bandwidth resources of the first network, thereby helping To improve the utilization of bandwidth resources and increase the background download rate of bandwidth-sensitive services.
具体的,电子设备100动态调整第二业务挤占第一网络的带宽资源的方式,可以参见实施例一种电子设备100动态调整第二业务挤占第一网络的带宽资源的方式,在此不再赘述。Specifically, for the manner in which the electronic device 100 dynamically adjusts the second service to occupy the bandwidth resources of the first network, reference may be made to the manner in which the electronic device 100 dynamically adjusts the second service to occupy the bandwidth resources of the first network, and details are not described herein again. .
需要说明的是,电子设备100还可以在启动时延敏感类业务和/或带宽敏感类业务后,再建立与第一网络的连接,也可以在启动时延敏感类业务和/或带宽敏感类业务之前,建立与第一网络的连接。It should be noted that the electronic device 100 may also establish a connection with the first network after starting the delay-sensitive services and/or bandwidth-sensitive services, or may start the delay-sensitive services and/or bandwidth-sensitive services. Before business, establish a connection with the first network.
结合上述实施例及附图,本申请实施例提供一种业务控制的方法,该方法可以在具有图1所示的硬件结构的电子设备中。例如,电子设备可以同时接入第一网络和第二网络。With reference to the above embodiments and the accompanying drawings, embodiments of the present application provide a method for service control, which may be in an electronic device having the hardware structure shown in FIG. 1. For example, the electronic device can simultaneously access the first network and the second network.
具体的,如图5所示,为本申请实施例业务控制的方法的流程示意图,包括以下步骤。Specifically, as shown in FIG. 5, it is a schematic flowchart of the service control method according to an embodiment of the present application, and includes the following steps.
步骤501,电子设备100与第一网络和第二网络建立连接,以及监测第一网络和第二网络的时延大小。其中,本申请实施例不限定电子设备100与第一网络建立连接、以及监测第一网络和第二网络的时延大小的顺序。Step 501, the electronic device 100 establishes a connection with the first network and the second network, and monitors the delay size of the first network and the second network. The embodiment of the present application does not limit the order in which the electronic device 100 establishes a connection with the first network and monitors the delay sizes of the first network and the second network.
步骤502,电子设备100识别到启动第一业务、以及第二业务,其中第一业务为时延敏感类业务,第二业务为带宽敏感类业务。In step 502, the electronic device 100 recognizes that the first service and the second service are started, where the first service is a delay-sensitive service and the second service is a bandwidth-sensitive service.
本申请实施例不限制步骤501和步骤502的顺序,也不限定启动第一业务和启动第二业务的顺序。The embodiment of the present application does not limit the order of step 501 and step 502, nor the order of starting the first service and the second service.
在一些实施例中,电子设备100可以通过令牌标识启动的不同的业务。例如电子设备100当监测到运行有蓝色令牌和红色令牌的业务时,则识别到启动第一业务、以及第二业务。其中,红色令牌用于标识时延敏感类业务,蓝色令牌用于标识带宽敏感类业务。In some embodiments, the electronic device 100 can identify the different services started by the token. For example, when the electronic device 100 detects a service running a blue token and a red token, it recognizes that the first service and the second service are started. Among them, the red token is used to identify delay-sensitive services, and the blue token is used to identify bandwidth-sensitive services.
步骤503,电子设备100对第一业务和第二业务进行网络隔离,使得第一业务独占第一网络和第二网络中时延较小的网络,第二业务独占第一网络和第二网络中时延较大的网络。Step 503, the electronic device 100 performs network isolation on the first service and the second service, so that the first service monopolizes the network with a smaller delay in the first network and the second network, and the second service monopolizes the first network and the second network Networks with large delays.
在一些实施例中,电子设备100可以通过将第一接收窗口设置为q、第二接收窗口设置为m,将第三接收窗口设置为n,将第四接收窗口设置为p,实现对第一业务和第二业务进行网络隔。其中,q、p的取值可以为较大的值,例如接收窗口的上限值,还可以基于现有技术的设置方式进行设置,m、n的取值为较小的值,例如0,需要说明的是,m、n的取值可以相同,也可以不同。具体的,第一接收窗口为第一业务针对通过第一网络建立的链路的接收窗口简称为,第二接收窗口为第一业务针对通过第二网络建立的链路的接收窗口,第三接收窗口为第二业务针对通过第一网络建立的链路的接收窗口,第四接收窗口为第二 业务针对通过第二网络建立的链路的接收窗口。In some embodiments, the electronic device 100 can achieve the first by setting the first receiving window to q, the second receiving window to m, the third receiving window to n, and the fourth receiving window to p The business and the second business are separated by the network. Among them, the values of q and p can be larger values, such as the upper limit of the receiving window, and can also be set based on the setting method in the prior art, and the values of m and n are smaller values, such as 0, It should be noted that the values of m and n may be the same or different. Specifically, the first receiving window is the receiving window of the first service for the link established through the first network, and the second receiving window is the receiving window of the first service for the link established through the second network, and the third receiving window The window is the receiving window of the second service for the link established by the first network, and the fourth receiving window is the receiving window of the second service for the link established by the second network.
在一些实施例中,电子设备100可以在对第一业务和第二业务进行网络隔离后,按照第一步长增大第三接收窗口的取值,然后执行步骤504,也可以在对第一业务和第二业务进行网络隔离后直接执行步骤504,对此不作限定。In some embodiments, after performing network isolation on the first service and the second service, the electronic device 100 may increase the value of the third receiving window according to the first step, and then perform step 504. After the network isolation of the service and the second service, step 504 is directly executed, which is not limited.
步骤504,电子设备100判断第一业务的时延是否超过预设阈值,若否,执行步骤505,否则执行步骤506。In step 504, the electronic device 100 determines whether the delay of the first service exceeds a preset threshold. If not, step 505 is performed, otherwise step 506 is performed.
步骤505,电子设备100按照第一步长增大第三接收窗口的取值,然后重新执行步骤504。In step 505, the electronic device 100 increases the value of the third receiving window according to the first step, and then executes step 504 again.
步骤506,电子设备100按照第二步长减小第三接收窗口的取值,然后重新执行步骤504。In step 506, the electronic device 100 decreases the value of the third receiving window according to the second step size, and then executes step 504 again.
步骤507,电子设备100当检测到第一网络和第二网络的时延的相对大小发生的相对变化满足预设条件后,自动交换第一接收窗口和第二接收窗口的取值,以及第三接收窗口和第四接收窗口的取值,然后执行步骤504。Step 507, the electronic device 100 automatically exchanges the values of the first receiving window and the second receiving window after detecting that the relative change in the relative size of the delays of the first network and the second network meets the preset condition, and the third The values of the receiving window and the fourth receiving window, and then step 504 is executed.
例如,由于用户移动或网络质量自身变化,由原来第一网络相比第二网络的时延大,变成第一网络相比第二网络时延小了;而第二网络由相对第一网络时延小变成了相对第一网络时延大了;或者在这个时延相对变化的差值达到一个阈值;或者在这个时延相对变化达到一定时间阈值等。需要说明的是,自动交,接收窗口的配置是分钟级的,具体的实现方式可以参见上述实施例中的相关描述,在此不再赘述。For example, due to user movement or changes in network quality itself, the delay from the first network to the second network is larger, and the delay from the first network to the second network is smaller; the second network is from the first network. The smaller delay becomes larger than the first network delay; or the difference in the relative change of the delay reaches a threshold; or the relative change in the delay reaches a certain time threshold. It should be noted that the configuration of the automatic delivery and the receiving window is on the minute level. For a specific implementation manner, reference may be made to the related description in the foregoing embodiment, and details are not described herein again.
本申请实施例中通过在电子设备侧改变对业务控制的方式,无需对应用程序本身和服务器侧进行修改,因此有助于降低方案实现的复杂性。In the embodiment of the present application, by changing the way of controlling the service on the electronic device side, there is no need to modify the application program itself and the server side, thus helping to reduce the complexity of solution implementation.
上述各个实施例可以单独使用,也可以相互结合使用,以实现不同的技术效果。The above embodiments can be used alone or in combination with each other to achieve different technical effects.
上述本申请提供的实施例中,从电子设备作为执行主体的角度对本申请实施例提供的方法进行了介绍。为了实现上述本申请实施例提供的方法中的各功能,电子设备可以包括硬件结构和/或软件模块,以硬件结构、软件模块、或硬件结构加软件模块的形式来实现上述各功能。上述各功能中的某个功能以硬件结构、软件模块、还是硬件结构加软件模块的方式来执行,取决于技术方案的特定应用和设计约束条件。In the above embodiments provided by the present application, the method provided by the embodiments of the present application is introduced from the perspective of an electronic device as an execution subject. In order to realize each function in the method provided by the embodiments of the present application, the electronic device may include a hardware structure and/or a software module, and implement the above functions in the form of a hardware structure, a software module, or a hardware structure plus a software module. Whether one of the above functions is executed in a hardware structure, a software module, or a hardware structure plus a software module depends on the specific application of the technical solution and design constraints.
基于相同的构思,图6所示为本申请提供的一种电子设备600,用于执行本申请以上各实施例提供的方法。示例的,电子设备600包括处理器601和存储器602。其中,存储器602用于存储程序指令,处理器601用于调用存储器602中存储的程序指令,实现本申请实施例业务控制的方法。例如,存储器602存储有执行图5所示的业务控制的方法的程序指令,则处理器601调用存储器602存储的执行图5所示的业务控制的方法的程序指令,执行图5所示的业务控制方法。Based on the same concept, FIG. 6 shows an electronic device 600 provided by the present application, which is used to execute the methods provided by the above embodiments of the present application. Exemplarily, the electronic device 600 includes a processor 601 and a memory 602. The memory 602 is used to store program instructions, and the processor 601 is used to call the program instructions stored in the memory 602 to implement the service control method in the embodiment of the present application. For example, if the memory 602 stores program instructions for executing the method of business control shown in FIG. 5, the processor 601 calls the program instructions stored in the memory 602 for executing the method of business control shown in FIG. 5, and executes the business shown in FIG. Control Method.
本申请实施例中处理器601可以是通用处理器、数字信号处理器(digital signal processor,DSP)、专用集成电路(application specific integrated circuit,ASIC)、现成可编程门阵列(field programmable gate array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存取存储器 (random access memory,RAM)、闪存、只读存储器(read-only memory,ROM)、可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器读取存储器中的指令,结合其硬件完成上述方法的步骤。In the embodiment of the present application, the processor 601 may be a general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), an existing programmable gate array (FPGA), field programmable gate array (FPGA) ) Or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The methods, steps, and logical block diagrams disclosed in the embodiments of the present application may be implemented or executed. The general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in conjunction with the embodiments of the present application may be directly embodied and executed by a hardware decoding processor, or may be executed and completed by a combination of hardware and software modules in the decoding processor. Software modules can be located in random access memory (RAM), flash memory, read-only memory (ROM), programmable read-only memory or electrically erasable programmable memory, registers, etc. Storage media. The storage medium is located in the memory. The processor reads the instructions in the memory and combines the hardware to complete the steps of the above method.
装置的具体实现方式的相关特征可以参照上文的方法部分,此处不再赘述Relevant features of the specific implementation of the device can refer to the method section above, which will not be repeated here
所属领域的技术人员可以清楚地了解到本申请实施例可以用硬件实现,或固件实现,或它们的组合方式来实现。当使用软件实现时,可以将上述功能存储在计算机可读介质中或作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是计算机能够存取的任何可用介质。以此为例但不限于:计算机可读介质可以包括RAM、ROM、电可擦可编程只读存储器(electrically erasable programmable read only memory,EEPROM)、只读光盘(compact disc read-Only memory,CD-ROM)或其他光盘存储、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质。此外。任何连接可以适当的成为计算机可读介质。例如,如果软件是使用同轴电缆、光纤光缆、双绞线、数字用户线(digital subscriber line,DSL)或者诸如红外线、无线电和微波之类的无线技术从网站、服务器或者其他远程源传输的,那么同轴电缆、光纤光缆、双绞线、DSL或者诸如红外线、无线和微波之类的无线技术包括在所属介质的定影中。如本申请实施例所使用的,盘(disk)和碟(disc)包括压缩光碟(compact disc,CD)、激光碟、光碟、数字通用光碟(digital video disc,DVD)、软盘和蓝光光碟,其中盘通常磁性的复制数据,而碟则用激光来光学的复制数据。上面的组合也应当包括在计算机可读介质的保护范围之内。Those skilled in the art can clearly understand that the embodiments of the present application can be implemented by hardware, firmware, or a combination thereof. When implemented in software, the above functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media includes computer storage media and communication media, where communication media includes any medium that facilitates transfer of a computer program from one place to another. A storage medium may be any available medium that can be accessed by a computer. Take this as an example but not limited to: computer readable media may include RAM, ROM, electrically erasable programmable read-only memory (electrically erasable programmable read only memory, EEPROM), compact disc read-only (memory, CD- ROM) or other optical disk storage, magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer. Also. Any connection can become a computer-readable medium as appropriate. For example, if the software is transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave, Then coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, wireless, and microwave are included in the fixing of the media. As used in the embodiments of the present application, disks and discs include compact discs (CDs), laser discs, optical discs, digital video discs (DVDs), floppy disks, and Blu-ray discs, wherein Disks usually copy data magnetically, while disks use lasers to copy data optically. The above combination should also be included in the protection scope of the computer-readable medium.
总之,以上所述仅为本申请的实施例而已,并非用于限定本申请的保护范围。凡根据本申请的揭露,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。In short, the above is only an embodiment of the present application, and is not intended to limit the protection scope of the present application. Any modifications, equivalent substitutions, improvements, etc. made according to the disclosure of this application shall be included in the scope of protection of this application.

Claims (25)

  1. 一种业务控制的方法,其特征在于,所述方法包括,由电子设备执行以下方法:A method for business control, characterized in that the method includes the following method performed by an electronic device:
    与第一网络和第二网络建立连接;Establish a connection with the first network and the second network;
    当运行有时延敏感类的第一业务和带宽敏感类的第二业务时,对所述第一业务和所述第二业务进行网络隔离,使得所述第一业务占用所述第一网络和所述第二网络中时延较小的网络,所述第二业务占用所述第一网络和所述第二网络中时延较大的网络;When the delay-sensitive first service and the bandwidth-sensitive second service are running, the first service and the second service are network-isolated, so that the first service occupies the first network and all the services A network with a small delay in the second network, and the second service occupies a network with a large delay in the first network and the second network;
    在所述第一业务的时延不超过预设阈值的前提下,动态调整所述第二业务占用的所述第一网络的带宽资源。On the premise that the delay of the first service does not exceed a preset threshold, dynamically adjust the bandwidth resource of the first network occupied by the second service.
  2. 如权利要求1所述的方法,其特征在于,所述当运行有时延敏感类的第一业务和带宽敏感类的第二业务时,对所述第一业务和所述第二业务进行网络隔离,包括:The method according to claim 1, wherein when the delay-sensitive first service and the bandwidth-sensitive second service are running, the first service and the second service are network-isolated ,include:
    当运行有所述第一业务和第二业务时,将第一接收窗口设置为第一值,第二接收窗口设置为第二值,将第三接收窗口设置为第三值,将第四接收窗口设置为第四值;所述第一值大于第二值,所述第四值大于第三值,且所述第二值不大于第一阈值,所述第三值不大于第二阈值;When the first service and the second service are running, the first receiving window is set to the first value, the second receiving window is set to the second value, the third receiving window is set to the third value, and the fourth receiving The window is set to a fourth value; the first value is greater than the second value, the fourth value is greater than the third value, and the second value is not greater than the first threshold, and the third value is not greater than the second threshold;
    其中,所述第一接收窗口为所述第一业务针对通过所述第一网络建立的链路的接收窗口,所述第二接收窗口为所述第一业务针对通过所述第二网络建立的链路的接收窗口,所述第三接收窗口为所述第二业务针对通过所述第一网络建立的链路的接收窗口,所述第四接收窗口为所述第二业务针对通过所述第二网络建立的链路的接收窗口。Wherein, the first receiving window is the receiving window of the first service for the link established through the first network, and the second receiving window is the establishing of the first service for the link established by the second network A receiving window of the link, the third receiving window is the receiving window of the second service for the link established through the first network, and the fourth receiving window is the second service for the passing of the first 2. The receiving window of the link established by the network.
  3. 如权利要求2所述的方法,其特征在于,在所述第一业务的时延不超过预设阈值的前提下,动态调整所述第二业务占用的所述第一网络的带宽资源,包括:The method of claim 2, wherein dynamically adjusting the bandwidth resource of the first network occupied by the second service under the premise that the delay of the first service does not exceed a preset threshold includes: :
    判断所述第一业务的时延是否超过所述预设阈值;Judging whether the delay of the first service exceeds the preset threshold;
    若否,则按照第一步长,增大所述的第三接收窗口的取值;If not, increase the value of the third receiving window according to the first step;
    若是,则按照第二步长,减小所述第三接收窗口的取值。If yes, the value of the third receiving window is reduced according to the second step.
  4. 如权利要求2所述的方法,其特征在于,在所述第一业务的时延不超过预设阈值的前提下,动态调整所述第二业务占用的所述第一网络的带宽资源,包括:The method of claim 2, wherein dynamically adjusting the bandwidth resource of the first network occupied by the second service under the premise that the delay of the first service does not exceed a preset threshold includes: :
    按照第一步长,增大所述的第三接收窗口的取值;According to the first step, increase the value of the third receiving window;
    在增大所述第三接收窗口的取值后,判断所述第一业务的是否超过所述预设阈值;After increasing the value of the third receiving window, determine whether the first service exceeds the preset threshold;
    若是,则按照第二步长,减小所述第三接收窗口的取值;若否,则按照所述第一步长,继续增大所述的第三接收窗口的取值。If yes, reduce the value of the third receiving window according to the second step; if not, continue to increase the value of the third receiving window according to the first step.
  5. 如权利要求2至4任一所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 2 to 4, wherein the method further comprises:
    当所述第一网络和所述第二网络的时延相对大小发生变化时,自动交换所述第一接收窗口和所述第四接收窗口的配置。When the relative sizes of the delays of the first network and the second network change, the configurations of the first receiving window and the fourth receiving window are automatically exchanged.
  6. 如权利要求5所述的方法,其特征在于,还包括:The method of claim 5, further comprising:
    在预设定时器溢出之前,不触发执行自动交换所述第一接收窗口和所述第四接收窗口的配置的步骤。Before the preset timer overflows, the step of automatically switching the configuration of the first receiving window and the fourth receiving window is not triggered.
  7. 如权利要求1至6任一所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 6, wherein the method further comprises:
    当与所述第一网络建立连接,与所述第二网络未建立连接时,若检测到运行有所述第一业务和所述第二业务,则提示用户打开所述第二网络、或者自动打开所述第二网络,并提示用户所述第二网络已打开。When a connection is established with the first network and no connection is established with the second network, if it is detected that the first service and the second service are running, the user is prompted to open the second network, or automatically Open the second network, and prompt the user that the second network has been opened.
  8. 一种业务控制的方法,其特征在于,所述方法包括,由电子设备执行以下方法:A method for business control, characterized in that the method includes the following method performed by an electronic device:
    与第一网络建立连接路;Establish a connection with the first network;
    当运行有时延敏感类的第一业务和带宽敏感类的第二业务时,优先使得所述第一业务占用所述第一网络的带宽资源;When running a delay-sensitive first service and a bandwidth-sensitive second service, preferentially make the first service occupy bandwidth resources of the first network;
    在所述第一业务的时延不超过预设阈值的前提下,动态调整所述第二业务占用的所述第一网络的带宽资源。On the premise that the delay of the first service does not exceed a preset threshold, dynamically adjust the bandwidth resource of the first network occupied by the second service.
  9. 如权利要求8所述的方法,其特征在于,当运行有所述第一业务和第二业务时,优先使得所述第一业务占用所述第一网络的带宽资源,包括:The method according to claim 8, wherein when the first service and the second service are running, prioritizing the first service to occupy bandwidth resources of the first network includes:
    将第一接收窗口设置为第一值,第二接收窗口设置为第二值,所述第一值大于第二值,且所述第二值不大于第一阈值;Setting the first receiving window to a first value and the second receiving window to a second value, the first value is greater than the second value, and the second value is not greater than the first threshold;
    其中,所述第一接收窗口为所述第一业务针对通过所述第一网络建立的链路的接收窗口,所述第二接收窗口为所述第二业务针对通过所述第一网络建立的链路的接收窗口。Wherein, the first receiving window is a receiving window of the first service for a link established through the first network, and the second receiving window is a establishing window of the second service for the first network The receive window of the link.
  10. 如权利要求9所述的方法,其特征在于,在所述第一业务的时延不超过预设阈值的前提下,动态调整所述第二业务占用的所述第一网络的带宽资源,包括:The method according to claim 9, wherein dynamically adjusting the bandwidth resource of the first network occupied by the second service under the premise that the delay of the first service does not exceed a preset threshold includes: :
    判断第一业务的时延是否大于所述预设阈值;Determine whether the delay of the first service is greater than the preset threshold;
    若第一业务的时延小于所述预设阈值,则按照第一步长,增大所述第二接收窗口的大小;If the delay of the first service is less than the preset threshold, increase the size of the second receiving window according to the first step;
    若第一业务的时延大于所述预设阈值,则按照第二步长,减小所述第二接收窗口的大小。If the delay of the first service is greater than the preset threshold, the size of the second receiving window is reduced according to the second step.
  11. 一种电子设备,其特征在于,所述电子设备包括处理器和存储器;An electronic device, characterized in that the electronic device includes a processor and a memory;
    所述存储器,用于存储程序指令;The memory is used to store program instructions;
    所述处理器,用于调用所述存储器中存储的程序指令,执行以下步骤:The processor is configured to call program instructions stored in the memory and perform the following steps:
    与第一网络和第二网络建立连接;Establish a connection with the first network and the second network;
    当运行有时延敏感类的第一业务和带宽敏感类的第二业务时,对所述第一业务和所述第二业务进行网络隔离,使得所述第一业务占用所述第一网络和所述第二网络中时延较小的网络,所述第二业务占用所述第一网络和所述第二网络中时延较大的网络;When the delay-sensitive first service and the bandwidth-sensitive second service are running, the first service and the second service are network-isolated, so that the first service occupies the first network and all the services A network with a small delay in the second network, and the second service occupies a network with a large delay in the first network and the second network;
    在所述第一业务的时延不超过预设阈值的前提下,动态调整所述第二业务占用的所述第一网络的带宽资源。On the premise that the delay of the first service does not exceed a preset threshold, dynamically adjust the bandwidth resource of the first network occupied by the second service.
  12. 如权利要求11所述的电子设备,其特征在于,所述当运行有第一业务和第二业务时,对所述第一业务和所述第二业务进行网络隔离,包括:The electronic device according to claim 11, wherein when the first service and the second service are running, performing network isolation on the first service and the second service includes:
    当运行有所述第一业务和第二业务时,将第一接收窗口设置为第一值,第二接收窗口设置为第二值,将第三接收窗口设置为第三值,将第四接收窗口设置为第四值;所述第一值大于第二值,所述第四值大于第三值,且所述第二值不大于第一阈值,所述第三至不大于第二阈值;When the first service and the second service are running, the first receiving window is set to the first value, the second receiving window is set to the second value, the third receiving window is set to the third value, and the fourth receiving The window is set to a fourth value; the first value is greater than the second value, the fourth value is greater than the third value, and the second value is not greater than the first threshold, and the third to no greater than the second threshold;
    其中,所述第一接收窗口为所述第一业务针对通过所述第一网络建立的链路的接收窗口,所述第二接收窗口为所述第一业务针对通过所述第二网络建立的链路的接收窗口,所述第三接收窗口为所述第二业务针对通过所述第一网络建立的链路的接收窗口,所述第四接收窗口为所述第二业务针对通过所述第二网络建立的链路的接收窗口。Wherein, the first receiving window is the receiving window of the first service for the link established through the first network, and the second receiving window is the establishing of the first service for the link established by the second network A receiving window of the link, the third receiving window is the receiving window of the second service for the link established through the first network, and the fourth receiving window is the second service for the passing of the first 2. The receiving window of the link established by the network.
  13. 如权利要求12所述的电子设备,其特征在于,在所述第一业务的时延不超过预设阈值的前提下,动态调整所述第二业务占用的所述第一网络的带宽资源,包括:The electronic device according to claim 12, wherein the bandwidth resource of the first network occupied by the second service is dynamically adjusted under the premise that the delay of the first service does not exceed a preset threshold, include:
    判断所述第一业务的时延是否超过所述预设阈值;Judging whether the delay of the first service exceeds the preset threshold;
    若否,则按照第一步长,增大所述的第三接收窗口的取值;If not, increase the value of the third receiving window according to the first step;
    若是,则按照第二步长,减小所述第三接收窗口的取值。If yes, the value of the third receiving window is reduced according to the second step.
  14. 如权利要求12所述的电子设备,其特征在于,在所述第一业务的时延不超过预设阈值的前提下,动态调整所述第二业务占用的所述第一网络的带宽资源,包括:The electronic device according to claim 12, wherein the bandwidth resource of the first network occupied by the second service is dynamically adjusted under the premise that the delay of the first service does not exceed a preset threshold, include:
    按照第一步长,增大所述的第三接收窗口的取值;According to the first step, increase the value of the third receiving window;
    在增大所述第三接收窗口的取值后,判断所述第一业务的是否超过所述预设阈值;After increasing the value of the third receiving window, determine whether the first service exceeds the preset threshold;
    若是,则按照第二步长,减小所述第三接收窗口的取值;若否,则按照第一步长,继续增大所述的第三接收窗口的取值。If yes, reduce the value of the third receiving window according to the second step; if not, continue to increase the value of the third receiving window according to the first step.
  15. 如权利要求12至14任一所述的电子设备,其特征在于,所述处理器还用于:The electronic device according to any one of claims 12 to 14, wherein the processor is further used to:
    当所述第一网络和所述第二网络的时延相对大小发生变化时,自动交换所述第一接收窗口和所述第四接收窗口的配置。When the relative sizes of the delays of the first network and the second network change, the configurations of the first receiving window and the fourth receiving window are automatically exchanged.
  16. 如权利要求15所述的电子设备,其特征在于,所述处理器还用于:The electronic device according to claim 15, wherein the processor is further configured to:
    在预设定时器溢出之前,不触发执行自动交换所述第一接收窗口和所述第四接收窗口的配置的步骤。Before the preset timer overflows, the step of automatically switching the configuration of the first receiving window and the fourth receiving window is not triggered.
  17. 如权利要求11至16任一所述的电子设备,其特征在于,所述处理器还用于:The electronic device according to any one of claims 11 to 16, wherein the processor is further used to:
    当与所述第一网络建立连接,与所述第二网络未建立连接时,若检测到运行有所述第一业务和所述第二业务,则提示用户打开所述第二网络、或者自动打开所述第二网络,并提示用户所述第二网络已打开。When a connection is established with the first network and no connection is established with the second network, if it is detected that the first service and the second service are running, the user is prompted to open the second network, or automatically Open the second network, and prompt the user that the second network has been opened.
  18. 一种电子设备,其特征在于,所述电子设备包括处理器和存储器;An electronic device, characterized in that the electronic device includes a processor and a memory;
    所述存储器,用于存储程序指令;The memory is used to store program instructions;
    所述处理器,用于调用所述存储器存储的程序指令,执行下述步骤:The processor is configured to call program instructions stored in the memory and perform the following steps:
    与第一网络建立连接;Establish a connection with the first network;
    当运行有时延敏感类的第一业务和带宽敏感类的第二业务时,优先使得所述第一业务占用所述第一网络的带宽资源;When running a delay-sensitive first service and a bandwidth-sensitive second service, preferentially make the first service occupy bandwidth resources of the first network;
    在所述第一业务的时延不超过预设阈值的前提下,动态调整所述第二业务占用的所述第一网络的带宽资源。On the premise that the delay of the first service does not exceed a preset threshold, dynamically adjust the bandwidth resource of the first network occupied by the second service.
  19. 如权利要求18所述的电子设备,其特征在于,当运行有所述第一业务和第二业务时,优先使得所述第一业务占用所述第一网络的带宽资源,包括:The electronic device according to claim 18, wherein when the first service and the second service are running, prioritizing the first service to occupy bandwidth resources of the first network includes:
    将第一接收窗口设置为第一值,第二接收窗口设置为第二值,所述第一值大于第二值,且所述第二值不大于第一阈值;Setting the first receiving window to a first value and the second receiving window to a second value, the first value is greater than the second value, and the second value is not greater than the first threshold;
    其中,所述第一接收窗口为所述第一业务针对通过所述第一网络建立的链路的接收窗口,所述第二接收窗口为所述第二业务针对通过所述第一网络建立的链路的接收窗口。Wherein, the first receiving window is a receiving window of the first service for a link established through the first network, and the second receiving window is a establishing window of the second service for the first network The receive window of the link.
  20. 如权利要求18所述的电子设备,其特征在于,在所述第一业务的时延不超过预设阈值的前提下,动态调整所述第二业务占用的所述第一网络的带宽资源,包括:The electronic device according to claim 18, wherein the bandwidth resource of the first network occupied by the second service is dynamically adjusted under the premise that the delay of the first service does not exceed a preset threshold, include:
    判断第一业务的时延是否大于所述预设阈值;Determine whether the delay of the first service is greater than the preset threshold;
    若第一业务的时延小于所述预设阈值,则按照第一步长,增大所述第二接收窗口的大小;If the delay of the first service is less than the preset threshold, increase the size of the second receiving window according to the first step;
    若第一业务的时延大于所述预设阈值,则按照第二步长,减小所述第二接收窗口的大小。If the delay of the first service is greater than the preset threshold, the size of the second receiving window is reduced according to the second step.
  21. 如权利要求20所述的电子设备,其特征在于,所述处理器,还用于:The electronic device of claim 20, wherein the processor is further configured to:
    在优先使得所述第一业务占用所述第一网络的带宽资源之后,判断第一业务的时延是否大于所述预设阈值之前,按照所述第一步长增大所述第二接收窗口的大小。After preferentially causing the first service to occupy the bandwidth resources of the first network, before determining whether the delay of the first service is greater than the preset threshold, increase the second receiving window according to the first step length the size of.
  22. 一种计算机存储介质,其特征在于,所述计算机存储介质存储有程序指令,当所述程序指令被电子设备运行时,执行如权利要求1至10任一所述的方法。A computer storage medium, characterized in that the computer storage medium stores program instructions, and when the program instructions are executed by an electronic device, the method according to any one of claims 1 to 10 is executed.
  23. 一种芯片,其特征在于,所述芯片与电子设备中的存储器耦合,使得所述芯片在运行时调用所述存储器中存储的程序指令,实现如权利要求1至10任一所述的方法。A chip, characterized in that, the chip is coupled with a memory in an electronic device, so that the chip calls program instructions stored in the memory during operation to implement the method according to any one of claims 1 to 10.
  24. 一种包含指令的计算机程序产品,其特征在于,当所述计算机程序产品在电子设备上运行时,使得所述电子设备执行如权利要求1-10中任一项所述的方法。A computer program product containing instructions, characterized in that, when the computer program product runs on an electronic device, the electronic device is caused to perform the method according to any one of claims 1-10.
  25. 一种电子设备,其特征在于,所述电子设备包括处理器和存储器;An electronic device, characterized in that the electronic device includes a processor and a memory;
    所述存储器,用于存储程序指令;The memory is used to store program instructions;
    所述处理器,用于调用所述存储器中存储的程序指令,执行如权利要求1-10中任一项所述的方法。The processor is configured to call program instructions stored in the memory to execute the method according to any one of claims 1-10.
PCT/CN2018/120159 2018-12-10 2018-12-10 Service control method and electronic device WO2020118498A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2018/120159 WO2020118498A1 (en) 2018-12-10 2018-12-10 Service control method and electronic device
CN201880095144.6A CN112425201B (en) 2018-12-10 2018-12-10 Service control method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/120159 WO2020118498A1 (en) 2018-12-10 2018-12-10 Service control method and electronic device

Publications (1)

Publication Number Publication Date
WO2020118498A1 true WO2020118498A1 (en) 2020-06-18

Family

ID=71076174

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/120159 WO2020118498A1 (en) 2018-12-10 2018-12-10 Service control method and electronic device

Country Status (2)

Country Link
CN (1) CN112425201B (en)
WO (1) WO2020118498A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220030469A1 (en) * 2019-04-08 2022-01-27 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for data transmission, electronic device, and storage medium
CN114500287A (en) * 2021-12-30 2022-05-13 广州趣丸网络科技有限公司 Intelligent allocation method and device for bandwidth resources
CN116667875A (en) * 2022-09-29 2023-08-29 荣耀终端有限公司 Switching method and device of internet access and terminal equipment
CN116744329A (en) * 2022-10-21 2023-09-12 荣耀终端有限公司 Network acceleration method and electronic equipment

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114916017B (en) * 2022-07-18 2022-10-04 荣耀终端有限公司 Data transmission method, electronic equipment and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104038442A (en) * 2014-06-11 2014-09-10 普联技术有限公司 Bandwidth allocation method and router
US20140304207A1 (en) * 2013-04-09 2014-10-09 Twin Prime, Inc. Cognitive Data Delivery Optimizing System
CN108664329A (en) * 2018-05-10 2018-10-16 努比亚技术有限公司 A kind of resource allocation method, terminal and computer readable storage medium
CN108882309A (en) * 2018-06-06 2018-11-23 四川斐讯信息技术有限公司 A kind of method and system with big data analysis adjustment service bandwidth

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9066225B2 (en) * 2012-04-24 2015-06-23 Empire Technology Development Llc Network selection scheme

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140304207A1 (en) * 2013-04-09 2014-10-09 Twin Prime, Inc. Cognitive Data Delivery Optimizing System
CN104038442A (en) * 2014-06-11 2014-09-10 普联技术有限公司 Bandwidth allocation method and router
CN108664329A (en) * 2018-05-10 2018-10-16 努比亚技术有限公司 A kind of resource allocation method, terminal and computer readable storage medium
CN108882309A (en) * 2018-06-06 2018-11-23 四川斐讯信息技术有限公司 A kind of method and system with big data analysis adjustment service bandwidth

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220030469A1 (en) * 2019-04-08 2022-01-27 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for data transmission, electronic device, and storage medium
CN114500287A (en) * 2021-12-30 2022-05-13 广州趣丸网络科技有限公司 Intelligent allocation method and device for bandwidth resources
CN114500287B (en) * 2021-12-30 2023-09-22 广州趣丸网络科技有限公司 Intelligent allocation method and device for bandwidth resources
CN116667875A (en) * 2022-09-29 2023-08-29 荣耀终端有限公司 Switching method and device of internet access and terminal equipment
CN116667875B (en) * 2022-09-29 2024-03-08 荣耀终端有限公司 Switching method and device of internet access and terminal equipment
CN116744329A (en) * 2022-10-21 2023-09-12 荣耀终端有限公司 Network acceleration method and electronic equipment

Also Published As

Publication number Publication date
CN112425201A (en) 2021-02-26
CN112425201B (en) 2023-11-03

Similar Documents

Publication Publication Date Title
JP7293398B2 (en) Bluetooth connection methods, devices and systems
WO2020118498A1 (en) Service control method and electronic device
WO2021036771A1 (en) Electronic device having foldable screen, and display method
WO2020224449A1 (en) Split-screen display operation method and electronic device
WO2020244623A1 (en) Air-mouse mode implementation method and related device
US11825539B2 (en) Bluetooth connection method and electronic device
WO2021185105A1 (en) Method for switching between sim card and esim card, and electronic device
WO2020077512A1 (en) Voice communication method, electronic device, and system
WO2021052410A1 (en) Application management method and apparatus
WO2020173370A1 (en) Method for moving application icons, and electronic device
WO2020062344A1 (en) Data transmission method and electronic device
WO2020151385A1 (en) Method and device for controlling networking of smart home device
EP4192058A1 (en) Bluetooth communication method, terminal device, and computer-readable storage medium
WO2021043219A1 (en) Bluetooth reconnection method and related apparatus
CN111132234A (en) Data transmission method and corresponding terminal
WO2021052407A1 (en) Electronic device control method and electronic device
WO2022037726A1 (en) Split-screen display method and electronic device
WO2020078332A1 (en) Negotiation method based on voice call translation capability, and electronic devices
WO2021208723A1 (en) Full-screen display method and apparatus, and electronic device
WO2021185063A1 (en) Network access method, electronic device, and chip
KR102491006B1 (en) Data Transmission Methods and Electronic Devices
WO2021073183A1 (en) Always on display method and mobile device
WO2021031865A1 (en) Call method and apparatus
EP4210363A1 (en) Communicational connection establishment method and system, electronic device, and storage medium
CN113498108A (en) Chip, equipment and method for adjusting data transmission strategy based on service type

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: 18943058

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: 18943058

Country of ref document: EP

Kind code of ref document: A1