WO2021259362A1 - 一种数据传输异常恢复方法、装置及终端设备 - Google Patents

一种数据传输异常恢复方法、装置及终端设备 Download PDF

Info

Publication number
WO2021259362A1
WO2021259362A1 PCT/CN2021/102120 CN2021102120W WO2021259362A1 WO 2021259362 A1 WO2021259362 A1 WO 2021259362A1 CN 2021102120 W CN2021102120 W CN 2021102120W WO 2021259362 A1 WO2021259362 A1 WO 2021259362A1
Authority
WO
WIPO (PCT)
Prior art keywords
data transmission
network mode
abnormal
terminal device
current network
Prior art date
Application number
PCT/CN2021/102120
Other languages
English (en)
French (fr)
Inventor
黄宇永
蔡宗颖
Original Assignee
深圳市万普拉斯科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市万普拉斯科技有限公司 filed Critical 深圳市万普拉斯科技有限公司
Publication of WO2021259362A1 publication Critical patent/WO2021259362A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/04Arrangements for maintaining operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/06Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals

Definitions

  • the present invention claims the priority of a Chinese patent application filed with the Chinese Patent Office on June 24, 2020, the application number is 202010591553.4, and the invention title is "a method, device and terminal equipment for recovering abnormal data transmission", the entire content of the application Incorporated in the present invention by reference.
  • the embodiments of the present application relate to the field of communication technologies, and in particular, to a method, device, and terminal device for recovering from abnormal data transmission.
  • the request sent by the terminal device cannot receive a response from the network side, resulting in abnormal data transmission of the terminal device.
  • the terminal device needs to re-register to the network to recover the abnormal data transmission.
  • the inventor found in the process of implementing this application: Currently, when a terminal device detects an abnormal data transmission, it first reacquires the network registration status of the terminal device and restarts the data switch. If the data transmission abnormality is still detected, then restart Registering the network to recover abnormal data transmission takes a long time to recover abnormal data transmission, which cannot meet the needs of users to surf the Internet quickly, and the user experience is poor.
  • the embodiments of the present application provide a method, device, and terminal device for recovering from abnormal data transmission, which can shorten the time for recovering from abnormal data transmission and improve user experience.
  • a technical solution adopted in the embodiments of the present application is to provide a method for recovering abnormal data transmission, which is applied to terminal equipment, including:
  • protection timer If the protection timer is not in the running state, start the protection timer and switch the current network mode.
  • a data transmission abnormality recovery device which is applied to terminal equipment, including:
  • the startup module is used to start data transmission abnormal detection when the data connection is active
  • the determining module is used to determine whether the protection timer is running when the data transmission is abnormal
  • the processing module is configured to start the protection timer and switch the current network mode when the protection timer is not in the running state.
  • a terminal device including:
  • At least one processor At least one processor
  • the device can be used to perform the above-mentioned data transmission abnormal recovery method.
  • another technical solution adopted in the embodiments of the present application is to provide a non-volatile computer-readable storage medium, the non-volatile computer-readable storage medium stores computer-executable instructions, so The computer-executable instructions are used to make the terminal device execute the above-mentioned data transmission abnormal recovery method.
  • FIG. 1 is a schematic structural diagram of an implementation environment provided by an embodiment of the present application.
  • FIG. 2 is a schematic flowchart of a method for recovering from an abnormal data transmission provided by an embodiment of the present application
  • FIG. 3 is a schematic flowchart of a method for recovering abnormal data transmission according to another embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of a data transmission abnormal recovery device provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of the hardware structure of a terminal device provided by an embodiment of the present application.
  • This application provides a method and device for recovering abnormal data transmission.
  • the method and device are applied to a terminal device, so that the terminal device can shorten the time for recovering abnormal data transmission, and can avoid frequent out-of-service when recovering abnormal data transmission Status improves the user experience.
  • FIG. 1 is a schematic structural diagram of an implementation environment provided by an embodiment of the present application.
  • the implementation environment includes: a terminal device 100, an access network 200, and a core network 300.
  • the terminal device 100 is a device capable of network communication, such as a mobile phone, a tablet computer, and a smart watch.
  • the terminal device 100 needs to obtain services on the network side, the terminal device 100 needs to establish an RRC connection with the access network 200 and register the network (attach) in the core network 300 to register the identity information and location information in the core network 300 and The default bearer is activated.
  • the terminal device 100 can establish a corresponding user plane data bearer channel with the network to realize data transmission.
  • the request sent by the terminal device 100 can receive a response from the network side, and the data transmission of the terminal device 100 is normal; if the terminal device 100 is in the core network If the registration context of the network 300 is abnormal, the request sent by the terminal device 100 cannot receive a response from the network side, and the data transmission of the terminal device 100 is abnormal.
  • the terminal device 100 needs to re-register the network to change the registration context in the core network 300, so that the registration context in the core network 300 can be restored to normal, and the data transmission can be restored to normal.
  • the terminal device 100 when the terminal device 100 detects an abnormal data transmission, it first reacquires the network registration status and restarts the data switch. If the data transmission abnormality is still detected, it re-registers to the network, resulting in a longer time for restoring the abnormal data transmission.
  • the terminal device 100 implements the recovery of the data transmission abnormality by executing the data transmission abnormality recovery method.
  • the terminal device 100 starts data transmission abnormality detection when the data connection is active. If the data transmission abnormality is detected, it determines whether the protection timer is in the running state, and if the protection timer is not In the running state, the protection timer is started and the current network mode is switched. Among them, when a data transmission abnormality is detected and the protection timer is not running, the current network mode is directly switched to realize re-registration of the network, which simplifies the steps of recovering abnormal data transmission and shortens the recovery time of abnormal data transmission. At the same time, Switching the current network mode when the protection timer is not in the running state can prevent the terminal device 100 from frequently switching the current network mode, thereby preventing the terminal device 100 from frequently appearing out of service when recovering abnormal data transmission, and improving user experience.
  • FIG. 2 is a schematic flowchart of a method for recovering from a data transmission abnormality provided by an embodiment of the present application.
  • the method for recovering from a data transmission abnormality includes the following steps.
  • the data connection of the terminal device when the data switch of the terminal device is turned on and a corresponding user plane data bearer channel is established between the terminal device and the network, the data connection of the terminal device is in an active state.
  • the terminal device can realize data transmission.
  • the data transmission state of the terminal device can be detected to accurately determine the data transmission state of the terminal device. Therefore, when the data connection is in the active state When the data transmission abnormality detection is activated.
  • the abnormality detection timer is first started, and the abnormality detection timer is set with a first preset time; then, when the abnormality detection timer expires, the statistics are calculated for the first preset time The number of packets sent and received; finally determine whether the data transmission is abnormal according to the number of packets sent and the number of packets received within the first preset time. If the number of packets sent within the first preset time is greater than zero and the number of received packets is equal to zero, the data is determined The transmission is abnormal, otherwise, confirm that the data transmission is not abnormal.
  • the terminal device after the terminal device sends an IP packet, if it can get a response from the network side, the terminal device can receive the IP packet returned by the network side; if it cannot get a response from the network side, then The terminal device cannot receive the IP packet returned from the network side. Therefore, if the number of sent packets within the first preset time is greater than zero and the number of received packets is equal to zero, it is determined that none of the IP packets sent by the terminal device within the first preset time receive a response from the network side, and it is determined that the data transmission is abnormal.
  • the number of packets sent and the number of packets received by the terminal device within the first preset time are not negative integers.
  • the protection timer is set with a second preset time, and the second preset time is greater than the first preset time.
  • the second preset time is set to 300s.
  • the protection timer is used to enable the terminal device to switch the current network mode twice at an interval of at least a second preset time, so as to prevent the terminal device from frequently switching the current network mode.
  • the protection timer is a ping-pong protection timer.
  • the network mode includes the network communication type, which is used to characterize the network communication type supported by the terminal device. For example, when the network communication types included in the network mode are 2G, 3G, 4G, and 5G, the network communication types supported by the terminal device are 2G, 3G, 4G, and 5G; when the network communication types included in the network mode are 2G, 3G, and In 4G, the network communication types supported by the terminal equipment are 2G, 3G, and 4G.
  • Each preset network mode includes at least one network communication type among 2G, 3G, 4G, and 5G, and the network communication type included in each preset network mode different.
  • switching the current network mode means switching the network communication type currently supported by the terminal device, after switching the current network mode to a target network mode different from the current network mode, the network communication type currently supported by the terminal device changes, and After the network communication type currently supported by the terminal device changes, the terminal device needs to re-register the network in the core network. Therefore, switching the current network mode can trigger the terminal device to re-register the network in the core network.
  • the target network mode is switched to the current network mode, which can trigger the terminal device to re-register the network twice in the core network, further ensuring the recovery of abnormal data transmission, and enabling the terminal device
  • the supported network communication types return to the state originally set by the user to improve the user experience.
  • the terminal device since the terminal device will be in an out-of-service state when re-registering the network, when the data transmission is abnormal, if the current network mode is directly switched to re-register the network, it will cause frequent abnormalities in the data transmission.
  • the terminal device frequently has no service status, which affects the user experience. Therefore, when the data transmission is abnormal, the current network mode is only switched when the protection timer is not in the running state to ensure that the terminal device switches the current network mode at least twice.
  • the preset time prevents frequent switching of the current network mode; at the same time, a protection timer is started to ensure that the next time the terminal device switches the current network mode and the current network mode is switched at least the second preset time to prevent frequent switching of the current network mode.
  • the current network mode is directly switched to realize the re-registration of the network, which simplifies the steps of recovering the data transmission abnormality, and makes the data transmission abnormal recovery
  • the time is shortened, and at the same time, the current network mode is switched when the protection timer is not in the running state, which can prevent the terminal device from frequently switching the current network mode, thereby avoiding the terminal device from frequently appearing out of service and improving the user experience.
  • FIG. 4 is a schematic structural diagram of a data transmission abnormality recovery apparatus provided by an embodiment of the present application.
  • the data transmission abnormality recovery apparatus is applied to the above-mentioned terminal equipment, and the functions of each module of the data transmission abnormality recovery apparatus are determined by The execution of the above terminal device is used to shorten the time for recovering abnormal data transmission, and avoid frequent out-of-service states when recovering abnormal data transmission, and improve user experience.
  • module used in the embodiments of the present application is a combination of software and/or hardware that can implement predetermined functions.
  • devices described in the following embodiments can be implemented by software, implementation by hardware or a combination of software and hardware may also be conceived.
  • the data transmission abnormality recovery device includes.
  • the activation module 110 is used to activate data transmission abnormality detection when the data connection is in an active state
  • the determining module 120 is used to determine whether the protection timer is in a running state when the data transmission is abnormal;
  • the processing module 130 is configured to start the protection timer and switch the current network mode when the protection timer is not in the running state.
  • the processing module 130 is specifically configured to: when switching the current network mode, select a network mode different from the current network mode in the preset network mode as the target network mode; switch the current network mode to the target network mode Then, switch the target network mode to the current network mode.
  • the activation module 110 is specifically configured to: activate an abnormality detection timer, which is set with a first preset time; when the abnormality detection timer expires, collect statistics for the first preset time If the number of sent and received packets is greater than zero and the number of received packets is equal to zero, it is determined that the data transmission is abnormal.
  • the protection timer is set with a second preset time, and the second preset time is greater than the first preset time.
  • the activation module 110 is also used to restart the detection of abnormal data transmission when the data transmission is not abnormal or the protection timer is in the running state.
  • the content of the device embodiment can be quoted from the method embodiment on the premise that the content does not conflict with each other, which will not be repeated here.
  • the current network mode is directly switched to realize the re-registration of the network, which simplifies the steps of recovering the data transmission abnormality, and makes the data transmission abnormal recovery
  • the time is shortened, and at the same time, the current network mode is switched when the protection timer is not in the running state, which can prevent the terminal device from frequently switching the current network mode, thereby avoiding the terminal device from frequently appearing out of service and improving the user experience.
  • FIG. 5 is a schematic diagram of the hardware structure of a terminal device according to an embodiment of the present application.
  • the terminal device 100 includes one or more processors 140 and a memory 150. Among them, one processor 140 is taken as an example in FIG. 5.
  • the processor 140 and the memory 150 may be connected through a bus or in other ways.
  • the connection through a bus is taken as an example.
  • the memory 150 can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as the recovery from abnormal data transmission in the above-mentioned embodiments of this application.
  • the program instructions corresponding to the method and the modules corresponding to a data transmission abnormal recovery device for example, the startup module 110, the determination module 120, and the processing module 130, etc.
  • the processor 140 executes various functional applications and data processing of a data transmission abnormal recovery method by running the non-volatile software programs, instructions, and modules stored in the memory 150, that is, implements one of the foregoing method embodiments The data transmission abnormal recovery method and the function of each module of the above-mentioned device embodiment.
  • the memory 150 may include a storage program area and a storage data area.
  • the storage program area can store an operating system and an application program required by at least one function; the storage data area can store data created according to the use of a data transmission abnormality recovery device. Wait.
  • the storage data area also stores preset data, including preset network modes and the like.
  • the memory 150 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage devices.
  • the storage 150 may optionally include storage remotely provided with respect to the processor 140, and these remote storages may be connected to the processor 140 via a network. Examples of the aforementioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
  • the program instructions and one or more modules are stored in the memory 150, and when executed by the one or more processors 140, each step of a data transmission abnormal recovery method in any of the foregoing method embodiments is executed Or, realize the functions of each module of a data transmission abnormal recovery device in any of the foregoing device embodiments.
  • the above-mentioned products can execute the methods provided in the above-mentioned embodiments of this application, and have functional modules corresponding to the execution methods.
  • functional modules corresponding to the execution methods For technical details that are not described in detail in this embodiment, please refer to the method provided in the foregoing embodiment of this application.
  • the embodiment of the present application also provides a non-volatile computer-readable storage medium, the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are executed by one or more processors, for example, FIG. 5
  • a processor 140 in any of the foregoing method embodiments can cause a computer to execute each step of a data transmission abnormality recovery method in any of the above-mentioned method embodiments, or implement various modules of a data transmission abnormality recovery apparatus in any of the above-mentioned device embodiments.
  • the embodiments of the present application also provide a computer program product.
  • the computer program product includes a computer program stored on a non-volatile computer-readable storage medium.
  • the computer program includes program instructions.
  • multiple processors, such as a processor 140 in FIG. 5, can cause a computer to execute each step of a data transmission abnormality recovery method in any of the foregoing method embodiments, or implement one of the foregoing any device embodiments. The functions of each module of this data transmission abnormal recovery device.
  • the device embodiments described above are merely illustrative.
  • the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical units, that is, they may be located in One place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to implement the solution of this embodiment.
  • each embodiment can be implemented by means of software plus a general hardware platform, and of course, it can also be implemented by hardware.
  • a person of ordinary skill in the art can understand that all or part of the processes in the methods of the foregoing embodiments can be implemented by computer programs instructing relevant hardware.
  • the programs can be stored in a computer readable storage medium, and the program is executed when the program is executed. At the time, it may include the flow of the implementation method of each method as described above.
  • the storage medium may be a magnetic disk, an optical disc, a read-only memory (Read-Only Memory, ROM), or a random access memory (Random Access Memory, RAM), etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本申请实施例涉及通信技术领域,特别是涉及一种数据传输异常恢复方法、装置及终端设备。其中,数据传输异常恢复方法应用于终端设备,包括:在数据连接处于激活状态时,启动数据传输异常侦测;若数据传输异常,则确定保护定时器是否处于运行状态;若保护定时器未处于运行状态,则启动保护定时器,并切换当前网络模式。

Description

一种数据传输异常恢复方法、装置及终端设备
交叉引用
本发明要求在2020年06月24日提交中国专利局、申请号为202010591553.4、发明名称为“一种数据传输异常恢复方法、装置及终端设备”的中国专利申请的优先权,该申请的全部内容通过引用结合在本发明中。
技术领域
本申请实施例涉及通信技术领域,特别是涉及一种数据传输异常恢复方法、装置及终端设备。
背景技术
终端设备在核心网的注册上下文异常时,会使得终端设备发送的请求无法收到网络侧的响应,导致终端设备数据传输出现异常,此时,终端设备需要重新注册网络才能恢复数据传输异常。但发明人在实现本申请的过程中发现:目前,终端设备在侦测到数据传输异常时,先重新获取终端设备的网络注册状态并重启数据开关,若仍侦测到数据传输异常,才重新注册网络以恢复数据传输异常,使得恢复数据传输异常耗费的时间较长,无法满足用户迅速上网的需求,用户体验较差。
发明内容
本申请实施例提供一种数据传输异常恢复方法、装置及终端设备,能够缩短数据传输异常恢复的时间,提高用户体验。
为解决上述技术问题,本申请实施例采用的一个技术方案是:提供一种数据传输异常恢复方法,应用于终端设备,包括:
在数据连接处于激活状态时,启动数据传输异常侦测;
若数据传输异常,则确定保护定时器是否处于运行状态;
若所述保护定时器未处于运行状态,则启动所述保护定时器,并切换当前网络模式。
为解决上述技术问题,本申请实施例采用的另一个技术方案是:提供一种数据传输异常恢复装置,应用于终端设备,包括:
启动模块,用于在数据连接处于激活状态时,启动数据传输异常侦测;
确定模块,用于在数据传输异常时,确定保护定时器是否处于运行状态;
处理模块,用于在所述保护定时器未处于运行状态时,启动所述保护定时器,并切换当前网络模式。
为解决上述技术问题,本申请实施例采用的另一个技术方案是:提供一种终端设备,包括:
至少一个处理器;以及
与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够用于执行以上所述的数据传输异常恢复方法。
为解决上述技术问题,本申请实施例采用的另一个技术方案是:提供一种非易失性计算机可读存储介质,所述非易失性计算机可读存储介质存储有计算机可执行指令,所述计算机可执行指令用于使终端设备执行以上所述的数据传输异常恢复方法。
附图说明
为了更清楚地说明本申请具体实施方式或现有技术中的技术方案,下面将对具体实施方式或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施方式,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
一个或多个实施例通过与之对应的附图中的图片进行示例性说明,这些示例性说明并不构成对实施例的限定,附图中具有相同参考数字标号的元件 表示为类似的元件,除非有特别申明,附图中的图不构成比例限制。
图1是本申请实施例提供的一种实施环境的结构示意图;
图2是本申请实施例提供的一种数据传输异常恢复方法的流程示意图;
图3是本申请另一实施例提供的一种数据传输异常恢复方法的流程示意图;
图4是本申请实施例提供的一种数据传输异常恢复装置的结构示意图;
图5是本申请实施例提供的一种终端设备的硬件结构示意图。
具体实施方式
为使本申请实施例的技术方案更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整的描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
需要说明的是,当一个元件被表述“连接”另一个元件,它可以是直接连接到另一个元件、或者其间可以存在一个或多个居中的元件。
此外,下面所描述的本申请各个实施例中所涉及到的技术特征只要彼此之间未构成冲突就可以相互组合。
本申请提供了一种数据传输异常恢复方法及装置,该方法及装置应用于终端设备,从而使得该终端设备能够缩短恢复数据传输异常的时间,并且能够避免在恢复数据传输异常时频繁出现无服务状态,提高了用户体验。
下面,将通过具体实施例对本申请进行阐述。
请参阅图1,是本申请实施例提供的一种实施环境的结构示意图,该实施环境包括:终端设备100、接入网200和核心网300。
其中,终端设备100为手机、平板电脑、智能手表等能够进行网络通信的设备。当终端设备100需要获取网络侧的服务时,终端设备100需要与接入网200建立RRC连接,并在核心网300中注册网络(attach),以在核心网300中登记身份信息和位置信息并激活默认承载,此时,若终端设备100的数据连接处于激活状态,则终端设备100能够与网络建立起对应的用户面数据承载通道,实现数据传输。
在终端设备100数据传输过程中,若终端设备100在核心网300的注册上下文正常,则终端设备100发送的请求能够收到网络侧的响应,终端设备100数据传输正常;若终端设备100在核心网300的注册上下文异常,则终端设备100发送的请求无法收到网络侧的响应,终端设备100数据传输异常。
基于此,当终端设备100数据传输异常时,终端设备100需要重新注册网络来更改在核心网300的注册上下文,以使其在核心网300的注册上下文恢复正常,进而使得数据传输恢复正常。
目前,终端设备100在侦测到数据传输异常时,先重新获取网络注册状态并重启数据开关,若仍侦测到数据传输异常,才重新注册网络,导致恢复数据传输异常耗费的时间较长。
因此,在本申请实施例中,终端设备100通过执行数据传输异常恢复方法来实现对数据传输异常的恢复。在该数据传输异常恢复方法中,终端设备100在数据连接处于激活状态时,启动数据传输异常侦测,若侦测到数据传输异常,则确定保护定时器是否处于运行状态,若保护定时器未处于运行状态,则启动保护定时器,并切换当前网络模式。其中,在侦测到数据传输异常且保护定时器未处于运行状态时,直接切换当前网络模式以实现重新注册网络,简化了恢复数据传输异常的步骤,使得数据传输异常恢复的时间缩短,同时,在保护定时器未处于运行状态时才切换当前网络模式,能够防止终端设备100频繁切换当前网络模式,进而避免终端设备100在恢复数据传输异常时频繁出现无服务状态,提高了用户体验。
具体地,请参阅图2,是本申请实施例提供的一种数据传输异常恢复方法的流程示意图,该数据传输异常恢复方法包括以下步骤。
S100:在数据连接处于激活状态时,启动数据传输异常侦测。
在本申请实施例中,当终端设备的数据开关开启,且终端设备与网络建立起对应的用户面数据承载通道时,终端设备的数据连接处于激活状态。在终端设备的数据连接处于激活状态时,终端设备能够实现数据传输,此时,对终端设备的数据传输状态进行侦测,能够准确确定终端设备的数据传输状态,因此,在数据连接处于激活状态时,启动数据传输异常侦测。
其中,启动数据传输异常侦测时,首先启动异常侦测定时器,该异常侦测定时器设置有第一预设时间;然后在异常侦测定时器计时结束时,统计第一预设时间内的发包数量和收包数量;最后根据第一预设时间内的发包数量和收包数量确定数据传输是否异常,若第一预设时间内的发包数量大于零且收包数量等于零,则确定数据传输异常,否则,确定数据传输未异常。
可以理解的是,在终端设备数据传输过程中,终端设备发送IP封包后,若能够得到网络侧的响应,则终端设备能够接收到网络侧返回的IP封包;若无法得到网络侧的响应,则终端设备无法接收到网络侧返回的IP封包。因此,若第一预设时间内的发包数量大于零且收包数量等于零,则确定终端设备在第一预设时间内发送的IP封包均无法得到网络侧的响应,确定数据传输异常。
其中,终端设备在第一预设时间内的发包数量和收包数量不为负整数。
S200:若数据传输异常,确定保护定时器是否处于运行状态。
S300:若保护定时器未处于运行状态,则启动保护定时器,并切换当前网络模式。
在本申请实施例中,保护定时器设置有第二预设时间,并且该第二预设时间大于第一预设时间。比如,第一预设时间设置为30s时,第二预设时间设置为300s。
该保护定时器用于使终端设备两次切换当前网络模式间隔至少第二预设时间,以防止终端设备频繁切换当前网络模式。优选地,该保护定时器为乒乓保护定时器。
在保护定时器未启动或者保护定时器计时结束时,确定保护定时器处于未运行状态;在保护定时器计时未结束时,确定保护定时器处于运行状态。
在本申请实施例中,网络模式包含网络通信类型,用于表征终端设备所支持的网络通信类型。比如,当网络模式包含的网络通信类型为2G、3G、4G和5G时,表征终端设备支持的网络通信类型为2G、3G、4G和5G;当网络模式包含的网络通信类型为2G、3G和4G时,表征终端设备支持的网络通信类型为2G、3G和4G。
在终端设备中存储有数量若干的预设网络模式,每个预设网络模式包含2G、3G、4G和5G中的至少一种网络通信类型,并且每个预设网络模式所包含的网络通信类型不同。
基于此,当切换当前网络模式时,在预设网络模式中选择与当前网络模式不同的任意一个网络模式作为目标网络模式,然后将当前网络模式切换为目标网络模式后,再将目标网络模式切换至当前网络模式。
由于切换当前网络模式亦即切换终端设备当前所支持的网络通信类型,因此,在将当前网络模式切换为与当前网络模式不同的目标网络模式后,终端设备当前所支持的网络通信类型改变,而终端设备当前所支持的网络通信类型发生改变后,终端设备需要在核心网中重新注册网络,因此,切换当前网络模式能够触发终端设备在核心网中重新注册网络。
在将当前网络模式切换为目标网络模式后,再将目标网络模式切换至当前网络模式,能够触发终端设备在核心网中进行两次重新注册网络,进一步保证恢复数据传输异常,并且能够使得终端设备所支持的网络通信类型回归用户最初设置的状态,提高用户体验。
可以理解的是,由于终端设备在重新注册网络时会处于无服务状态,因 此,在数据传输异常时,若直接切换当前网络模式以实现重新注册网络,则在数据传输频繁出现异常时,会导致终端设备频繁出现无服务状态,影响用户体验,因此,在数据传输异常时,确定保护定时器未处于运行状态时,才切换当前网络模式,以保证终端设备两次切换当前网络模式间隔至少第二预设时间,防止频繁切换当前网络模式;同时,启动保护定时器以保证终端设备下一次切换当前网络模式与此次切换当前网络模式间隔至少第二预设时间,防止频繁切换当前网络模式。
请参阅图3,在一些实施例中,为了实时侦测数据传输状态,在数据传输未异常时,重新启动数据传输异常侦测;或者,在保护定时器处于运行状态时,重新启动数据传输异常侦测;或者,在启动保护定时器并切换当前网络模式之后,重新启动数据传输异常侦测。
在本申请实施例中,在侦测到数据传输异常且保护定时器未处于运行状态时,直接切换当前网络模式以实现重新注册网络,简化了恢复数据传输异常的步骤,使得数据传输异常恢复的时间缩短,同时,在保护定时器未处于运行状态时才切换当前网络模式,能够防止终端设备频繁切换当前网络模式,进而避免终端设备频繁出现无服务状态,提高了用户体验。
进一步地,请参阅图4,是本申请实施例提供的一种数据传输异常恢复装置的结构示意图,该数据传输异常恢复装置应用于上述终端设备,并且该数据传输异常恢复装置各个模块的功能由上述终端设备执行,用于缩短恢复数据传输异常的时间,并避免在恢复数据传输异常时频繁出现无服务状态,提高用户体验。
值得注意的是,本申请实施例所使用的术语“模块”为可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置可以以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能被构想的。
具体地,该数据传输异常恢复装置包括。
启动模块110,用于在数据连接处于激活状态时,启动数据传输异常侦测;
确定模块120,用于在数据传输异常时,确定保护定时器是否处于运行状态;
处理模块130,用于在保护定时器未处于运行状态时,启动保护定时器,并切换当前网络模式。
在一些实施例中,处理模块130具体用于:在切换当前网络模式时,在预设网络模式中选择与当前网络模式不同的网络模式模式作为目标网络模式;将当前网络模式切换为目标网络模式后,再将目标网络模式切换至当前网络模式。
在一些实施例中,启动模块110具体用于:启动异常侦测定时器,异常侦测定时器设置有第一预设时间;在异常侦测定时器计时结束时,统计第一预设时间内的发包数量和收包数量;若发包数量大于零且收包数量等于零,则确定数据传输异常。
在一些实施例中,保护定时器设置有第二预设时间,第二预设时间大于第一预设时间。
在一些实施例中,启动模块110还用于:在数据传输未异常或保护定时器处于运行状态时,重新启动数据传输异常侦测。
由于装置实施例和方法实施例是基于同一构思,在内容不互相冲突的前提下,装置实施例的内容可以引用方法实施例的,在此不再一一赘述。
在本申请实施例中,在侦测到数据传输异常且保护定时器未处于运行状态时,直接切换当前网络模式以实现重新注册网络,简化了恢复数据传输异常的步骤,使得数据传输异常恢复的时间缩短,同时,在保护定时器未处于运行状态时才切换当前网络模式,能够防止终端设备频繁切换当前网络模式,进而避免终端设备频繁出现无服务状态,提高了用户体验。
进一步地,请参阅图5,是本申请实施例提供的一种终端设备的硬件结构示意图,该终端设备100包括:一个或多个处理器140以及存储器150。其中,图5中以一个处理器140为例。
处理器140和存储器150可以通过总线或者其他方式连接,图5中以通过总线连接为例。
存储器150作为一种非易失性计算机可读存储介质,可用于存储非易失性软件程序、非易失性计算机可执行程序以及模块,如本申请上述实施例中的一种数据传输异常恢复方法对应的程序指令以及一种数据传输异常恢复装置对应的模块(例如,启动模块110、确定模块120和处理模块130等)。处理器140通过运行存储在存储器150中的非易失性软件程序、指令以及模块,从而执行一种数据传输异常恢复方法的各种功能应用以及数据处理,即实现上述方法实施例中的一种数据传输异常恢复方法以及上述装置实施例的各个模块的功能。
存储器150可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据一种数据传输异常恢复装置的使用所创建的数据等。
所述存储数据区还存储有预设的数据,包括预设网络模式等。
此外,存储器150可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实施例中,存储器150可选包括相对于处理器140远程设置的存储器,这些远程存储器可以通过网络连接至处理器140。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。
所述程序指令以及一个或多个模块存储在所述存储器150中,当被所述一个或者多个处理器140执行时,执行上述任意方法实施例中的一种数据传输异常恢复方法的各个步骤,或者,实现上述任意装置实施例中的一种数据传输异常恢复装置的各个模块的功能。
上述产品可执行本申请上述实施例所提供的方法,具备执行方法相应的功能模块。未在本实施例中详尽描述的技术细节,可参见本申请上述实施例所提供的方法。
本申请实施例还提供了一种非易失性计算机可读存储介质,所述计算机可读存储介质存储有计算机可执行指令,该计算机可执行指令被一个或多个处理器执行,例如图5中的一个处理器140,可使得计算机执行上述任意方法实施例中的一种数据传输异常恢复方法的各个步骤,或者,实现上述任意装置实施例中的一种数据传输异常恢复装置的各个模块的功能。
本申请实施例还提供了一种计算机程序产品,所述计算机程序产品包括存储在非易失性计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被一个或多个处理器执行,例如图5中的一个处理器140,可使得计算机执行上述任意方法实施例中的一种数据传输异常恢复方法的各个步骤,或者,实现上述任意装置实施例中的一种数据传输异常恢复装置的各个模块的功能。
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案。
通过以上的实施例的描述,本领域普通技术人员可以清楚地了解到各实施例可借助软件加通用硬件平台的方式来实现,当然也可以通过硬件。本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程是可以通过计算机程序指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施方法的流程。其中,所述存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(RandomAccessMemory,RAM)等。
以上所述仅为本申请的实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;在本申请的思路下,以上实施例或者不同实施例中的技术特征之间也可以进行组合,步骤可以以任意顺序实现,并存在如上所述的本申请的不同方面的许多其它变化,为了简明,它们没有在细节中提供;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。

Claims (10)

  1. 一种数据传输异常恢复方法,应用于终端设备,其中,包括:
    在数据连接处于激活状态时,启动数据传输异常侦测;
    若数据传输异常,则确定保护定时器是否处于运行状态;
    若所述保护定时器未处于运行状态,则启动所述保护定时器,并切换当前网络模式。
  2. 根据权利要求1所述的方法,其中,所述切换当前网络模式,具体包括:
    在预设网络模式中选择与所述当前网络模式不同的网络模式作为目标网络模式;
    将所述当前网络模式切换为所述目标网络模式后,再将所述目标网络模式切换至所述当前网络模式。
  3. 根据权利要求1或2所述的方法,其中,所述启动数据传输异常侦测,具体包括:
    启动异常侦测定时器,所述异常侦测定时器设置有第一预设时间;
    在所述异常侦测定时器计时结束时,统计所述第一预设时间内的发包数量和收包数量;
    若所述发包数量大于零且所述收包数量等于零,则确定所述数据传输异常。
  4. 根据权利要求3所述的方法,其中,所述保护定时器设置有第二预设时间,所述第二预设时间大于所述第一预设时间。
  5. 根据权利要求4所述的方法,其中,所述方法还包括:
    在所述数据传输未异常或所述保护定时器处于运行状态时,重新启动所述数据传输异常侦测。
  6. 一种数据传输异常恢复装置,应用于终端设备,其中,包括:
    启动模块,用于在数据连接处于激活状态时,启动数据传输异常侦测;
    确定模块,用于在数据传输异常时,确定保护定时器是否处于运行状态;
    处理模块,用于在所述保护定时器未处于运行状态时,启动所述保护定时器,并切换当前网络模式。
  7. 根据权利要求6所述的装置,其中,所述处理模块具体用于:
    在切换当前网络模式时,在预设网络模式中选择与所述当前网络模式不同的网络模式作为目标网络模式;
    将所述当前网络模式切换为所述目标网络模式后,再将所述目标网络模式切换至所述当前网络模式。
  8. 根据权利要求6或7所述的装置,其中,所述启动模块具体用于:
    启动异常侦测定时器,所述异常侦测定时器设置有第一预设时间;
    在所述异常侦测定时器计时结束时,统计所述第一预设时间内的发包数量和收包数量;
    若所述发包数量大于零且所述收包数量等于零,则确定所述数据传输异常。
  9. 一种终端设备,其中,包括:
    至少一个处理器;以及
    与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够用于执行如权利要求1至5中任一项所述的数据传输异常恢复方法。
  10. 一种非易失性计算机可读存储介质,其中,所述非易失性计算机可读存储介质存储有计算机可执行指令,所述计算机可执行指令用于使终端设备执行如权利要求1至5中任一项所述的数据传输异常恢复方法。
PCT/CN2021/102120 2020-06-24 2021-06-24 一种数据传输异常恢复方法、装置及终端设备 WO2021259362A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010591553.4A CN113840314B (zh) 2020-06-24 2020-06-24 一种数据传输异常恢复方法、装置及终端设备
CN202010591553.4 2020-06-24

Publications (1)

Publication Number Publication Date
WO2021259362A1 true WO2021259362A1 (zh) 2021-12-30

Family

ID=78964928

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/102120 WO2021259362A1 (zh) 2020-06-24 2021-06-24 一种数据传输异常恢复方法、装置及终端设备

Country Status (2)

Country Link
CN (1) CN113840314B (zh)
WO (1) WO2021259362A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114500241A (zh) * 2022-04-15 2022-05-13 荣耀终端有限公司 一种异常复位处理的方法及终端设备
CN115277485A (zh) * 2022-07-25 2022-11-01 绿盟科技集团股份有限公司 一种网络数据的控制方法、装置及电子设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102984827A (zh) * 2011-09-02 2013-03-20 联发科技股份有限公司 通讯模块定时器时长设定方法以及通讯模块选择方法
CN106973417A (zh) * 2017-03-31 2017-07-21 深圳市万普拉斯科技有限公司 Evdo网络切换至lte网络的方法、装置和移动终端
CN108156635A (zh) * 2017-12-14 2018-06-12 Tcl移动通信科技(宁波)有限公司 移动终端及wifi接入点检测处理方法、及存储介质
US10499294B1 (en) * 2018-04-17 2019-12-03 Amdocs Development Limited System, method, and computer program for mitigation of user-specific ping-pong handover

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008257438A (ja) * 2007-04-04 2008-10-23 Sharp Corp デバッグ装置の制御に用いる例外処理装置、例外処理方法、例外処理プログラム、並びに、前記例外処理装置を組み込んだテレビ及び携帯電話
CN103327555A (zh) * 2013-06-05 2013-09-25 天翼电信终端有限公司 双模终端设备网络模式切换方法及双模终端设备
KR102050945B1 (ko) * 2015-04-14 2019-12-02 후아웨이 테크놀러지 컴퍼니 리미티드 단말기 제어 방법 및 장치, 그리고 단말기
CN105357052B (zh) * 2015-11-24 2018-05-29 广东欧珀移动通信有限公司 网络通信功能异常的处理方法、应用处理器及移动终端
CN106413011B (zh) * 2016-09-08 2019-12-03 北京小米移动软件有限公司 网络切换方法及装置
CN106507405A (zh) * 2016-12-13 2017-03-15 广东欧珀移动通信有限公司 网络通信功能异常的处理方法及装置
CN107948997B (zh) * 2017-12-01 2021-11-26 Oppo广东移动通信有限公司 网络接入结果的检测方法及装置、计算机存储介质
CN107979857B (zh) * 2017-12-05 2020-11-24 奇酷互联网络科技(深圳)有限公司 网络资源异常的恢复方法、装置和移动终端
CN109495943B (zh) * 2018-12-19 2021-11-30 深圳美图创新科技有限公司 小区重选的处理方法及装置
CN110995939B (zh) * 2019-12-20 2021-09-28 惠州Tcl移动通信有限公司 通话网络的切换方法、装置及存储介质

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102984827A (zh) * 2011-09-02 2013-03-20 联发科技股份有限公司 通讯模块定时器时长设定方法以及通讯模块选择方法
CN106973417A (zh) * 2017-03-31 2017-07-21 深圳市万普拉斯科技有限公司 Evdo网络切换至lte网络的方法、装置和移动终端
CN108156635A (zh) * 2017-12-14 2018-06-12 Tcl移动通信科技(宁波)有限公司 移动终端及wifi接入点检测处理方法、及存储介质
US10499294B1 (en) * 2018-04-17 2019-12-03 Amdocs Development Limited System, method, and computer program for mitigation of user-specific ping-pong handover

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114500241A (zh) * 2022-04-15 2022-05-13 荣耀终端有限公司 一种异常复位处理的方法及终端设备
CN115277485A (zh) * 2022-07-25 2022-11-01 绿盟科技集团股份有限公司 一种网络数据的控制方法、装置及电子设备
CN115277485B (zh) * 2022-07-25 2023-09-26 绿盟科技集团股份有限公司 一种网络数据的控制方法、装置及电子设备

Also Published As

Publication number Publication date
CN113840314A (zh) 2021-12-24
CN113840314B (zh) 2024-01-23

Similar Documents

Publication Publication Date Title
WO2021259362A1 (zh) 一种数据传输异常恢复方法、装置及终端设备
CN106686565B (zh) 在无线网络中在用户设备处理ims呼叫和csfb呼叫
US9143990B2 (en) Method and device for handling failure of mobility management device in ISR activated scenario
KR101990112B1 (ko) 다중 액세스 접속에 의한 사용자 세션들의 끊김 없는 이동성을 위한 시스템 및 방법
US20170195929A1 (en) Method and device for realizing automatic call transfer in a dual sim dual standby mobile phone
CN103716852A (zh) 终端和快速恢复数据业务的方法
CN113242583B (zh) 一种呼叫方法、终端和网络侧设备
US11012852B2 (en) Cellular service account transfer error recovery mechanisms
WO2016169103A1 (zh) 一种网络切换方法、装置和移动终端
CN114143911B (zh) 基于Android平台无线投屏断网自动重连的方法
CN107948997B (zh) 网络接入结果的检测方法及装置、计算机存储介质
JP6421516B2 (ja) サーバ装置、冗長構成サーバシステム、情報引継プログラム及び情報引継方法
WO2013104776A2 (en) Radio device and a method for operating a radio device
WO2022194212A1 (zh) 呼叫方法、装置及电子设备
CN111669818B (zh) Wi-Fi控制方法、装置及电子设备
CN112423287A (zh) 注册网络的控制方法、装置、计算机设备和存储介质
CN113595765A (zh) 一种VoIP终端注册业务的故障转移方法及装置
WO2015067094A1 (zh) 基于h.248终端的通信链路异常保护方法
WO2017157333A1 (zh) 寻呼方法及通信系统
CN112153723B (zh) 网络接入方法及装置
CN116800722A (zh) 恢复通话服务的方法和装置
CN114006935B (zh) 专网终端入网方法、装置及设备
CN112566205B (zh) 通信业务的处理方法及装置
EP3888386B1 (en) Method and ue for handling ul nas transport message failure in wireless communication network
CN108134989B (zh) Lte网络驻留结果的检测方法及装置、计算机存储介质

Legal Events

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

Ref document number: 21829881

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 31/03/2023)

122 Ep: pct application non-entry in european phase

Ref document number: 21829881

Country of ref document: EP

Kind code of ref document: A1