Network lagging processing method and related device
By performing preset actions serially in electronic devices to handle cellular network lag, conflict problems caused by parallel execution of preset actions in the prior art are solved, and the success rate and efficiency of lag repair are improved.
Patent Information
- Application Number
- CN202311782592.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-21
- Publication Date
- 2025-07-01
AI Technical Summary
Electronic devices are prone to lag when using cellular networks. The prior art may lead to conflicts in parallel execution of preset actions when processing lags, thereby reducing the success rate of repair lags.
A method for handling network lag is proposed. When a cellular network is stuck, a preset action is performed serially, and the first preset action is first executed. If the lag continues, a second preset action is executed, and an appropriate preset action is flexibly selected according to the cause and level of lag.
By executing preset actions in serial, the conflicts caused by parallel execution are reduced, the success rate of repairing lags is improved, and the duration of lags is shortened.
Smart Images

Figure CN120238924A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of terminals, and in particular, to a method for processing network lag and related devices. Background Art
[0002] Currently, when an electronic device accesses the Internet using a cellular network, for example, during a game or video playback, there will be a phenomenon of relatively long lag time. Summary of the Invention
[0003] Embodiments of this application provide a method for processing network lag and related devices, which are applied to the technical field of terminals and are conducive to reducing the duration of lag of electronic devices.
[0004] In a first aspect, embodiments of this application propose a method for processing network lag. The method is applied to an electronic device and includes: when the cellular network lags, performing a first preset action; after performing the first preset action, if the cellular network still lags, performing a second preset action; where the first preset action and the second preset action are different preset actions in a first action set, and the preset actions in the first action set are all used to repair lag. When performing the first preset action or the second preset action, other preset actions in the first action set are not performed.
[0005] In this way, when lag occurs, the preset actions in the first action set are executed serially and not in parallel, which can reduce the conflicts caused by the parallel execution of different preset actions, is conducive to reducing the probability of the failure to repair lag due to the parallel execution of preset actions, thereby increasing the probability of successfully repairing lag and achieving the reduction of the lag duration.
[0006] In a possible implementation, the method further includes: when the cellular network lags, obtaining the cause of the lag; if the cause of the lag is not an access layer exception, the first action set includes updating the route and / or reconstructing data; or, if the cause of the lag is an access layer exception, the first action set does not include updating the route and reconstructing data, and the first preset action and the second preset action are preset actions other than updating the route and reconstructing data; where the access layer exception is used to indicate that there is an exception in the electronic device or the access network device, updating the route is used to change the transmission path of data packets in the cellular network by updating the routing table or changing the configuration of the router, and reconstructing data is used to re-establish the data channel between the electronic device and the access network device.
[0007] The cause of the lag can also be referred to as the lag cause. In this way, for different lag causes, different preset actions can be executed, which is more flexible and also conducive to improving the processing speed.
[0008] In a possible implementation, the preset actions in the first action set are actions to be executed when the lag level of the cellular network reaches the first level. The electronic device further includes a second action set, and all the preset actions in the second action set are used to repair lag. The preset actions in the second action set are actions to be executed when the lag level of the cellular network reaches the second level, and the lag level of the second level is greater than that of the first level. The first action set is a subset of the second action set.
[0009] The fact that the first action set is a subset of the second action set indicates that the higher the lag level, the more preset actions can be executed, which is beneficial to increasing the probability of successfully repairing lag, and thus beneficial to shortening the lag duration.
[0010] In a possible implementation, the method further includes: when the cellular network has lag, if the lag level of the cellular network reaches the second level, execute a third preset action; after executing the third preset action, if the cellular network still has lag and the lag level of the cellular network still reaches the second level, execute a fourth preset action; where the third preset action and the fourth preset action belong to different preset actions in the second action set, and when executing the third preset action or the fourth preset action, other preset actions in the second action set are not executed.
[0011] In this way, when there is lag and the lag level reaches the second level, the preset actions in the second action set are executed serially instead of in parallel, which can reduce the conflicts caused by the parallel execution of different preset actions, is beneficial to reducing the probability of the failure to repair lag due to the parallel execution of preset actions, thereby increasing the probability of successfully repairing lag and achieving the shortening of the lag duration.
[0012] In a possible implementation, the second action set includes the following multiple preset actions: update routing, reconstruct data, blacklist cell, disable Standalone (SA), re-register, or restart radio function; where updating routing is used to change the transmission path of data packets in the cellular network by updating the routing table or changing the configuration of the router, reconstructing data is used to re-establish the data channel between the electronic device and the access network device, blacklisting cell is used to switch from the resident cell of the electronic device to other cells; disabling Standalone (SA) is used to change the mobile communication technology, re-registering is used to re-register on the access network device so as to enable the electronic device to communicate with the access network device; restarting the radio function is used to stop cellular communication and then turn on cellular communication.
[0013] In a possible implementation, the first action set includes multiple preset actions among update routing, reconstruct data, blacklist cell, or disable Standalone (SA).
[0014] In a possible implementation, the cellular network reaching the first level of lag includes: the cellular network experiencing N times of the first phenomenon within the first time period, where N is greater than or equal to 1; wherein, the first phenomenon includes one or more of the following: the time of the data packet in the buffer is greater than the first preset duration; or, the round-trip time (RTT) of the data packet transmission is greater than the second preset duration.
[0015] In a possible implementation, the cellular network reaching the second level of lag includes: the cellular network experiencing M times of the second phenomenon within the second time period, where M is greater than or equal to 1; wherein, the second phenomenon includes the data packet having an upward transmission but no downward transmission.
[0016] In a possible implementation, the ability of the second preset action to repair lag is greater than that of the first preset action to repair lag. In this way, it is beneficial to gradually repair the lag and increase the probability of successfully repairing the lag.
[0017] In a possible implementation, the electronic device includes a first card and a second card, and both the first card and the second card are used to provide the cellular network; the method further includes: after all the preset actions in the first action set are executed, if the cellular network still lags, when the cellular network is provided by the first card, using the second card to provide the cellular network.
[0018] If there is still lag after all the preset actions in the first action set are executed, then use the self-healing action of dual-card switching to repair the lag. In this way, it is beneficial to increase the probability of successfully repairing the lag.
[0019] In a possible implementation, before executing the first preset action when the cellular network lags, the method further includes: if the cellular network is congested, execute the fifth preset action, and the fifth preset action is used to relieve the congestion.
[0020] Executing the fifth preset action to relieve the congestion in case of congestion is beneficial to reduce the probability of lag occurrence or delay the time of lag occurrence.
[0021] In a possible implementation, the fifth preset action includes one or more of foreground acceleration, packet loss, or background speed limit. Among them, foreground acceleration is used to increase the transmission priority of the data packets of the foreground applications in the electronic device, and background speed limit is used to reduce the transmission rate of the data packets of the background applications. In this way, it is beneficial to relieve the congestion.
[0022] In a possible implementation, when the fifth preset action includes background speed limiting, if the cellular network is congested, the fifth preset action is executed, including: if the cellular network is congested and the transmission rate of the data packets of the background applications in the electronic device is greater than a preset threshold, the fifth preset action is executed. When the transmission rate of the data packets of the background applications is greater than the preset threshold, background speed limiting is performed, which helps to reduce the probability of affecting the operation of the background applications.
[0023] In a second aspect, an embodiment of the present application provides a network lag processing device. The network lag processing device can be an electronic device, or a chip or a chip system within the electronic device. The network lag processing device may include a processing unit, so that the network lag processing device implements a network lag processing method described in the first aspect or any possible implementation of the first aspect. When the network lag processing device is an electronic device, the processing unit can be a processor. The network lag processing device may further include a storage unit, and the storage unit can be a memory. The storage unit is used to store instructions, and the processing unit executes the instructions stored in the storage unit, so that the electronic device implements a network lag processing method described in the first aspect or any possible implementation of the first aspect. When the network lag processing device is a chip or a chip system within the electronic device, the processing unit can be a processor. The processing unit executes the instructions stored in the storage unit, so that the electronic device implements a network lag processing method described in the first aspect or any possible implementation of the first aspect. The storage unit can be a storage unit within the chip (such as a register, a cache, etc.), or a storage unit outside the chip within the electronic device (such as a read-only memory, a random access memory, etc.).
[0024] Exemplarily, the processing unit is configured to execute a first preset action when the cellular network lags; after executing the first preset action, if the cellular network still lags, execute a second preset action; wherein, the first preset action and the second preset action belong to different preset actions in the first action set, and the preset actions in the first action set are all used to repair lags. When executing the first preset action or the second preset action, other preset actions in the first action set are not executed.
[0025] In a possible implementation, the above-mentioned apparatus further includes an acquisition unit. The acquisition unit is configured to: when the cellular network experiences a lag, acquire the cause of the lag; if the cause of the lag is not an access layer exception, the first action set includes updating the route and / or reconstructing data; or, if the cause of the lag is an access layer exception, the first action set does not include updating the route and reconstructing data, and the first preset action and the second preset action are preset actions other than updating the route and reconstructing data; wherein, the access layer exception is used to indicate an exception in the electronic device or the access network device, updating the route is used to change the transmission path of data packets in the cellular network by updating the routing table or changing the configuration of the router, and reconstructing data is used to re-establish the data channel between the electronic device and the access network device.
[0026] In a possible implementation, the preset actions in the first action set are actions executed when the lag level of the cellular network reaches the first level. The electronic device further includes a second action set, and the preset actions in the second action set are all used to repair the lag. The preset actions in the second action set are actions executed when the lag level of the cellular network reaches the second level, and the lag level of the second level is greater than that of the first level. The first action set is a subset of the second action set.
[0027] In a possible implementation, the processing unit is further configured to: when the cellular network experiences a lag, if the lag level of the cellular network reaches the second level, execute a third preset action; after executing the third preset action, if the cellular network still experiences a lag and the lag level of the cellular network still reaches the second level, execute a fourth preset action; wherein, the third preset action and the fourth preset action belong to different preset actions in the second action set, and when the third preset action or the fourth preset action is executed, other preset actions in the second action set are not executed.
[0028] In a possible implementation, the second action set includes the following multiple preset actions: updating the route, reconstructing data, blacklisting the cell, disabling Standalone (SA), re-registering, or restarting the radio function; wherein, updating the route is used to change the transmission path of data packets in the cellular network by updating the routing table or changing the configuration of the router, reconstructing data is used to re-establish the data channel between the electronic device and the access network device, blacklisting the cell is used to switch from the resident cell of the electronic device to other cells; disabling Standalone (SA) is used to change the mobile communication technology, re-registering is used to re-register on the access network device to enable communication between the electronic device and the access network device; restarting the radio function is used to stop and then start cellular communication.
[0029] In a possible implementation, the first action set includes multiple preset actions among updating the route, reconstructing data, blacklisting the cell, or disabling Standalone (SA).
[0030] In a possible implementation, the lag level of the cellular network reaching the first level includes: the cellular network has N occurrences of the first phenomenon within the first time period, where N is greater than or equal to 1; among them, the first phenomenon includes one or more of the following: the time of the data packet in the buffer is greater than the first preset duration; or, the round-trip time (RTT) of the data packet transmission is greater than the second preset duration.
[0031] In a possible implementation, the lag level of the cellular network reaching the second level includes: the cellular network has M occurrences of the second phenomenon within the second time period, where M is greater than or equal to 1; among them, the second phenomenon includes that the data packet has an upward transmission but no downward transmission.
[0032] In a possible implementation, the ability of the second preset action to repair lags is greater than that of the first preset action to repair lags.
[0033] In a possible implementation, the electronic device includes a first card and a second card, and both the first card and the second card are used to provide the cellular network; the processing unit is further configured to: after all the preset actions in the first action set are executed, if the cellular network still has lags, when the cellular network is provided by the first card, use the second card to provide the cellular network.
[0034] In a possible implementation, before executing the first preset action when the cellular network has lags, the processing unit is further configured to: if the cellular network is congested, execute a fifth preset action, and the fifth preset action is used to relieve congestion.
[0035] In a possible implementation, the fifth preset action includes one or more of foreground acceleration, packet loss, or background speed limit. Among them, foreground acceleration is used to improve the transmission priority of data packets of foreground applications in the electronic device, and background speed limit is used to reduce the transmission rate of data packets of background applications.
[0036] In a possible implementation, when the fifth preset action includes background speed limit, the processing unit is further configured to: if the cellular network is congested and the transmission rate of data packets of background applications in the electronic device is greater than the preset threshold, execute the fifth preset action. When the transmission rate of data packets of background applications is greater than the preset threshold, execute background speed limit, which is beneficial to reducing the probability of affecting the operation of background applications.
[0037] In a third aspect, an embodiment of the present application provides an electronic device, including a processor and a memory. The memory is used to store code instructions, and the processor is used to run the code instructions to execute the method described in the first aspect or any possible implementation manner of the first aspect.
[0038] Fourthly, an embodiment of the present application provides a computer-readable storage medium, in which a computer program or instruction is stored. When the computer program or instruction runs on a computer, the computer is caused to execute the method described in the first aspect or any possible implementation manner of the first aspect.
[0039] Fifthly, an embodiment of the present application provides a computer program product including a computer program. When the computer program runs on a computer, the computer is caused to execute the method described in the first aspect or any possible implementation manner of the first aspect.
[0040] Sixthly, the present application provides a chip or a chip system. The chip or the chip system includes at least one processor and a communication interface. The communication interface and the at least one processor are interconnected by a line. The at least one processor is configured to run a computer program or instruction to execute the method described in the first aspect or any possible implementation manner of the first aspect. Among them, the communication interface in the chip can be an input / output interface, a pin, a circuit, etc.
[0041] In a possible implementation, the chip or the chip system described above in the present application further includes at least one memory, and instructions are stored in the at least one memory. The memory can be a storage unit inside the chip, such as a register, a cache, etc., or a storage unit of the chip (such as a read-only memory, a random access memory, etc.).
[0042] It should be understood that the second to sixth aspects of the present application correspond to the technical solutions of the first aspect of the present application. The beneficial effects obtained by each aspect and the corresponding feasible implementation manners are similar and will not be elaborated herein. Description of the Drawings
[0043] Figure 1 It is a schematic hardware structure diagram of an electronic device provided by an embodiment of the present application;
[0044] Figure 2 It is a schematic software architecture diagram of an electronic device provided by an embodiment of the present application;
[0045] Figure 3 It is a schematic flowchart of a method for handling network lag provided by an embodiment of the present application;
[0046] Figure 4 It is a schematic flowchart of another method for handling network lag provided by an embodiment of the present application;
[0047] Figure 5 It is a schematic diagram of the correspondence between a lag phenomenon and a self-healing action provided by an embodiment of the present application;
[0048] Figure 6Schematic flowchart of another method for handling network lag provided by an embodiment of the present application;
[0049] Figure 7 Schematic structural diagram of a chip provided by an embodiment of the present application. Detailed implementation manners
[0050] For the convenience of clearly describing the technical solutions of the embodiments of the present application, the following briefly introduces some terms and technologies involved in the embodiments of the present application:
[0051] 1. Front-end acceleration
[0052] Front-end acceleration can be used to improve the transmission priority of data packets of foreground applications during the communication process between an electronic device and a network device. In this way, in the case of lag in the foreground application, it is beneficial to quickly transmit the data packets of the foreground application, relieve congestion or repair the lag.
[0053] 2. Background speed limit
[0054] Background speed limit can be used to reduce the transmission rate of data packets of background applications during the communication process between an electronic device and a network device. In this way, the impact of background applications on foreground applications can be reduced, and in the case of congestion or lag in the foreground application, it is beneficial to relieve congestion or repair the lag.
[0055] 3. Packet loss
[0056] Packet loss, which can also be referred to as low latency, can be used to discard the data packets to be transmitted when the data packets to be transmitted cannot be transmitted in time during the communication process between an electronic device and a network device. In this way, when the data packet transmission is congested, the duration of retransmission is relatively short, which is beneficial to relieve congestion.
[0057] 4. Data layer self-healing action
[0058] The data layer self-healing action is used to indicate that when there is a problem in the communication between an electronic device and a network device, the data in the electronic device is updated to restore the communication between the electronic device and the network device.
[0059] The data layer self-healing action may include updating the route and reconstructing the data.
[0060] Among them, updating the route can be used to change the transmission path of data packets in the network by updating the routing table or changing the configuration of the router, which is beneficial to solving the problem that the communication between an electronic device and a network device is affected due to problems with the Internet Protocol (IP) or routing.
[0061] For example, when the Internet connection of an electronic device is stuck due to problems with the IP or routing, the electronic device can fix the stuck situation by updating the route.
[0062] Among them, reconstructing data can also be referred to as reconstructing a data link or reconstructing a public data network (PDN), and can be used to re - establish a data channel between the electronic device and the network device. Among them, the data channel can be used to represent a communication path or link for transmitting data. When there is a problem with the data channel between the electronic device and the network device, measures can be taken to re - establish the data channel to ensure the normal transmission and communication of data.
[0063] For example, when the Internet connection of an electronic device is stuck due to a problem with the data channel between the electronic device and the network device, the electronic device can fix the stuck situation by reconstructing the data.
[0064] 5. Link - layer self - healing actions
[0065] Link - layer self - healing actions can be used to restore the link between the electronic device and the network device when there is a problem with the communication between them. When the communication link between the electronic device and the network device fails, the electronic device can restore the link connection through link - layer self - healing actions.
[0066] For example, when the Internet connection of an electronic device is stuck due to a failure of the communication link between the electronic device and the network device, the electronic device can fix the stuck situation through link - layer self - healing actions.
[0067] In some examples, link - layer self - healing actions may include blacklisting a cell, disabling Standalone (SA) networking, re - registering, and restarting the radio function.
[0068] Among them, blacklisting a cell is used for cell switching. Cell switching can refer to the process of migrating the communication link between the electronic device and the current network device to another network device. The location where the electronic device is currently located can be covered by multiple cells simultaneously. When the electronic device needs to perform wireless communication, it can select one of the multiple cells to camp on to achieve access to the network (such as a Long Term Evolution (LTE) network or a New Radio (NR) network). When the electronic device experiences network congestion while using the cellular network in the camped - on cell, it can switch from the camped - on cell to other cells to obtain better signal quality and faster network speed, which is beneficial for fixing the congestion. In some examples, blacklisting a cell can also be referred to as barring a cell, and the embodiments of this application do not limit this.
[0069] Among them, turning off the stand-alone network can be referred to as turning off SA. Turning off SA is used to indicate that the electronic device turns off the network using the stand-alone networking mode. In the embodiments of the present application, after the electronic device turns off SA, it can use the network with the non-stand-alone networking mode (NSA). For example, the 5G network is a network with the stand-alone networking mode, and the 4G network is a network with the non-stand-alone networking mode. Turning off the 5G network of the electronic device can enable the electronic device to use the 4G network for communication. In some examples, turning off SA can be called downgrading new radio (NR).
[0070] In this way, when the electronic device experiences network lag due to using the 5G network, the electronic device can repair the lag by turning off SA.
[0071] It can be understood that the embodiments of the present application use turning off SA to represent replacing the mobile communication technology. For example, replacing the sixth-generation mobile communication technology (6G) with the fifth-generation mobile communication technology (5G), replacing 5G with the fourth-generation mobile communication technology (4G), replacing the second-generation mobile communication technology (2G) with the third-generation mobile communication technology (3G), etc. The embodiments of the present application do not limit the name.
[0072] Among them, re-registration, which can also be called re-registering, can be used to represent the process of the electronic device re-registering on the network device to enable communication with the network device. Re-registration usually occurs when the communication between the electronic device and the network device is interrupted or unstable. By re-registering, the electronic device can re-establish a connection with the network device and regain the permission to access the network device.
[0073] For example, when the electronic device experiences network lag due to the interruption or instability of the communication between the electronic device and the network device, the electronic device can repair the lag by re-registering.
[0074] Among them, the function of restarting the radio can be used to restart the communication function of the electronic device so as to restore the normal working state of the electronic device. When the radio device is used for a long time or encounters a fault, it may work abnormally or have an unstable connection. At this time, restarting the radio device can clear possible software or hardware faults, re-initialize the device parameters, and make it return to the normal working state.
[0075] The function of restarting the radio may include turning off the radio device, waiting for a period of time (such as a few seconds), and then restarting the device. This process can be performed manually or the electronic device can be set to automatically restart at a specific time. In some examples, the function of restarting the radio can also be referred to as toggling the flight mode.
[0076] For example, when the electronic device lags in Internet access due to long-term use or a fault of the radio device, the electronic device can turn on the flight mode, wait for a few seconds, and then turn off the flight mode to implement the function of restarting the radio, which is beneficial to fixing the lag.
[0077] For another example, the modem in the electronic device is used to provide cellular communication capabilities. When the electronic device accesses the Internet using the cellular network and lags, the electronic device can restart the Modom, which is beneficial to fixing the lag.
[0078] 6. Dual SIM card switching
[0079] Dual SIM card switching can be used to indicate that when the electronic device includes two subscriber identity module (SIM) cards or embedded SIM (eSIM) cards, the electronic device can switch back and forth between these two cards.
[0080] For example, the electronic device includes two SIM cards, namely Card 1 and Card 2. When the electronic device lags while accessing the Internet using Card 1, the electronic device can switch to Card 2 and use Card 2 to access the Internet to shorten the lag time. When the electronic device lags or disconnects while accessing the Internet using Card 2, the electronic device can switch to Card 1 and use Card 1 to access the Internet.
[0081] 7. Other terms
[0082] In the embodiments of the present application, terms such as "first" and "second" are used to distinguish identical or similar items with basically the same functions and effects. For example, the first preset action and the second preset action are only used to distinguish different preset actions, and do not limit their sequence. Those skilled in the art can understand that terms such as "first" and "second" do not limit the quantity and execution order, and terms such as "first" and "second" do not necessarily limit to be different.
[0083] It should be noted that in the embodiments of the present application, words such as "exemplary" or "for example" are used to give examples, illustrations or explanations. Any embodiment or design solution described as "exemplary" or "for example" in the present application should not be construed as being more preferred or having more advantages than other embodiments or design solutions. Rather, the use of words such as "exemplary" or "for example" is intended to present relevant concepts in a specific manner.
[0084] In the embodiments of the present application, "at least one" means one or more, and "a plurality" means two or more. "And / or" describes the association relationship of associated objects and indicates that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist simultaneously, and B exists alone, where A and B may be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one (item)" or its similar expression refers to any combination of these items, including any combination of single item (s) or plural items (s). For example, at least one (item) of a, b, or c may represent: a, b, c, a - b, a - c, b - c, or a - b - c, where a, b, and c may be single or multiple.
[0085] 8. Electronic device
[0086] The electronic devices in the embodiments of this application may include handheld devices with cellular communication functions, vehicle-mounted devices, etc. For example, some electronic devices are: mobile phones, tablet computers, handheld computers, laptop computers, mobile internet devices (MIDs), wearable devices, virtual reality (VR) devices, augmented reality (AR) devices, wireless terminals in industrial control, wireless terminals in self-driving, wireless terminals in remote medical surgery, wireless terminals in smart grid, wireless terminals in transportation safety, wireless terminals in smart city, wireless terminals in smart home, cellular phones, cordless phones, session initiation protocol (SIP) phones, wireless local loop (WLL) stations, personal digital assistants (PDAs), handheld devices with wireless communication functions, computing devices or other processing devices connected to wireless modems, vehicle-mounted devices, wearable devices, terminal devices in 5G networks, or terminal devices in future evolved public land mobile networks (PLMNs), etc. The embodiments of this application are not limited thereto.
[0087] In addition, in the embodiments of this application, the electronic device may also be a terminal device in an internet of things (IoT) system. The IoT is an important part of the future development of information technology. Its main technical feature is to connect objects to the network through communication technology, so as to realize an intelligent network of human-machine interconnection and object-object interconnection.
[0088] The electronic device in the embodiments of this application may also be referred to as: terminal device, user equipment (UE), mobile station (MS), mobile terminal (MT), access terminal, user unit, user station, mobile station, mobile platform, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication device, user agent or user device, etc.
[0089] In the embodiments of the present application, an electronic device or each network device includes a hardware layer, an operating system layer running on the hardware layer, and an application layer running on the operating system layer. The hardware layer includes hardware such as a central processing unit (CPU), a memory management unit (MMU), and a memory (also known as main memory). The operating system can be any one or more computer operating systems that implement service processing through processes. For example, Linux operating system, Unix operating system, Android operating system, iOS operating system, or Windows operating system, etc. The application layer includes applications such as a browser, an address book, a word processing software, and an instant messaging software.
[0090] 9. Network device
[0091] The network device can be an access network (AN) device, or can be referred to as a radio access network (RAN) device. The RAN device can provide an access function for terminal devices and is responsible for functions such as radio resource management, quality of service (QoS) management, data compression, and encryption on the air interface side. The RAN device can include 5G, such as the gNB in the NR system, or one or a group (including multiple antenna panels) of antenna panels of a base station in 5G, or can also be a network node that constitutes a gNB, a transmission and reception point (TRP) or a transmission point (TP), or a transmission measurement function (TMF), such as a building base band unit (BBU), or a centralized unit (CU) or a distributed unit (DU), an RSU with base station functions, or a wired access gateway, or a core network element of 5G. Or, the RAN device can also include an access point (AP) in a wireless fidelity (WiFi) system, a wireless relay node, a wireless backhaul node, various forms of macro base stations, micro base stations (also called small stations), relay stations, access points, wearable devices, in-vehicle devices, and so on. Or, the RAN device can also include an access network device of a next-generation mobile communication system, such as a 6G base station. Or, in the next-generation mobile communication system, the network device can also have other naming methods, all of which are covered by the protection scope of the embodiments of this application, and this application does not make any limitations in this regard.
[0092] Currently, when an electronic device accesses the Internet using a cellular network, for example, during a game or video playback, there will be a phenomenon of a relatively long lag time.
[0093] The reason for the relatively long lag time is that when an electronic device accesses the Internet using a cellular network, if there is a lag, the electronic device can perform multiple self-healing actions simultaneously to solve the lag problem. However, these multiple self-healing actions may conflict, resulting in self-healing failure and even exacerbating the lag, thus leading to a relatively long lag time. Among them, the multiple self-healing actions can include two or more of foreground acceleration, background speed limit, packet loss, route update, data reconstruction, re-registration, restart of the radio function, black cell, disabling SA, or dual-SIM card switching. Among them, route update and data reconstruction belong to data layer self-healing actions, and re-registration, restart of the radio function, black cell, and disabling SA belong to link layer self-healing actions.
[0094] In some examples, the foreground application used by the electronic device is a game application. During the game playback process, the electronic device experiences lag. After detecting the lag, the self-healing actions that can be executed simultaneously by the electronic device may include foreground acceleration and closing SA in link layer self-healing to solve the lag problem. In the case where the foreground acceleration has solved the lag, however, since closing SA will cause the electronic device to switch networks, and switching networks will cause the game application to lag again, resulting in self-healing failure, and the game application remains lagging, leading to a relatively long lag time.
[0095] In other examples, the foreground application used by the electronic device is a video application. During the video playback process, the electronic device experiences lag. After detecting the lag, the self-healing actions that can be executed simultaneously by the electronic device may include dual SIM card switching and reconstructing data in data layer self-healing actions to solve the lag problem. During the process of performing dual SIM card switching, since reconstructing data may cause the card switched by the electronic device to be disconnected, it will trigger dual SIM card switching again, making the SIM card switching ineffective, resulting in self-healing failure, and the video application remains lagging, leading to a relatively long lag time.
[0096] In still other examples, the foreground application used by the electronic device is a video application. During the video playback process, the electronic device experiences lag. After detecting the lag, the self-healing actions that can be executed simultaneously by the electronic device may include re-registration in link layer self-healing actions (or restarting the radio function in native recovery) and closing SA in link layer self-healing to solve the lag problem. During the process of performing closing SA, since closing SA will cause the electronic device to switch to other networks, and re-registration (or restarting the radio function) may cause a short network disconnection, which will cause closing SA not to be able to switch to other networks, resulting in self-healing failure, and the video application remains lagging, leading to a relatively long lag time.
[0097] In view of this, the embodiments of the present application provide a method and related device for processing network lag, which can serially execute self-healing actions when lag occurs, that is, execute self-healing actions one by one, and do not execute self-healing actions simultaneously. In this way, it is beneficial to reduce the probability of conflicts between different self-healing actions, can improve the probability of successful self-healing, and further is beneficial to reducing the lag duration of the electronic device.
[0098] For ease of understanding, first, the hardware structure of the electronic device provided by the embodiments of the present application will be introduced.
[0099] Exemplarily, Figure 1 shows a schematic diagram of the hardware structure of an electronic device provided by the embodiments of the present application. As Figure 1As shown, the electronic device may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, antenna 1, antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, and a display screen 194, etc.
[0100] Optionally, the above sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0101] It can be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device. In other embodiments of the present application, the electronic device may include more or fewer components than shown, or combine certain components, or split certain components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0102] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor (Modem), a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units may be independent devices or integrated in one or more processors. Among them, the Modem may provide cellular communication capabilities, and the terminal device may implement a series of cellular communication functions such as sending and receiving text messages, 5G-related functions, making calls, and answering calls through the Modem.
[0103] The software system of an electronic device can adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservices architecture, or a cloud architecture. The layered architecture can adopt the Android system, the iOS system, or other operating systems, and the embodiments of the present application do not limit this. Taking the Android system with a layered architecture as an example below, the software architecture of the electronic device provided by the embodiments of the present application is exemplarily described.
[0104] Figure 2 FIG. shows a schematic diagram of the software architecture of a terminal device provided by an embodiment of the present application. As Figure 2 shown, the layered architecture divides the software architecture of the electronic device into several layers, and each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system can be divided into five layers, from top to bottom, which are the applications layer, the application framework layer, the hardware abstraction layer (HAL), the kernel layer, and the hardware layer.
[0105] The applications layer can include a series of application packages, and the applications layer runs the applications by calling the application programming interfaces (APIs) provided by the application framework layer. As Figure 2 shown, the application packages can include applications such as a browser, a phone, a video, and a network detection application. The network detection application can also be called a perception application, and the embodiments of the present application do not limit this.
[0106] Among them, the network detection application can detect the status of the buffer in the link layer and the transmission status of data packets in the transport layer when the electronic device accesses the Internet using a cellular network, and identify the phenomenon of the network according to the status of the buffer in the link layer and the transmission status of data packets in the transport layer. The network detection application can also evaluate the network quality and identify the cause of lag.
[0107] Among them, the phenomena may include primary congestion, severe congestion, large latency, other reasons, and up without down, etc. Primary congestion is used to represent a slight or temporary delay or blockage in network connection or data transmission. Severe congestion is used to represent a severe delay or blockage in network connection or data transmission. Large latency is used to represent an excessively long delay time in network connection or data transmission. Up without down is used to represent a situation where the network connection or data transmission only works normally upward (e.g., from a terminal device to a network device), but does not work downward (e.g., from a network device to a terminal device). Other reasons are used to represent other phenomena that can cause lag except severe congestion, large latency, and up without down.
[0108] Among them, the reasons for lag may include EPS session management (ESM) exception and access layer exception, etc. Among them, EPS is the evolved packet system, and ESM exception is used to represent an exception in the core network device. Access layer exception is used to represent an exception in an electronic device or an access network device. It should be noted that ESM exception and access layer exception are only name examples, and the embodiments of the present application do not limit this. The embodiments of the present application do not limit the specific implementation manner of identifying the reasons for lag.
[0109] The application layer may further include a self-healing module. The self-healing module can obtain the phenomena and reasons for lag identified by the network detection application. The self-healing module can identify the phenomena to obtain the lag level, and based on the lag level and the reasons for lag, determine the self-healing actions to be executed. In the case where multiple self-healing actions can be executed, these multiple self-healing actions are executed serially. It can be to execute one self-healing action each time, and after executing this self-healing action, the phenomena detected by the network detection application can be obtained. If there is still lag, for example, there is one of severe congestion, large latency, other reasons, and up without down, then execute other self-healing actions. If there is no lag, then end.
[0110] The application framework layer provides APIs and programming frameworks for the applications in the application layer. The application framework layer includes some predefined functions. As Figure 2 shown, the application framework layer may include a view system, a content provider, a phone manager, etc.
[0111] The purpose of the HAL layer is to abstract the hardware, and it can provide a unified interface for querying hardware devices for the upper-layer applications, or it can also provide data storage services for the upper-layer applications. As Figure 2 shown, the HAL layer may include a display driver module and a sensor hardware abstraction.
[0112] The kernel layer is the layer between the hardware and the software. The kernel layer is used to drive the hardware to make the hardware work. As Figure 2As shown, the kernel layer may include one or more of the following: display driver, sensor driver, Modem, etc. Among them, the Modem can execute the self-healing actions determined by the above self-healing module to achieve the repair of lags.
[0113] The hardware layer may include hardware such as cameras and displays.
[0114] It should be understood that in some embodiments, layers that implement the same function may be called other names, or a layer that can implement the functions of multiple layers may be regarded as one layer, or a layer that can implement the functions of multiple layers may be divided into multiple layers. The embodiments of the present application do not limit this.
[0115] As described above in conjunction with Figure 1 and Figure 2 , the software and hardware structures of the electronic device in the embodiments of the present application are introduced. Next, a method for processing network lags applied to the electronic device is introduced.
[0116] Before introducing the method provided by the embodiments of the present application, the lag levels set by the embodiments of the present application and the corresponding self-healing actions for different lag levels are first introduced.
[0117] Exemplarily, Table 1 shows a schematic diagram of self-healing actions corresponding to different lag levels.
[0118] Table 1
[0119]
[0120]
[0121] As shown in Table 1, the levels are divided into not lagging, slightly lagging, and severely lagging. When the phenomenon is primary congestion, the level is not lagging. When the phenomenon is severe congestion and large delay, the level is slightly lagging. When the phenomenon is no response, the level is severely lagging. Among them, slightly lagging can also be called slight lag, and severely lagging can also be called severe lag. The embodiments of the present application do not limit this.
[0122] When the phenomenon is primary congestion, the self-healing actions that the electronic device can execute can be data layer self-healing actions, and link layer self-healing actions may not be executed. The data layer self-healing actions may include foreground acceleration, packet loss, and background speed limit. Among them, foreground acceleration, packet loss, and background speed limit can be executed in parallel.
[0123] When the phenomenon is severe congestion, the self-healing actions performed by the electronic device can be link layer self-healing actions, and data layer self-healing actions may not be performed. Among them, the link layer self-healing actions can include black cell and SA off. Among them, black cell and SA off are executed serially, that is, when one self-healing action cannot solve the problem of severe congestion, the electronic device executes the other self-healing action. The execution order of black cell can be before the execution order of SA off.
[0124] When the phenomenon is large delay, the self-healing actions performed by the electronic device can be data layer self-healing actions or link layer self-healing actions. Among them, the data layer self-healing actions can include route update and data reconstruction, and the link layer self-healing actions can include black cell and SA off. Among them, route update, data reconstruction, black cell, and SA off are executed serially. The execution order of route update, data reconstruction, black cell, and SA off can be from left to right.
[0125] When the phenomenon is no downlink while there is uplink, the self-healing actions performed by the electronic device can be data layer self-healing actions or link layer self-healing actions. Among them, the data layer self-healing actions can include route update and data reconstruction, and the link layer self-healing actions can include black cell, SA off, re-registration, and restart of radio function. Among them, route update, data reconstruction, black cell, SA off, re-registration, and restart of radio function are executed serially, and the execution order of these self-healing actions can be from left to right.
[0126] It should be noted that the trigger thresholds corresponding to different phenomena shown in Table 1 are only an example, and the embodiments of the present application do not limit this. In Table 1, if there are B buffer times greater than X milliseconds (ms) within A seconds (s), the phenomenon is primary congestion. Among them, A and B are integers greater than 1, and A and B can be the same or different, and the embodiments of the present application do not limit this. For example, both A and B can be 3. The length of the buffer time can be used to represent the number of buffered data packets. The longer the buffer time, the more buffered data packets, and the more serious the lag. The buffer time can also be understood as the time of the data packet in the buffer area. The longer the time, the more data packets, and the more serious the lag.
[0127] If it reaches D times of cache time greater than Y ms within C s, the phenomenon is severe congestion. Among them, Y can be greater than X. It can be understood that the degree of severe congestion is greater than that of primary congestion. The specific values of C and D are not limited in the embodiments of the present application. If it reaches F times of round-trip time (RTT) greater than Z ms within E s, the phenomenon is large delay. Among them, the embodiments of the present application do not limit the relationship between E and F and C and D. RTT is used to represent the time required for a data packet to be sent from the sender and received by the receiver. The longer the RTT, the longer the transmission time of the data packet and the more serious the lag. If it reaches H times of the situation where it works upward but does not work downward within G s, the phenomenon is having up without down.
[0128] Based on the settings shown in Table 1, the embodiments of the present application provide a method for handling network lag.
[0129] Exemplarily, Figure 3 shows a schematic flowchart of a method for handling network lag provided by an embodiment of the present application. As Figure 3 shown, the method may include the following steps:
[0130] S301. When the electronic device uses the cellular network, obtain the status of the buffer in the link layer.
[0131] When the cellular network of the electronic device is in an open state, the electronic device can obtain the status of the buffer in the link layer in real time or periodically.
[0132] S302. The electronic device determines whether the phenomenon is primary congestion according to the status of the buffer in the link layer.
[0133] The electronic device can obtain the phenomenon where the electronic device is located based on the threshold that the status of the buffer in the link layer can reach, and determine whether the phenomenon is primary congestion. If it is primary congestion, the electronic device executes S303. If primary congestion does not occur, the electronic device executes S301 to detect whether primary congestion occurs in real time or periodically.
[0134] S303. If the phenomenon is primary congestion, the electronic device performs foreground acceleration and packet loss.
[0135] If the status of the buffer in the link layer can reach B times of cache time greater than X ms within A s, the phenomenon is primary congestion. The electronic device can perform foreground acceleration and packet loss in parallel, and determine whether the condition for performing background speed limit is met, that is, execute S304.
[0136] S303. If the phenomenon is primary congestion, the electronic device can determine whether the transmission rate of the data packets of the background application is greater than the threshold.
[0137] When the running speed of the background application is greater than the threshold, the background application occupies more resources. When the transmission speed of the data packet of the background application is less than or equal to the threshold, the background application occupies relatively fewer resources. In some examples, the threshold may be 50 kilobits per second (kbps) or 55 kbps, and the specific value of the threshold is not limited in the embodiments of the present application.
[0138] S304. When the transmission speed of the data packet of the background application is greater than the threshold, perform background speed limiting.
[0139] Since the background occupies more resources, which may cause congestion, the electronic device can perform background speed limiting.
[0140] If the transmission speed of the data packet of the background application is less than or equal to the threshold and the background occupies fewer resources, performing background speed limiting may affect the operation of the background application. In this case, the electronic device may not perform background speed limiting. At this time, the electronic device can relieve congestion by foreground acceleration and packet loss.
[0141] As can be seen from the above, when a primary congestion occurs and the transmission speed of the data packet of the background application is greater than the threshold, the electronic device can perform foreground acceleration, packet loss, and background speed limiting in parallel to relieve congestion. When a primary congestion occurs and the transmission speed of the data packet of the background application is less than or equal to the threshold, the electronic device can perform foreground acceleration and packet loss in parallel to relieve congestion.
[0142] After the electronic device performs foreground acceleration and packet loss, or performs foreground acceleration, packet loss, and background speed limiting, it can determine again whether the phenomenon is still a primary congestion. If the trigger threshold for primary congestion is not reached, the process ends. If it is still a primary congestion, the self-healing action can be continued to relieve congestion.
[0143] The method for handling network lag provided by the embodiments of the present application performs self-healing actions such as foreground acceleration, packet loss, and background speed limiting when the phenomenon is a primary congestion, which is beneficial to relieving congestion and reducing the probability of lag occurrence.
[0144] Optionally, the software architecture of the electronic device may be as described above Figure 2 As shown, the electronic device may include a network detection application and a self-healing module. The network detection application can perform the above S301 and S302. If the phenomenon is a primary congestion, the network detection application can report to the self-healing module that the phenomenon is a primary congestion. The self-healing module can determine the self-healing actions as foreground acceleration, background, and background speed limiting based on the primary congestion and the corresponding relationship shown in Table 1 above. The self-healing module can instruct the module that can perform the corresponding self-healing action to perform the self-healing action, or the self-healing module can set a flag to indicate the self-healing action that needs to be performed. The module that can perform the self-healing action can detect the flag and perform the self-healing action.
[0145] If front-end acceleration, packet loss, and back-end speed limiting cannot successfully alleviate congestion, it will cause the electronic device to freeze. The following will introduce the method for handling freezing in the embodiments of the present application.
[0146] Exemplarily, Figure 4 Fig. shows a schematic flowchart of a method for handling network freezing provided by an embodiment of the present application. As Figure 4 shown, the method may include the following steps:
[0147] S401. The electronic device obtains the transmission status of the transport layer data packet.
[0148] The transmission status of the transport layer data packet may be a certain status obtained by the electronic device in real time or periodically. Among them, the transmission status of the transport layer data packet may also be referred to as the network status or the link layer status, and the embodiments of the present application do not limit this.
[0149] S402. The electronic device obtains a phenomenon based on the transmission status of the transport layer data packet.
[0150] The electronic device may obtain the phenomenon where the electronic device is located based on the threshold that the transmission status of the transport layer data packet can reach.
[0151] S403. If the phenomenon is freezing, the electronic device determines the freezing level, where freezing is used to represent severe congestion, large delay, or no data reception.
[0152] If the phenomenon is severe congestion or large delay, the freezing level is slightly frozen. If the phenomenon is no data reception, the freezing level is severely frozen.
[0153] S404. If the phenomenon is freezing, the electronic device obtains the cause of freezing, where the cause of freezing is ESM exception or access layer exception.
[0154] S405. The electronic device determines whether the cause of freezing is an access layer exception.
[0155] If the cause of freezing is an access layer exception, it is determined whether the freezing level is severe freezing, that is, S407 is executed. If the cause of freezing is not an access layer exception, route update or data reconstruction may be performed, that is, S406 is executed.
[0156] In particular, if the cause of freezing is not an access layer exception and the phenomenon is severe congestion, the electronic device may not perform route update or data reconstruction, and it may be determined whether the freezing level is severe freezing, that is, S407 is executed.
[0157] S406. When the cause of the lag is not an access layer exception, the electronic device performs route update. After performing the update reason, if the electronic device still lags and the cause of the lag is not an access layer exception, it performs data reconstruction.
[0158] If the electronic device still lags after performing data reconstruction, it determines whether the lag level is severe lag, that is, it performs S407.
[0159] S407. When the cause of the lag is an access layer exception, the electronic device determines whether the lag level is severe lag.
[0160] As can be seen from Table 1 above, the self-healing actions performed for slight lag and severe lag are not exactly the same. Therefore, the electronic device needs to determine whether the lag level is severe lag.
[0161] S408. If the lag level is severe lag, it performs black cell, turns off SA, re-registers, or restarts the radio function.
[0162] It can be understood that the electronic device can first perform black cell. If the electronic device is still severely lagging after performing black cell and the cause of the lag is an access layer exception, it performs turning off SA. If the electronic device is still severely lagging after performing turning off SA and the cause of the lag is an access layer exception, it performs re-registration. If the electronic device is still severely lagging after performing re-registration and the cause of the lag is an access layer exception, it performs restarting the radio function.
[0163] S409. If the lag level is not severe lag, it performs black cell or turns off SA.
[0164] It can be understood that the electronic device can first perform black cell. If the electronic device is still not severely lagging after performing black cell and the cause of the lag is an access layer exception, it performs turning off SA.
[0165] S410. After performing black cell, turning off SA, re-registration, and restarting the radio function, or after performing black cell and turning off SA, if the electronic device is still lagging, it performs dual SIM card switching.
[0166] After performing black cell, turning off SA, re-registration, and restarting the radio function, or after performing black cell and turning off SA, if the electronic device is still lagging, it means that the link layer self-healing fails, and the electronic device can perform dual SIM card switching.
[0167] From Figure 4 the method shown, in the scenario of lag and severe congestion, regardless of whether the cause of the lag is an access layer exception, the electronic device can repair the lag through black cell or turning off SA.
[0168] In a scenario where there is lag and the lag level is minor lag (except for the phenomenon of severe congestion), if the cause of the lag is an access layer anomaly, the self-healing actions performed by the electronic device do not include updating the route and reconstructing data, and may include blacklisting the cell and / or disabling SA; if the cause of the lag is an access layer anomaly, the self-healing actions performed by the electronic device include multiple actions among updating the route, reconstructing data, blacklisting the cell, or disabling SA.
[0169] In a scenario where there is lag and the lag level is severe lag, if the cause of the lag is an access layer anomaly, the self-healing actions performed by the electronic device do not include updating the route and reconstructing data, and may include multiple actions among blacklisting the cell, disabling SA, re-registering, or restarting the radio function; if the cause of the lag is an access layer anomaly, the self-healing actions performed by the electronic device include multiple actions among updating the route, reconstructing data, blacklisting the cell, disabling SA, re-registering, or restarting the radio function.
[0170] It can be understood that in the Figure 4 method shown, when the electronic device lags due to an access layer anomaly, it may not perform the self-healing actions of updating the route and reconstructing data. This is because the probability that the self-healing actions of updating the route and reconstructing data cannot fix the lag problem is relatively high. Therefore, when the lag is caused by an access layer anomaly, not performing the self-healing actions of updating the route and reconstructing data is beneficial to improving the processing efficiency.
[0171] In the case where updating the route and reconstructing data cannot fix the lag, performing more self-healing actions, for example, performing one or more of blacklisting the cell, disabling SA, re-registering, and restarting the radio function, is beneficial to increasing the probability of fixing the lag and shortening the lag duration.
[0172] The electronic device can perform different self-healing actions according to different lag levels, that is, perform progressive step-by-step self-healing for minor lag and severe lag, which is beneficial to performing different self-healing actions according to different situations and has stronger flexibility. For the phenomenon of a higher lag level, performing more self-healing actions is beneficial to increasing the probability of successfully fixing the lag and thus shortening the lag duration.
[0173] Optionally, the software architecture of the electronic device can be as shown above Figure 2 The electronic device may include a network detection application and a self-healing module. The network detection application can perform the above S401 and S402. If the phenomenon is lag, the network detection application can also identify the cause of the lag and report the phenomenon of lag and the cause of the lag to the self-healing module. The self-healing module can determine the self-healing actions based on the phenomenon of lag, the corresponding relationship shown in Table 1 above, and the cause of the lag. The self-healing module can instruct other modules that can perform self-healing actions, such as the Modom, to perform the self-healing actions.
[0174] From the above Figure 3 andFigure 4 In the method shown, it can be learned that the electronic device can perform different self-healing actions in different situations. In the embodiments of the present application, Figure 5 summarizes the solution provided by the embodiments of the present application.
[0175] As Figure 5 shown, the electronic device includes a sensing part and self-healing execution. The sensing part can be implemented through a network detection application. The sensing part can sense whether the electronic device has congestion or lags. The self-healing execution is used to represent the self-healing actions to be performed.
[0176] As Figure 5 shown, when the electronic device has primary congestion, data layer self-healing actions such as foreground acceleration, packet loss, and background speed limit are performed, which can relieve congestion and help reduce the probability of lags.
[0177] When the electronic device has lags and the cause of the lags is an access layer anomaly, link layer self-healing actions are performed, that is, one or more self-healing actions among black cell, closing SA, re-registration, or restarting the radio function can be performed. It can be understood that if multiple self-healing actions are performed, these self-healing actions are executed serially.
[0178] When the electronic device has lags and the cause of the lags is not an access layer anomaly, data layer self-healing actions (updating the route and / or reconstructing the data) are first performed, that is, Figure 5 1 shown in Figure 5 ; if there are still lags after performing the data self-healing actions, link layer self-healing actions are performed, that is, Figure 5 2 shown in
[0179] ; if there are still lags after performing the link layer self-healing actions, dual SIM card switching is performed, that is,
[0180] 3 shown in Figures 3 to 5 . It can be understood that the formation of lags is a gradual process, and lags can gradually form from congestion. Therefore, in the embodiments of the present application, foreground acceleration, packet loss, and background speed limit can be performed when the electronic device has primary congestion, which can relieve congestion and help reduce the probability of lags. If the electronic device has lags, self-healing actions can be performed one by one for hierarchical self-healing, which helps shorten the duration of lags.
[0181] Exemplarily, Figure 6 shows a schematic flowchart of a method for handling network lags provided by the embodiments of the present application.
[0182] As Figure 6 shown, the method may include the following steps:
[0183] S601. When the cellular network lags, perform a first preset action.
[0184] The first preset action can also be called a self-healing action. The first preset action can be one action. The first preset action can be the link layer self-healing action or the data layer self-healing action involved in Table 1 above. The embodiments of the present application do not limit this.
[0185] S602. After performing the first preset action, if the cellular network still lags, perform a second preset action; where the first preset action and the second preset action are different preset actions in the first action set, and the preset actions in the first action set are all used to repair lags. When performing the first preset action or the second preset action, other preset actions in the first action set are not performed.
[0186] The first action set can also be called a first action list or a first action array. The embodiments of the present application do not limit this. The preset actions in the first action set are self-healing actions that can be executed when the cellular network of the electronic device lags. In the case of lag, the electronic device can select a preset action from the first action set to execute. In some implementations, the electronic device can select a preset action based on the lag level or based on the cause of the lag. The embodiments of the present application do not limit this.
[0187] The second preset action is executed after the first preset action and when the cellular network still lags, indicating that the first preset action and the second preset action are executed serially. When performing the first preset action or the second preset action, other preset actions in the first action set are not performed, indicating that there are no preset actions that are executed in parallel with the first preset action or the second preset action. In this way, in the case of lag, the preset actions in the first action set are executed serially and not in parallel, which can reduce the conflicts caused by the parallel execution of different preset actions, is beneficial to reducing the probability of the repair of the lag failing due to the parallel execution of the preset actions, and thus improves the probability of successfully repairing the lag and realizes shortening the lag duration.
[0188] Optionally, the method further includes: when the cellular network experiences lag, obtaining the reason for the lag; if the reason for the lag is not an access layer exception, the first action set includes updating the route and / or reconstructing the data; or, if the reason for the lag is an access layer exception, the first action set does not include updating the route and reconstructing the data, and the first preset action and the second preset action are preset actions other than updating the route and reconstructing the data; wherein, the access layer exception is used to indicate that there is an exception in the electronic device or the access network device, updating the route is used to change the transmission path of the data packet in the cellular network by updating the routing table or changing the configuration of the router, and reconstructing the data is used to re - establish the data channel between the electronic device and the access network device.
[0189] The reason for the lag can also be referred to as the lag cause. If the reason for the lag is an access layer exception, the probability that the data layer self - healing action successfully repairs the lag is relatively small, so the data layer self - healing action may not be included in the first action set. For example, the first action set does not include updating the route and reconstructing the data. In this case, the first preset action and the second preset action can be preset actions other than updating the route and reconstructing the data.
[0190] If the reason for the lag is not an access layer exception, for example, the reason for the lag is an ESM exception, the probability that the data layer self - healing action successfully repairs the lag is relatively large, so the data layer self - healing action may be included in the first action set. For example, the first action set includes updating the route and reconstructing the data.
[0191] In this way, for different lag reasons, the executable preset actions are different, which is more flexible and also helps to improve the processing speed.
[0192] Optionally, the preset actions in the first action set are actions executed when the lag level of the cellular network reaches the first level. The electronic device further includes a second action set, and the preset actions in the second action set are all used to repair the lag. The preset actions in the second action set are actions executed when the lag level of the cellular network reaches the second level, and the lag level of the second level is greater than that of the first level. The first action set is a subset of the second action set.
[0193] The lag level of the second level is greater than that of the first level. The second level can refer to the above - mentioned severe lag, and the first level can refer to the above - mentioned slight lag. In other implementations, the second level can be medium lag, and the first level can be slight lag, or the second level can be severe lag, and the first level can be medium lag. The embodiments of the present application do not make any limitations in this regard.
[0194] The second set of actions may also be referred to as the second action list or the second action array, and the embodiments of the present application do not limit this. The preset actions in the second set of actions are self-healing actions that can be executed when the cellular network of the electronic device lags, and the lag level reaches the second level. In the case of lag and the lag level reaching the second level, the electronic device can select a preset action from the second set of actions to execute.
[0195] The first set of actions is a subset of the second set of actions, which can illustrate that the higher the degree of lag, the more preset actions can be executed, which is beneficial to increasing the probability of successfully repairing the lag, and thus beneficial to shortening the lag duration.
[0196] Optionally, the method further includes: in the case of lag in the cellular network, if the lag degree of the cellular network reaches the second level, execute the third preset action; after executing the third preset action, if the cellular network still lags and the lag degree of the cellular network still reaches the second level, execute the fourth preset action; where the third preset action and the fourth preset action belong to different preset actions in the second set of actions, and when executing the third preset action or the fourth preset action, other preset actions in the second set of actions are not executed.
[0197] The fourth preset action is executed after the third preset action, and when the cellular network still lags and the lag level reaches the second level at the same time, which indicates that the fourth preset action and the third preset action are executed serially. When executing the third preset action or the fourth preset action, other preset actions in the second set of actions are not executed, which can illustrate that there are no preset actions executed in parallel with the third preset action or the fourth preset action. In this way, in the case of lag and the lag level reaching the second level, the preset actions in the second set of actions are executed serially and not in parallel, which can reduce the conflicts caused by the parallel execution of different preset actions, is beneficial to reducing the probability of the repair of the lag failing due to the parallel execution of the preset actions, and thus increases the probability of successfully repairing the lag and realizes shortening the lag duration.
[0198] Optionally, the second set of actions includes the following multiple preset actions: update the route, reconstruct the data, blacklist the cell, turn off Standalone (SA), re-register, or restart the radio function; where updating the route is used to change the transmission path of data packets in the cellular network by updating the routing table or changing the configuration of the router, reconstructing the data is used to re-establish the data channel between the electronic device and the access network device, blacklisting the cell is used to switch from the resident cell of the electronic device to other cells; turning off Standalone (SA) is used to change the mobile communication technology, re-registering is used to re-register on the access network device so as to enable the electronic device to communicate with the access network device; restarting the radio function is used to stop the cellular communication and then turn on the cellular communication.
[0199] Optionally, the first set of actions includes updating the routing, reconstructing the data, blacklisting a cell, or multiple preset actions in Standalone (SA) networking.
[0200] Optionally, the cellular network reaching the first level of lag includes: the cellular network experiencing N times of a first phenomenon within a first time period, where N is greater than or equal to 1; the first phenomenon includes one or more of the following: the time of a data packet in the buffer being greater than a first preset duration; or, the round-trip time (RTT) of data packet transmission being greater than a second preset duration.
[0201] In some implementations, the first level can refer to the slight lag shown in Table 1 above, the first phenomenon can refer to the severe congestion shown in Table 1 above, the time of a data packet in the buffer being greater than the first preset duration can refer to the triggering threshold of severe congestion, the first preset duration can be Y ms, the time of a data packet in the buffer can be the buffering time, the first time period can be C s, and N can be D. If the cellular network experiences D times of buffering time greater than Y ms within C s, it reaches the first level.
[0202] In other implementations, the first level can refer to the slight lag shown in Table 1 above, the first phenomenon can refer to the large delay shown in Table 1 above, the RTT of data packet transmission being greater than the second preset duration can refer to the triggering threshold of large delay, the second preset duration can be Z ms, the first time period can be E s, and N can be F. If the cellular network experiences F times of RTT greater than Z ms within E s, it reaches the first level.
[0203] Optionally, the cellular network reaching the second level of lag includes: the cellular network experiencing M times of a second phenomenon within a second time period, where M is greater than or equal to 1; the second phenomenon includes the data packet having an upward transmission but no downward transmission.
[0204] The second level can refer to the severe lag shown in Table 1 above, the second phenomenon can refer to the "upward without downward" in Table 1 above. The second time period can be G s, and M can be H. If the cellular network experiences H times of data packets having an upward transmission but no downward transmission within G s, it reaches the second level.
[0205] Optionally, the ability of the second preset action to repair lag is greater than that of the first preset action. This is beneficial for gradually repairing the lag and increasing the probability of successfully repairing the lag.
[0206] Optionally, the electronic device includes a first card and a second card, both of which are used to provide the cellular network; the method further includes: after all the preset actions in the first set of actions are executed, if the cellular network still lags, when the cellular network is provided by the first card, using the second card to provide the cellular network.
[0207] The first card and the second card can be different SIM cards or eSIM cards, and the embodiments of the present application do not limit this.
[0208] If there is still lag after all the preset actions in the first action set are executed, the self-healing action of dual-card switching is used to repair the lag. In this way, it is beneficial to increase the probability of successfully repairing the lag.
[0209] Optionally, in the case of lag in the cellular network, before executing the first preset action, the method further includes: if the cellular network is congested, execute the fifth preset action, and the fifth preset action is used to relieve the congestion.
[0210] The fifth preset action can be one action or multiple actions, and the embodiments of the present application do not limit this. If multiple actions are executed, it is beneficial to relieve the congestion faster.
[0211] In the case of congestion, executing the fifth preset action to relieve the congestion is beneficial to reduce the probability of lag occurring or delay the time when lag occurs.
[0212] Optionally, the fifth preset action includes one or more of foreground acceleration, packet loss, or background speed limit. Among them, foreground acceleration is used to increase the transmission priority of data packets of foreground applications in the electronic device, and background speed limit is used to reduce the transmission rate of data packets of background applications.
[0213] In one example, the fifth preset action may include foreground acceleration and packet loss. In another example, the fifth preset action may include foreground acceleration, packet loss, and background speed limit. In yet another example, the fifth preset action may include foreground acceleration and background speed limit. In this way, it is beneficial to relieve the congestion.
[0214] Optionally, when the fifth preset action includes background speed limit, if the cellular network is congested, executing the fifth preset action includes: if the cellular network is congested and the transmission rate of data packets of background applications in the electronic device is greater than the preset threshold, then execute the fifth preset action.
[0215] In the case where the transmission rate of data packets of background applications is greater than the preset threshold, executing background speed limit is beneficial to reduce the probability of affecting the operation of background applications.
[0216] It should be noted that the module names involved in the embodiments of the present application can all be defined as other names, as long as the functions of each module can be achieved, and the names of the modules are not specifically limited.
[0217] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in the embodiments of the present application are all information and data that have been authorized by the user or fully authorized by all parties. And the collection, use, and processing of relevant data need to comply with the relevant laws, regulations, and standards of relevant countries and regions, and corresponding operation entrances are provided for users to choose to authorize or refuse.
[0218] The method for handling network lag in the embodiments of the present application has been described above. Next, the device for executing the above method provided by the embodiments of the present application will be described. Those skilled in the art can understand that the method and the device can be combined and cited with each other. The relevant device provided by the embodiments of the present application can execute the steps in the above method for handling network lag.
[0219] Figure 7 It is a schematic structural diagram of a chip provided by an embodiment of the present application. As Figure 7 shown, the chip 70 includes one or more than two (including two) processors 701, a communication line 702, a communication interface 703, and a memory 704.
[0220] In some embodiments, the memory 704 stores the following elements: executable modules or data structures, or subsets thereof, or extended sets thereof.
[0221] The method for handling network lag described in the above embodiments of the present application can be applied to the processor 701 or implemented by the processor 701. The processor 701 may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method for handling network lag can be completed by the integrated logic circuit in hardware or instructions in software form in the processor 701. The above-mentioned processor 701 may be a general-purpose processor (for example, a microprocessor or a conventional processor), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate, transistor logic devices, or discrete hardware components. The processor 701 can implement or execute the various processing-related methods, steps, and logic block diagrams disclosed in the embodiments of the present application.
[0222] The steps of the method for handling network lag disclosed in the embodiments of the present application can be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. Among them, the software module can be located in mature storage media in the art such as random access memory, read-only memory, programmable read-only memory, or electrically erasable programmable read-only memory (EEPROM). This storage media is located in the memory 704, and the processor 701 reads the information in the memory 704 and combines its hardware to complete the steps of the above method.
[0223] Communication can be carried out between the processor 701, the memory 704, and the communication interface 703 through the communication line 702.
[0224] In the above embodiments, the instructions stored in the memory for the processor to execute can be implemented in the form of a computer program product. Among them, the computer program product can be pre-written in the memory in advance, or downloaded and installed in the memory in the form of software.
[0225] The method for handling network lag provided by the embodiments of the present application can be applied to electronic devices with communication functions. The electronic device includes a terminal device. The specific device form of the terminal device and the like can refer to the above relevant description and will not be elaborated here.
[0226] The embodiments of the present application provide an electronic device, which includes: a processor and a memory; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory, so that the electronic device executes the above method.
[0227] The embodiments of the present application also provide a computer-readable storage medium. The computer-readable storage medium stores a computer program. When the computer program is executed by the processor, the above method is implemented. The methods described in the above embodiments can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. If implemented in software, the functions can be stored as one or more instructions or codes on a computer-readable medium or transmitted on a computer-readable medium. The computer-readable medium can include a computer storage medium and a communication medium, and can also include any medium that can transfer a computer program from one place to another. The storage medium can be any target medium accessible by a computer.
[0228] In one possible implementation, the computer-readable medium may include RAM, ROM, compact disc read-only memory (CD-ROM), or other optical disc storage, magnetic disk storage, or any other medium targeted to carry or store the required program code in the form of instructions or data structures and accessible by a computer. Moreover, any connection is properly termed a computer-readable medium. For example, if 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 the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of the medium. As used herein, disk and optical disc include optical disc, laser disc, optical disc, Digital Versatile Disc (DVD), floppy disk, and Blu-ray disc, where disks typically reproduce data magnetically, while optical discs utilize lasers to optically reproduce data. Combinations of the above should also be included within the scope of computer-readable media.
[0229] An embodiment of the present application provides a computer program product, which includes a computer program that, when run, causes a computer to execute the above method.
[0230] Embodiments of the present application are described with reference to the flowcharts and / or block diagrams of methods, apparatuses (systems), and computer program products according to embodiments of the present application. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, as well as combinations of flows and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to the processing unit of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable devices to generate a machine, such that the instructions executed by the processing unit of the computer or other programmable data processing device generate means for implementing the functions specified in Figure 1 one or more of the flows or Figure 1 blocks or combinations of blocks.
[0231] The above specific embodiments further elaborate on the purpose, technical solutions, and beneficial effects of the present invention. It should be understood that the above are only specific embodiments of the present invention and are not used to limit the protection scope of the present invention. Any modifications, equivalent replacements, improvements, etc. made on the basis of the technical solutions of the present invention should be included within the protection scope of the present invention.
Claims
1. A method for handling network lag, characterized in that, Applied to an electronic device, including: When the cellular network lags, perform a first preset action; After performing the first preset action, if the cellular network still lags, perform a second preset action; Wherein, the first preset action and the second preset action are different preset actions in a first action set, and the preset actions in the first action set are all used to repair lags. When performing the first preset action or the second preset action, other preset actions in the first action set are not performed.
2. The method according to claim 1, wherein The method further includes: When the cellular network lags, obtain the cause of the lag; If the cause of the lag is not an access layer exception, the first action set includes updating the route and / or reconstructing data; or, If the cause of the lag is the access layer exception, the first action set does not include the route update and the data reconstruction, and the first preset action and the second preset action are preset actions other than the route update and the data reconstruction; Wherein, the access layer exception is used to indicate that there is an exception in the electronic device or the access network device, the route update is used to change the transmission path of data packets in the cellular network by updating the routing table or changing the configuration of the router, and the data reconstruction is used to re - establish the data channel between the electronic device and the access network device.
3. The method according to claim 1 or 2, characterized in that, The preset actions in the first action set are actions executed when the lag level of the cellular network reaches a first level. The electronic device further includes a second action set, and the preset actions in the second action set are all used to repair lags. The preset actions in the second action set are actions executed when the lag level of the cellular network reaches a second level, and the lag level of the second level is greater than the lag level of the first level. The first action set is a subset of the second action set.
4. The method according to claim 3, wherein The method further includes: When the cellular network lags, if the lag level of the cellular network reaches the second level, perform a third preset action; After performing the third preset action, if the cellular network still lags and the lag level of the cellular network still reaches the second level, perform a fourth preset action; Wherein, the third preset action and the fourth preset action are different preset actions in the second action set. When performing the third preset action or the fourth preset action, other preset actions in the second action set are not performed.
5. The method according to claim 3 or 4, characterized in that, The second action set includes the following multiple preset actions: Update route, reconstruct data, blacklist cell, turn off Standalone (SA), re - register, or restart radio function; Among them, the update routing is used to change the transmission path of data packets in the cellular network by updating the routing table or changing the configuration of the router. The reconstructed data is used to re - establish the data channel between the electronic device and the access network device. The black cell is used to switch from the resident cell of the electronic device to other cells. The Standalone (SA) mode off is used to change the mobile communication technology. The re - registration is used to re - register on the access network device so as to enable communication between the electronic device and the access network device. The restart radio function is used to stop the cellular communication and then turn on the cellular communication.
6. The method according to claim 5, wherein The first action set includes multiple preset actions among the update routing, the reconstructed data, the black cell, or the Standalone (SA) mode off.
7. The method according to any one of claims 3 to 6, characterized in that, The congestion level of the cellular network reaching the first level includes: the cellular network has N first phenomena occurring within the first time period, where N is greater than or equal to 1. Among them, the first phenomenon includes one or more of the following: The time of the data packet in the buffer is greater than the first preset duration; or, The round - trip time (RTT) of the data packet transmission is greater than the second preset duration.
8. The method according to any one of claims 3 to 7, characterized in that The congestion level of the cellular network reaching the second level includes: the cellular network has M second phenomena occurring within the second time period, where M is greater than or equal to 1. Among them, the second phenomenon includes that there is an upward transmission of the data packet but no downward transmission.
9. The method according to any one of claims 1 to 8, characterized in that, The ability of the second preset action to repair congestion is greater than the ability of the first preset action to repair congestion.
10. The method according to any one of claims 1 to 9, characterized in that, The electronic device includes a first card and a second card, and both the first card and the second card are used to provide cellular networks. The method further includes: After all the preset actions in the first action set are executed, if the cellular network still has congestion, when the cellular network is provided by the first card, use the second card to provide the cellular network.
11. The method according to any one of claims 1 to 10, characterized in that, Before executing the first preset action when the cellular network has congestion, the method further includes: If the cellular network is congested, execute a fifth preset action, and the fifth preset action is used to relieve congestion.
12. The method according to claim 11, wherein The fifth preset action includes one or more of foreground acceleration, packet loss, or background speed limit. Among them, the foreground acceleration is used to increase the transmission priority of the data packets of the foreground applications in the electronic device, and the background speed limit is used to reduce the transmission rate of the data packets of the background applications.
13. The method according to claim 12, wherein When the fifth preset action includes the background speed limit, the step of "if the cellular network is congested, execute the fifth preset action" includes: If the cellular network is congested and the transmission rate of the data packets of the background applications in the electronic device is greater than the preset threshold, then execute the fifth preset action.
14. An electronic device, characterized in that, including: a processor and a memory; The memory stores computer - executable instructions; The processor executes the computer - executable instructions stored in the memory, so that the electronic device executes the method according to any one of claims 1 - 13.
15. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the method according to any one of claims 1 - 13.
16. A chip system, characterized in that, Comprising at least one processor and a communication interface, the communication interface and the at least one processor are interconnected by a line, and the at least one processor is configured to run a computer program or instructions to execute the method according to any one of claims 1-13.
17. A computer program product, characterized in that, Comprising a computer program, when the computer program is run, it causes a computer to execute the method according to any one of claims 1-13.
Citation Information
Patent Citations
Business serial processing method and system in multi-stream application of mobile communication system
CN101155370A
Multi-mode multi-card mobile terminal and business conflict solution method and apparatus thereof
CN104144406A
Network switching suppression method, electronic equipment, medium and product
CN116321330A
Network lagging processing method and device, and storage medium
CN116347488A
Network acceleration method and electronic equipment
CN116744329A