Communication method and device, electronic equipment and storage medium
By intelligently registering requests between cellular and WiFi networks on terminal devices and detecting voice access switching, and statistically analyzing network switching information within a preset time window, the problem of excessive IMS re-registration requests caused by frequent switching between cellular and WiFi networks is solved, thus improving network stability and user experience.
Patent Information
- Application Number
- CN202511300455.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-11
- Publication Date
- 2025-12-30
AI Technical Summary
Frequent switching between cellular and WiFi networks leads to an excessive number of IMS re-registration requests, causing signaling disruptions to network elements and impacting network stability and user experience.
After detecting a voice access switch, the terminal device collects network switching information within a preset time window, determines whether the frequent switching conditions are met, and detects changes in network connection status. It only initiates an IMS re-registration request when the connection status changes, thus avoiding unnecessary registration.
It reduces redundant IMS re-registration requests, lowers the load on core network elements, improves the continuity of voice calls and network stability, adaptability, and has good deployment flexibility and scalability, thereby improving network stability and user experience.
Smart Images

Figure CN121240198A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of communication technology, and in particular to a communication method, communication device, electronic device, computer-readable storage medium, and computer program product. Background Technology
[0002] To effectively address voice call quality issues in areas with weak cellular network coverage, Voice over WiFi (VoWiFi) has become an important supplementary solution for operators. Unlike the network-side controlled handover between 4G and 5G, the handover between cellular networks and WiFi is primarily decided autonomously by the terminal device.
[0003] In related technologies, each time a terminal device switches between cellular and Wi-Fi networks, it needs to re-initiate the IP Multimedia Subsystem (IMS) registration process. However, under a cellular priority strategy, if 4G and 5G signal coverage fluctuates significantly, user movement may trigger a ping-pong handover behavior of "5G→Wi-Fi→4G," generating a large number of IMS re-registration requests and causing signaling impacts on core network elements such as Unified Data Management (UDM). When the network user base expands or service load increases, such signaling storms may trigger network element capacity warnings, affecting network stability. Summary of the Invention
[0004] The purpose of this disclosure is to provide a communication method, communication device, electronic device, computer-readable storage medium, and computer program product that at least partially solves the problem of redundant IMS re-registration requests and network element signaling impact caused by re-initiating IMS registration every time voice access is switched.
[0005] Other features and advantages of this disclosure will become apparent from the following detailed description, or may be learned in part from practice of this disclosure.
[0006] According to a first aspect of this disclosure, a communication method is provided, the method being executed by a terminal device, comprising: after detecting a voice access handover event between a cellular network and a Wi-Fi network, statistically analyzing network handover information within a preset time window; if the network handover information meets a preset frequent handover condition, detecting whether the network connection status information of the terminal device has changed; in response to the network connection status information not changing, determining not to initiate an IP Multimedia Subsystem (IMS) re-registration request; and in response to the network status information changing, determining to initiate an IMS re-registration request.
[0007] In some exemplary embodiments of this disclosure, the network switching information includes: a first number of switching times and a first switching frequency of the terminal device between a 5G network and a WiFi network, and a second number of switching times and a second switching frequency of the terminal device between a 4G network and a WiFi network.
[0008] In some exemplary embodiments of this disclosure, the preset frequent switching conditions include one or more of the following options: the first number of switching is greater than a preset first switching number threshold; the second number of switching is greater than a preset second switching number threshold; the first switching frequency is greater than a preset first switching frequency threshold; and the second switching frequency is greater than a preset second switching frequency threshold.
[0009] In some exemplary embodiments of this disclosure, the method further includes: weighting the first number of switching and the second number of switching to obtain a weighted number of switching; weighting the first switching frequency and the second switching frequency to obtain a weighted switching frequency; wherein the preset frequent switching condition includes: the weighted number of switching is greater than a preset weighted number of switching threshold; and / or, the weighted switching frequency is greater than a preset weighted switching frequency threshold.
[0010] In some exemplary embodiments of this disclosure, the network connection status information includes: IP address, Session Initiation Protocol (SIP) signaling bearer, and Internet Protocol Security (IPsec) tunnel for IMS.
[0011] In some exemplary embodiments of this disclosure, detecting whether the network connection status information between the terminal device and the core network has changed includes: determining whether the IP address of the terminal device remains unchanged; determining whether the IP connection access network IP-CAN bearer used for transmitting SIP signaling continues to exist and has not been interrupted; and determining whether the IPsec tunnel connection of IMS is maintained.
[0012] In some exemplary embodiments of this disclosure, the method further includes: measuring the signal quality of a cellular network to obtain a first measurement result; measuring the signal quality of a WiFi network to obtain a second measurement result; and determining, based on the first measurement result and / or the second measurement result, a preset handover strategy to trigger the voice access handover event.
[0013] In some exemplary embodiments of this disclosure, determining the triggering of the voice access handover event based on the first measurement result and / or the second measurement result and a preset handover strategy includes: if the preset handover strategy configures the cellular network to have a higher access priority than the WiFi network in voice services, when the terminal device makes a voice call through the cellular network, if the first measurement result is less than a preset low threshold for cellular network signal and the second measurement result is greater than a preset high threshold for WiFi network signal, then a voice access handover event from the cellular network to the WiFi network is triggered; when the terminal device makes a voice call through the WiFi network, if any of the following conditions are met, then a voice access handover event from the WiFi network to the cellular network is triggered: the first measurement result is greater than a preset high threshold for cellular network signal; the first measurement result is greater than a preset cellular network signal handover threshold, and the second measurement result is less than a preset low threshold for WiFi network signal.
[0014] In some exemplary embodiments of this disclosure, after determining that no IP Multimedia Subsystem (IMS) re-registration request will be initiated, the method further includes: monitoring the remaining validity period of the current IMS registration; if the remaining validity period is less than a preset time threshold, then initiating an IMS refresh registration request.
[0015] According to a second aspect of this disclosure, a communication device is provided, the device comprising: a handover information statistics module configured to, after detecting a voice access handover event between a cellular network and a WiFi network, collect network handover information within a preset time window; a status detection module configured to, if the network handover information meets a preset frequent handover condition, detect whether the network connection status information of a terminal device has changed; and a registration request initiation module configured to, in response to the network connection status information not changing, determine not to initiate an IMS re-registration request; and in response to the network status information changing, determine to initiate an IMS re-registration request.
[0016] According to a third aspect of this disclosure, an electronic device is provided, including a processor and a memory, the memory being used to store executable instructions of the processor; wherein the processor is configured to perform the aforementioned communication method by executing the executable instructions.
[0017] According to a fourth aspect of this disclosure, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the above-described communication method.
[0018] According to a fifth aspect of this disclosure, a computer program product is provided, the computer program product storing instructions that, when executed by a computer, cause the computer to implement the above-described communication method.
[0019] The communication method provided in this disclosure, after detecting a voice access handover event between cellular and WiFi, first statistically analyzes network handover information within a preset time window to determine if the frequent handover condition is met. If it is met, it further detects whether the network connection status information has changed. When the network connection status information has not changed, it determines not to initiate an IMS re-registration request, avoiding redundant registration caused by the lack of network connection status change in the "ping-pong handover" scenario. IMS re-registration is only initiated when the network connection status information changes, ensuring session security. Therefore, this method can introduce an intelligent registration decision mechanism based on network handover information and network connection status information on the terminal device side, solving the problem of redundant IMS re-registration requests and network element signaling impact caused by re-initiating IMS registration for each voice access handover in related technologies. It reduces unnecessary IMS signaling overhead, lowers the load pressure on core network elements such as UDM, and improves voice call continuity and network stability. Furthermore, it does not rely on network-side policy adjustments, possessing good deployment flexibility and scalability.
[0020] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0021] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure. It is obvious that the drawings described below are merely some embodiments of this disclosure, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort.
[0022] Figure 1 An architecture diagram of a communication system according to one embodiment of the present disclosure is shown;
[0023] Figure 2 A flowchart of a communication method according to an embodiment of the present disclosure is shown;
[0024] Figure 3 A flowchart illustrating the triggering of a voice access switching event according to an embodiment of this disclosure is shown;
[0025] Figure 4 A flowchart of a communication method according to yet another embodiment of the present disclosure is shown;
[0026] Figure 5 A schematic diagram of the structure of a communication device according to an embodiment of the present disclosure is shown;
[0027] Figure 6 A structural block diagram of an electronic device according to an embodiment of the present disclosure is shown. Detailed Implementation
[0028] Exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, these exemplary embodiments can be implemented in many forms and should not be construed as limited to the examples set forth herein; rather, they are provided so that this disclosure will be more comprehensive and complete, and will fully convey the concept of the exemplary embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
[0029] Furthermore, the accompanying drawings are merely illustrative of this disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and therefore repeated descriptions of them will be omitted. Some block diagrams shown in the drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities may be implemented in software, in one or more hardware modules or integrated circuits, or in different network and / or processor devices and / or microcontroller devices.
[0030] With the continuous development of mobile communication technology, users' requirements for voice call quality are increasing. In areas with weak signal, such as the edge of cellular network coverage or indoors, traditional cellular voice services, such as Voice over Long Term Evolution (VoLTE) and Voice over New Radio (VoNR), may experience call interruptions, voice distortion, or connection failures due to degraded signal quality. To effectively address the degradation of voice service quality in such scenarios, VoWiFi has become an important supplementary solution for operators and terminal manufacturers. Unlike the network-side controlled handover between 4G and 5G networks, the handover between cellular and WiFi networks is primarily decided autonomously by the terminal device. The terminal device continuously monitors the signal strength of both the cellular and WiFi networks to determine whether to trigger a voice access handover, thus migrating the voice bearer between VoLTE / VoNR and VoWiFi.
[0031] In related technologies, each time a terminal device switches between a cellular network and a WiFi network, it needs to re-initiate the IMS registration process. However, under a cellular priority strategy, if 4G or 5G signal coverage is unstable, the following typical scenarios may occur as users move: when the 5G signal deteriorates while the WiFi signal strengthens, a "5G→WiFi" handover is triggered; if the 4G signal subsequently recovers, a "WiFi→4G" handover may be triggered, forming a "5G→WiFi→4G" ping-pong handover behavior, generating a large number of IMS re-registration requests, causing signaling impacts on core network elements such as UDM. When the network user base expands or the service load increases, such signaling storms may trigger network element capacity warnings, affecting network stability.
[0032] While handover frequency can be reduced by adjusting handover strategies or modifying signal strength thresholds, terminal devices typically only support static configurations for handover parameters, and operators generally issue only one global policy, making it difficult to adapt to diverse and complex coverage scenarios. Furthermore, to ensure user experience, any changes to handover parameters must undergo extensive field testing and verification. As the user base grows and services evolve, terminal devices need to frequently adapt to new network configurations; otherwise, operational risks such as registration failures and voice interruptions may arise.
[0033] To address the aforementioned issues, this disclosure provides a communication method, communication device, electronic device, computer-readable storage medium, and computer program product. By dynamically deciding whether to initiate IMS re-registration after detecting a voice access switch, and combining network switching information and network connection status changes within a preset time window, redundant signaling is reduced, thereby mitigating signaling impact on core network elements.
[0034] Figure 1 An architecture diagram of a communication system according to one embodiment of this disclosure is shown. This system allows terminal devices to access the IMS core network via a cellular network or a WiFi network, thereby enabling high-quality voice call services. Figure 1 As shown, the system includes terminal equipment, 4G base stations, 5G base stations, WiFi hotspots, evolved packet data gateways (ePDG), 4G / 5G core networks, and IMS core networks.
[0035] In this context, a terminal device can be understood as a user-end device capable of wireless communication, such as making voice calls via cellular or Wi-Fi networks. In some examples, a terminal device may also be referred to as a user equipment, communication equipment, mobile station, or access terminal.
[0036] Terminal devices may include, but are not limited to, mobile phones, cellular phones, smartphones, tablet computers, wearable terminal devices, personal digital assistants, portable computers, desktop computers, such as gaming terminal devices, music storage and playback facilities, in-vehicle wireless terminal devices, wireless endpoints, mobile stations, laptop embedded devices, laptop-mounted devices, Internet of Things devices, watches or other wearable devices, head-mounted displays, vehicles, drones, medical devices, industrial equipment, consumer electronic devices, etc.
[0037] 4G and 5G base stations are facilities within cellular networks that provide wireless communication services. 4G base stations support 4G networks, and 5G base stations support 5G networks. Cellular networks can include both 4G and 5G networks, providing high-quality data and voice services, supporting communication between terminal devices and the core network, and implementing mobility management and session control. Specifically, 4G networks provide high-speed data transmission and VoLTE voice services, while 5G networks provide VoNR voice services.
[0038] WiFi is a wireless local area network (WLAN) technology that provides wireless internet access and supports VoWiFi voice service. It can access the IMS core network through the 4G / 5G core network. For example, when a terminal device accesses the network through an untrusted WiFi network, the Evolved Packet Data Gateway (ePDG) securely accesses the 4G core network via an encrypted Internet Protocol Security (IPSec) tunnel. User plane traffic is transmitted through the IPSec tunnel to the ePDG and then anchored to the Packet Data Network Gateway (PGW), which then routes it to the IMS core network to provide VoWiFi service. For example, in a 5G scenario, the terminal device can access the 5G core network through a Non-3GPP Interworking Function (N3IWF). The N3IWF is responsible for control plane commands, and the Access and Mobility Management Function (AMF) and Session Management Function (SMF) complete access authentication and session management. User plane data is guided by the N3IWF and anchored to the 5G User Plane Function (UPF), and then accesses the IMS core network via the UPF to realize VoWiFi service.
[0039] The 4G / 5G core network refers to the core network architecture in a mobile communication system responsible for controlling and managing user connections, sessions, mobility, data routing, and service access. The 4G core network can also be called the Evolved Packet Core (EPC). The IMS core network is a multimedia subsystem based on the Session Initiation Protocol (SIP), providing functions such as SIP signaling control, user authentication, and session management.
[0040] based on Figure 1 The communication system architecture shown allows terminal devices to flexibly switch between cellular networks (4G or 5G) and WiFi networks. When making voice calls via a cellular network, the terminal device establishes a session through collaboration between the 4G / 5G core network and the IMS core network. When making voice calls via a WiFi network, the terminal device accesses the IMS core network through the 4G / 5G core network to provide VoWiFi voice service. To optimize IMS registration behavior in scenarios with frequent switching and reduce redundant signaling overhead, this disclosure provides a communication method executed by the terminal device. Figure 2 A flowchart of a communication method according to an embodiment of the present disclosure is shown, with reference to Figure 2 The communication method may include the following steps.
[0041] Step S210: After detecting a voice access handover event between the cellular network and the WiFi network, collect network handover information within a preset time window.
[0042] Step S220: If the network switching information meets the preset frequent switching conditions, detect whether the network connection status information of the terminal device has changed.
[0043] In step S230, in response to the fact that the network connection status information has not changed, it is determined not to initiate an IMS re-registration request.
[0044] Step S240: In response to a change in network status information, determine to initiate an IMS re-registration request.
[0045] In this embodiment, after detecting a voice access handover event, the network handover information within a preset time window is first counted, such as the number of handovers between cellular network and WiFi. If the information meets the preset frequent handover conditions, the network connection status information of the terminal device is further detected to see if it has changed. When the network connection status information has not changed, it indicates that the network access context remains continuous and there is no need to rebuild the IMS session. Therefore, it is determined not to initiate an IMS re-registration request. IMS re-registration is only initiated when the network connection status information changes to ensure session security and user authentication effectiveness.
[0046] Through the above steps, an intelligent registration decision-making mechanism based on network switching information and network connection status information can be introduced on the terminal device side. This solves the problem of redundant IMS re-registration requests and network element signaling impact caused by re-initiating IMS registration every time voice access is switched in related technologies. It reduces unnecessary IMS signaling overhead, reduces the load pressure on core network elements such as UDM, and improves voice call continuity and network stability. At the same time, it does not rely on network-side policy adjustments and has good deployment flexibility and scalability.
[0047] The communication method in the embodiments of this disclosure will be further described below.
[0048] In step S210, after detecting a voice access handover event between the cellular network and the WiFi network, network handover information within a preset time window is collected.
[0049] Among them, the voice access switching event refers to the decision made by a terminal device during a voice call to migrate the voice bearer from one access method to another due to changes in network conditions, such as switching the voice bearer from a 4G network to a WiFi network. The preset time window is a configurable time period used to limit the statistical range, and can be set according to the user's movement speed, network environment, or historical experience, such as 30 seconds or 60 seconds.
[0050] Figure 3 A flowchart illustrating the triggering of a voice access switching event according to an embodiment of this disclosure is shown. Figure 3 As shown, the steps may include the following.
[0051] Step S310: Measure the signal quality of the cellular network to obtain the first measurement result.
[0052] In this step, the terminal device performs signal quality measurements on the currently serving cellular network. For example, measurement parameters may include, but are not limited to, Reference Signal Received Power (RSRP), Reference Signal Received Quality (RSRQ), and Signal to Interference plus Noise Ratio (SINR). After measuring these parameters, the obtained values are quantized, and the quantized values are used as the first measurement result to characterize the signal strength of the current cellular network.
[0053] Step S320: Measure the signal quality of the WiFi network to obtain a second measurement result.
[0054] In this step, the terminal device performs signal quality measurements on the currently connected or detectable WiFi network. For example, the measurement parameters may include, but are not limited to, Received Signal Strength Indicator (RSSI) and Signal-to-Noise Ratio (SNR). After measuring these parameters, the obtained values are quantized, and the quantized values are used as a second measurement result to characterize the signal strength of the current WiFi network.
[0055] Step S330: Based on the first measurement result and / or the second measurement result, and based on a preset switching strategy, determine the trigger for the voice access switching event.
[0056] In this step, the terminal device inputs the first and second measurement results into a preset handover judgment logic, which compares and makes a decision based on a preset handover strategy. If specific conditions are met, such as the first measurement result of the cellular network signal being lower than a certain threshold and the second measurement result of the WiFi network signal being higher than a certain threshold, then it is determined that the access network carrying the voice signal will be changed, and a corresponding voice access handover event is generated.
[0057] In some implementations, based on a first measurement result and / or a second measurement result, and a preset handover strategy, a voice access handover event is determined, including: if the preset handover strategy configures the cellular network to have a higher access priority than the WiFi network in voice services, when the terminal device makes a voice call via the cellular network, if the first measurement result is less than a preset low threshold for cellular network signal and the second measurement result is greater than a preset high threshold for WiFi network signal, then a voice access handover event from the cellular network to the WiFi network is triggered; when the terminal device makes a voice call via the WiFi network, if any of the following conditions are met, then a voice access handover event from the WiFi network to the cellular network is triggered: the first measurement result is greater than a preset high threshold for cellular network signal; the first measurement result is greater than a preset cellular network signal handover threshold, and the second measurement result is less than a preset low threshold for WiFi network signal.
[0058] In this embodiment, if the preset handover strategy is configured such that the access priority of the cellular network in voice services is higher than that of the WiFi network, the triggering mechanism for the voice access handover event is implemented as follows.
[0059] (1) When the terminal device is making a voice call through the cellular network, it continuously monitors the first measurement result of the cellular network (i.e., signal strength) and the second measurement result of the available WiFi network (i.e., signal strength). If the first measurement result of the cellular network is detected to be lower than the preset low threshold of the cellular network signal, it indicates that the current cellular network signal quality is poor and may affect the continuity of the call; at the same time, the second measurement result of the WiFi network is higher than the preset high threshold of the WiFi network signal, indicating that the WiFi network signal quality is good and the WiFi network has the ability to carry voice services. Then, it is determined that the handover conditions are met and a voice access handover event from the cellular network to the WiFi network is triggered.
[0060] (2) When the terminal device is making a voice call via WiFi, it continuously monitors the first measurement result (i.e., signal strength) of the available cellular network and the second measurement result (i.e., signal strength) of the WiFi network. If any of the following conditions are met, a voice access handover event from WiFi network to cellular network is triggered. Condition 1 is: the first measurement result of the cellular network is higher than a preset high threshold for cellular network signal strength, indicating that the cellular network signal quality is good and has priority access conditions; Condition 2 is: the first measurement result of the cellular network is higher than a preset cellular network signal handover threshold, and the second measurement result of the WiFi network is lower than a preset low threshold for WiFi network signal strength, indicating that the current WiFi link is unstable, while the cellular network has recovered to an available state, and the handover conditions are met.
[0061] In some implementations, based on the first measurement result and the second measurement result, and a preset handover strategy, a voice access handover event is determined, including: if the preset handover strategy configures the WiFi network to have a higher access priority than the cellular network in voice services, when the terminal device makes a voice call via the WiFi network, if the second measurement result is less than a preset low threshold for WiFi network signal and the first measurement result is greater than a preset high threshold for cellular network signal, then a voice access handover event from the WiFi network to the cellular network is triggered; when the terminal device makes a voice call via the cellular network, if any of the following conditions are met, then a voice access handover event from the cellular network to the WiFi network is triggered: the second measurement result is greater than a preset high threshold for WiFi network signal; the second measurement result is greater than a preset WiFi network signal handover threshold, and the first measurement result is less than a preset low threshold for cellular network signal.
[0062] In this embodiment, if the preset handover strategy is configured such that WiFi network has a higher access priority than cellular network in voice services, the triggering mechanism for voice access handover events is implemented as follows.
[0063] (1) When the terminal device is making a voice call via WiFi, it continuously monitors the first measurement result (i.e., signal strength) of the cellular network and the second measurement result (i.e., signal strength) of the available WiFi network. If the second measurement result of the WiFi network is detected to be lower than the preset low threshold of WiFi network signal, it indicates that the current WiFi network signal quality is poor and may affect the continuity of the call; at the same time, if the first measurement result of the cellular network is higher than the preset high threshold of cellular network signal, it indicates that the cellular network signal quality is good and the cellular network has the ability to carry voice services. Then, it is determined that the handover conditions are met and a voice access handover event from WiFi network to cellular network is triggered.
[0064] (2) When the terminal device is making a voice call via the cellular network, it continuously monitors the first measurement result (i.e., signal strength) of the available cellular network and the second measurement result (i.e., signal strength) of the WiFi network. If any of the following conditions are met, a voice access handover event from the cellular network to the WiFi network is triggered. Condition 1 is: the second measurement result of the WiFi network is higher than the preset WiFi network signal high threshold, indicating that the WiFi network signal quality is good and has priority access conditions; Condition 2 is: the second measurement result of the WiFi network is higher than the preset WiFi network signal handover threshold, and the first measurement result of the cellular network is lower than the preset cellular network signal low threshold, indicating that the current cellular link is unstable, while the WiFi network has recovered to an available state, and the handover conditions are met.
[0065] It should be noted that there is a reasonable hierarchical relationship between the aforementioned low cellular signal threshold, high cellular signal threshold, and cellular signal handover threshold to avoid ping-pong handover and ensure the stability of handover decisions. For example, the order is: low cellular signal threshold < cellular signal handover threshold < high cellular signal threshold. If the first signal measurement result of the cellular network is less than the low cellular signal threshold, it indicates poor cellular network signal quality; if the first signal measurement result is greater than the cellular signal handover threshold, it indicates average cellular network signal quality; and if the first signal measurement result is greater than the high cellular signal threshold, it indicates good cellular network signal quality.
[0066] Moreover, there is a reasonable hierarchical relationship among the above-mentioned low threshold of WiFi network signal, high threshold of WiFi network signal, and switching threshold of WiFi network signal to avoid ping-pong switching and ensure the stability of switching decisions. Exemplarily, the low threshold of WiFi network signal < the switching threshold of WiFi network signal < the high threshold of WiFi network signal. If the first signal measurement result of the WiFi network is less than the low threshold of the WiFi network signal, it indicates that the quality of the WiFi network signal is poor. If the first signal measurement result of the WiFi network is greater than the switching threshold of the WiFi network signal, it indicates that the quality of the WiFi network signal is average. If the first signal measurement result of the WiFi network is greater than the high threshold of the WiFi network signal, it indicates that the quality of the WiFi network signal is good.
[0067] In addition, the above six signal thresholds can be dynamically adjusted according to network modes (such as 4G / 5G), frequency bands (such as good low-frequency coverage and fast high-frequency attenuation), terminal moving speed, historical switching behaviors, and operator strategies, or can be optimized through an adaptive algorithm based on measured data to adapt to the changes in the wireless environment in different scenarios. The present disclosure does not limit this.
[0068] In the above method for determining the triggering of the voice access switching event based on the first measurement result of the cellular network and / or the second measurement result of the WiFi network, under different priority strategies (cellular priority or WiFi priority), it can ensure that the switching is triggered only when the target network quality is better than the current network, effectively avoiding the ping-pong effect, improving call continuity and user experience. At the same time, the threshold supports dynamic adjustment, enhancing the adaptability and robustness to complex wireless environments.
[0069] Of course, in addition to the above-mentioned threshold strategy based on signal strength, other ways to trigger the voice access switching event can be extended. For example, the switching can be triggered according to network service quality parameters. When it is detected that the voice bearer quality of the current bearer network deteriorates, such as the jitter exceeds the threshold, the packet loss rate increases, or the scheduling delay increases, even if the signal strength is acceptable, the switching can be triggered. In addition, the movement speed of the terminal device can be combined for judgment. For example, if the terminal device is in a high-speed moving state, the switching to the WiFi network is suppressed to avoid frequent access and disconnection. The switching can also be triggered based on the user location information. For example, when the terminal device enters a geofence area (such as home or office) and it is detected that the WiFi network is available, the switching to the WiFi is actively triggered. The switching can also be based on the network load situation. When the cellular network is congested or the WiFi network is idle, the switch to the network with lower load is prioritized to optimize the overall resource utilization. It can also be combined with application layer requirements. For example, when a high-definition voice or video call is in progress, the switching is allowed only when the target network supports the corresponding QoS level, thereby ensuring the user experience.
[0070] In step S220, if the network switching information meets the preset frequent switching conditions, the network connection status information of the terminal device is checked to see if it has changed.
[0071] In this step, after detecting a voice access handover event and collecting network handover information within a preset time window, it is determined whether the handover behavior falls under the "frequent handover" scenario. If the network handover information meets the preset frequent handover conditions, the terminal device's current network connection status is further checked for changes. If the preset frequent handover conditions are not met, the terminal device considers the current handover behavior to be a normal network change and does not need to activate the anti-frequent handover suppression mechanism. Therefore, after performing a voice access handover between the cellular network and the WiFi network, it normally initiates an IMS re-registration request to ensure the continuity of voice calls and session validity.
[0072] In some implementations, network switching information includes: a first number of handovers and a first handover frequency between the terminal device and the 5G network and the WiFi network, and a second number of handovers and a second handover frequency between the terminal device and the 4G network and the WiFi network.
[0073] In this embodiment, network switching information is used to determine whether switching is frequent. The terminal device analyzes the switching behavior corresponding to the 4G network and the 5G network respectively. For example, after detecting a voice access switching event, the terminal device counts the number of switching between the 5G network and the WiFi network within a preset time window, i.e., the first switching count, and calculates its switching frequency within a fixed time window (e.g., 60 seconds), i.e., the first switching frequency; and the terminal device counts the number of switching between the 4G network and the WiFi network within the preset time window, i.e., the second switching count, and calculates its switching frequency within a fixed time window (e.g., 60 seconds), i.e., the second switching frequency.
[0074] By separately analyzing the number and frequency of handovers between 4G and 5G networks and WiFi networks, the handover behavior of different cellular networks can be more accurately distinguished, avoiding misjudgments caused by network differences. Furthermore, this helps in configuring differentiated strategies for scenarios such as large fluctuations in 5G high-frequency band coverage or weak 4G edge coverage, improving the accuracy and adaptability of frequent handover detection. In addition, frequency calculation based on time windows can effectively identify short-term high-frequency handover trends, enhancing the real-time performance and reliability of the response.
[0075] In some implementations, the preset frequent switching conditions include one or more of the following options: a first switching count greater than a preset first switching count threshold; a second switching count greater than a preset second switching count threshold; a first switching frequency greater than a preset first switching frequency threshold; and a second switching frequency greater than a preset second switching frequency threshold.
[0076] In this embodiment, the preset frequent handover conditions include four indicators: whether the first number of handovers between the 5G network and the WiFi network exceeds a first handover number threshold, whether the corresponding first handover frequency exceeds a preset first handover frequency threshold, whether the second number of handovers between the 4G network and the WiFi network exceeds a second handover number threshold, and whether the corresponding second handover frequency exceeds a preset second handover frequency threshold. As long as any one of these conditions is met, it can be determined that the preset frequent handover conditions are met, avoiding the omission of real frequent handover scenarios due to the failure of a single indicator to meet the standard.
[0077] The threshold parameters can be flexibly configured according to different deployment environments. For example, in scenarios with drastic signal changes, such as subways and high-speed moving roads, the threshold can be appropriately increased to tolerate more handover behavior; while in scenarios with stable networks, such as offices and homes, the threshold can be decreased to trigger the optimization mechanism more sensitively. For example, the first handover count threshold is 3 times, the second handover count threshold is 4 times, the first handover frequency threshold is 2.5 times / minute, and the second handover frequency threshold is 3 times / minute.
[0078] This implementation provides a flexible and configurable frequent switching determination mechanism to determine whether a terminal device is frequently switching between cellular and WiFi networks. By setting multiple optional judgment conditions, the judgment criteria can be dynamically adjusted according to the actual network environment and usage scenario, thereby improving the adaptability and accuracy of the decision.
[0079] In some embodiments, the communication method further includes: weighting the first handover count and the second handover count to obtain a weighted handover count; and weighting the first handover frequency and the second handover frequency to obtain a weighted handover frequency. The preset frequent handover conditions include: the weighted handover count being greater than a preset weighted handover count threshold; and / or, the weighted handover frequency being greater than a preset weighted handover frequency threshold.
[0080] This implementation introduces a weighted mechanism, multiplying the first and second handover counts by their respective weighting coefficients and then summing the results to obtain the weighted handover count. Similarly, the first and second handover frequencies are weighted and summed to obtain the weighted handover frequency. For example, considering that 5G networks typically have lower latency and higher priority, the weight for handover between 5G and WiFi networks can be set to 1.2, and the weight for handover between 4G and WiFi networks can be set to 1. This reflects the higher impact factor of 5G handover, ensuring that even if the number of handovers in the 5G direction is less, it can be reasonably reflected in the overall score.
[0081] The weighted values are used as the basis for judgment: when the number of handovers after weighting exceeds a preset weighted handover number threshold, or the handover frequency after weighting exceeds a preset weighted handover frequency threshold, the terminal device is determined to be in a frequent handover state. The weighting coefficients and thresholds can be dynamically adjusted by the operator through policy issuance, or adaptively optimized by combining user behavior and network environment.
[0082] This implementation method introduces a weighted processing mechanism on the basis of the original handover count and frequency statistics, which can better reflect the differences in handover behavior of different network standards, significantly improve the accuracy and rationality of frequent handover identification, and provide a more reliable decision-making basis for subsequent network connection status detection and IMS registration optimization.
[0083] In some implementations, network connectivity status information includes: IP address, SIP signaling bearer, and IMS Internet Protocol Security (IPsec) tunnel.
[0084] The IP address is a unique identifier for a terminal device in the network. If it changes, it means that the terminal device's identity in accessing the network has changed.
[0085] SIP signaling bearers refer to the default or dedicated packet data bearers established by terminal devices on the IP Connectivity Access Network (IP-CAN) for transmitting SIP signaling. In 4G / 5G networks, this bearer typically corresponds to an EPS bearer with a specific QoS level or a 5G QoS stream, and its continued existence indicates that the IP connection between the terminal device and the core network is uninterrupted. Maintaining the SIP signaling bearer is a prerequisite for IMS registration refresh, session establishment, and call control message exchange. Once this bearer is released or rebuilt, the IMS signaling path will be interrupted, and the registration state needs to be re-established.
[0086] The IPsec tunnel in IMS is a secure tunnel established between the terminal device and the ePDG in VoWiFi or untrusted access scenarios to protect the confidentiality and integrity of IMS signaling (such as SIP) and voice media streams. This tunnel is built on the IPsec protocol suite, and the continued validity of its Security Association (SA) is a key indicator for the terminal to maintain a trusted security context. If the IPsec tunnel is disconnected, the original security binding becomes invalid, and the terminal device must re-execute the authentication and key negotiation process to restore IMS communication capabilities.
[0087] In one possible implementation, the terminal device collects and records the following network connection status information before and after each voice access handover event: the currently assigned IP address, the identifier and status of the IP-CAN bearer on which the SIP signaling depends, and the establishment status of the IMS dedicated IPsec tunnel. Subsequently, by comparing the corresponding parameters before and after the handover, it is determined whether the network connection between the terminal and the core network has changed.
[0088] In some implementations, detecting whether the network connection status information between the terminal device and the core network has changed includes: determining whether the IP address of the terminal device remains unchanged; determining whether the IP-CAN bearer used for transmitting SIP signaling continues to exist and has not been interrupted; and determining whether the IPsec tunnel connection of IMS is maintained.
[0089] In this embodiment, before a voice access handover event occurs, the terminal device records its current IP address, the IP-CAN bearer identifier and status upon which the SIP signaling relies, and the Security Association (SA) information of the IMS dedicated IPsec tunnel. After the handover is completed, the corresponding information is retrieved again and compared.
[0090] The terminal device compares the IP addresses before and after the handover. If the addresses are the same, it indicates that the terminal device is still in the same logical network or the access anchor point has not changed, and no network layer reconnection has occurred. The terminal device queries the bearer status. If the default or dedicated bearer used for transmitting SIP signaling has not been released or rebuilt by the core network, and the bearer identifier has not changed, then the IP-CAN bearer is considered to continue to exist, and the SIP path is not interrupted. In VoWiFi or untrusted WiFi access scenarios, the terminal device and ePDG establish a secure tunnel via the IPsec protocol to protect IMS signaling and media streams. The terminal device checks whether the SA of this tunnel is still valid. If it is valid, it is determined that the IPsec tunnel remains connected and the security context has not been lost.
[0091] In this embodiment, the continuity of network connection is comprehensively evaluated from three dimensions: network identity (IP address), transmission channel (IP-CAN bearer), and security context (IPsec SA). This avoids misjudgment caused by relying on only a single indicator and can accurately identify whether the logical connection and security context between the terminal and the core network are still valid during voice access handover.
[0092] In step S230, in response to the fact that the network connection status information has not changed, it is determined not to initiate an IMS re-registration request.
[0093] In this embodiment, when the terminal device detects that the network connection status information has not changed, it considers the communication environment of the current IMS session to be stable and reliable, and there is no need to re-establish the registration context. Therefore, the terminal device actively suppresses the sending of IMS re-registration requests to avoid generating redundant signaling.
[0094] In some implementations, after determining not to initiate an IMS re-registration request, the communication method further includes: monitoring the remaining validity period of the current IMS registration; if the remaining validity period is less than a preset time threshold, then initiating an IMS refresh registration request.
[0095] In this implementation, IMS registration has a limited validity period. If it is not refreshed for an extended period, the registration will expire, resulting in the inability to receive incoming calls or send new calls. Therefore, even after the terminal device decides not to initiate an IMS re-registration request, it still needs to monitor the remaining validity period of the current registration. Once the remaining validity period falls below a preset time threshold (e.g., 300 seconds), it proactively initiates an IMS refresh registration request to extend the registration period and maintain the registration status. This ensures that even if the terminal device is in a state of frequent switching for extended periods, it can maintain a legitimate IMS registration identity, guaranteeing the accessibility of voice services.
[0096] In step S240, in response to a change in network status information, it is determined to initiate an IMS re-registration request.
[0097] In this embodiment, when the terminal device detects a change in network connection status information, it indicates that the transmission path or security context of the original IMS session has been corrupted. It is necessary to rebuild the session binding and obtain a new security key through a complete IMS re-registration process to ensure the normal operation of subsequent voice services.
[0098] Figure 4 A flowchart of a communication method according to yet another embodiment of this disclosure is shown, with reference to Figure 4 The communication method may include the following steps.
[0099] Step S401: The terminal device initiates a voice call.
[0100] In step S402, the terminal device measures the signal quality of the currently serving cellular network and obtains a first measurement result.
[0101] Cellular networks can include 4G and 5G networks.
[0102] In step S403, the terminal device measures the signal quality of the currently connected or detectable WiFi network and obtains a second measurement result.
[0103] In step S404, the terminal device determines to trigger a voice access switching event based on the first measurement result and / or the second measurement result and a preset switching strategy.
[0104] For example, if the preset handover policy configures cellular networks to have a higher access priority than WiFi networks in voice services, when a terminal device makes a voice call via cellular networks, if a first measurement result is less than a preset low threshold for cellular network signals and a second measurement result is greater than a preset high threshold for WiFi network signals, a voice access handover event from cellular networks to WiFi networks is triggered. When a terminal device makes a voice call via WiFi networks, a voice access handover event from WiFi networks to cellular networks is triggered if any of the following conditions are met: the first measurement result is greater than a preset high threshold for cellular network signals; the first measurement result is greater than a preset cellular network signal handover threshold, and the second measurement result is less than a preset low threshold for WiFi network signals.
[0105] If the preset handover strategy configures WiFi network to have higher access priority than cellular network in voice services, when the terminal device makes a voice call via WiFi network, if the second measurement result is less than the preset low threshold of WiFi network signal and the first measurement result is greater than the preset high threshold of cellular network signal, a voice access handover event from WiFi network to cellular network is triggered. When the terminal device makes a voice call via cellular network, a voice access handover event from cellular network to WiFi network is triggered if any of the following conditions are met: the second measurement result is greater than the preset high threshold of WiFi network signal; the second measurement result is greater than the preset WiFi network signal handover threshold and the first measurement result is less than the preset low threshold of cellular network signal.
[0106] Step S405: After detecting a voice access handover event between the cellular network and the WiFi network, the terminal device collects network handover information within a preset time window.
[0107] The network switching information includes: the first number of times and the first switching frequency of the terminal device switching between the 5G network and the WiFi network, and the second number of times and the second switching frequency of the terminal device switching between the 4G network and the WiFi network.
[0108] Step S406: The terminal device determines whether the preset frequent switching conditions are met.
[0109] For example, the preset frequent switching conditions include one or more of the following options: the first number of switching is greater than a preset first number of switching threshold; the second number of switching is greater than a preset second number of switching threshold; the first switching frequency is greater than a preset first switching frequency threshold; and the second switching frequency is greater than a preset second switching frequency threshold.
[0110] Step S407: If the preset frequent switching conditions are met, the terminal device detects whether the network connection status information of the terminal device has changed.
[0111] The network connection status information includes: IP address, SIP signaling bearer, and IMS IPsec tunnel. For example, it determines whether the terminal device's IP address remains unchanged; whether the IP-CAN bearer used for transmitting SIP signaling persists without interruption; and whether the IMS IPsec tunnel connection is maintained.
[0112] It should be noted that if the preset frequent handover conditions are not met, the terminal device considers the current handover behavior to be a normal network change and does not need to activate the anti-frequent handover suppression mechanism. Therefore, after performing the voice access handover between the cellular network and the WiFi network, it normally initiates the IMS re-registration request to ensure the continuity of voice calls and the validity of the session.
[0113] In step S408, if the network connection status information has not changed, the terminal device does not initiate a re-registration request for the IP Multimedia Subsystem (IMS).
[0114] Step S409: If the network status information changes, the terminal device initiates an IMS re-registration request.
[0115] The communication method of this disclosure can introduce an intelligent registration decision mechanism based on network switching information and network connection status information on the terminal device side. This solves the problem of redundant IMS re-registration requests and network element signaling impact caused by re-initiating IMS registration every time voice access is switched in related technologies. It reduces unnecessary IMS signaling overhead, reduces the load pressure on core network elements such as UDM, and improves the continuity of voice calls and network stability. At the same time, it does not rely on network-side policy adjustments and has good deployment flexibility and scalability.
[0116] Figure 5 A schematic diagram of the structure of a communication device according to an embodiment of the present disclosure is shown. Figure 5 The communication device 500 shown can be applied to terminal equipment and may include a handover information statistics module 510, a status detection module 520, and a registration request initiation module 530.
[0117] The handover information statistics module 510 is configured to: after detecting a voice access handover event between the cellular network and the WiFi network, collect network handover information within a preset time window. The status detection module 520 is configured to: if the network handover information meets preset frequent handover conditions, detect whether the network connection status information of the terminal device has changed. The registration request initiation module 530 is configured to: if the network connection status information has not changed, determine not to initiate an IMS re-registration request; if the network status information has changed, determine to initiate an IMS re-registration request.
[0118] In some exemplary embodiments of this disclosure, the network switching information includes: a first number of switching times and a first switching frequency of the terminal device between a 5G network and a WiFi network, and a second number of switching times and a second switching frequency of the terminal device between a 4G network and a WiFi network.
[0119] In some exemplary embodiments of this disclosure, the preset frequent switching conditions include one or more of the following options: the first number of switching is greater than a preset first switching number threshold; the second number of switching is greater than a preset second switching number threshold; the first switching frequency is greater than a preset first switching frequency threshold; and the second switching frequency is greater than a preset second switching frequency threshold.
[0120] In some exemplary embodiments of this disclosure, the handover information statistics module 510 is further configured to: perform weighted processing on the first handover count and the second handover count to obtain a weighted handover count; and perform weighted processing on the first handover frequency and the second handover frequency to obtain a weighted handover frequency. The preset frequent handover conditions include: the weighted handover count being greater than a preset weighted handover count threshold; and / or, the weighted handover frequency being greater than a preset weighted handover frequency threshold.
[0121] In some exemplary embodiments of this disclosure, network connection status information includes: IP address, SIP signaling bearer, and IMS IPsec tunnel.
[0122] In some exemplary embodiments of this disclosure, the status detection module 520 is further configured to: determine whether the IP address of the terminal device remains unchanged; determine whether the IP-CAN bearer used for transmitting SIP signaling continues to exist and has not been interrupted; and determine whether the IPsec tunnel connection of IMS is maintained.
[0123] In some exemplary embodiments of this disclosure, the device 500 further includes a voice access switching module 540, configured to: measure the signal quality of a cellular network to obtain a first measurement result; measure the signal quality of a WiFi network to obtain a second measurement result; and determine, based on the first measurement result and / or the second measurement result, a preset switching strategy to trigger a voice access switching event.
[0124] In some exemplary embodiments of this disclosure, the voice access switching module 540 is further configured to: if a preset switching strategy configures the cellular network to have a higher access priority than the WiFi network in voice services, when the terminal device makes a voice call through the cellular network, if a first measurement result is less than a preset low threshold for cellular network signal and a second measurement result is greater than a preset high threshold for WiFi network signal, then a voice access switching event from the cellular network to the WiFi network is triggered; when the terminal device makes a voice call through the WiFi network, if any of the following conditions are met, then a voice access switching event from the WiFi network to the cellular network is triggered: the first measurement result is greater than a preset high threshold for cellular network signal; the first measurement result is greater than a preset cellular network signal switching threshold, and the second measurement result is less than a preset low threshold for WiFi network signal.
[0125] In some exemplary embodiments of this disclosure, the registration request initiation module 530 is further configured to: monitor the remaining validity period of the current IMS registration; if the remaining validity period is less than a preset time threshold, initiate an IMS refresh registration request.
[0126] The principle of the communication device embodiment provided in this disclosure is similar to that of the method embodiment described above. Therefore, the implementation of this communication device embodiment can be found in the implementation of the method embodiment described above, and repeated details will not be repeated.
[0127] Figure 6 A structural block diagram of an electronic device according to an embodiment of this disclosure is shown. It should be noted that... Figure 6 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.
[0128] like Figure 6 As shown, the electronic device 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage section 608 into a random access memory (RAM) 603. The RAM 603 also stores various programs and data required for the operation of the electronic device 600. The CPU 601, ROM 602, and RAM 603 are interconnected via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0129] The following components are connected to I / O interface 605: an input section 606 including a keyboard, mouse, etc.; an output section 607 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to I / O interface 605 as needed. A removable medium 611, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on drive 610 as needed so that computer programs read from it can be installed into storage section 608 as needed.
[0130] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 609, and / or installed from removable medium 611. When the computer program is executed by central processing unit (CPU) 601, it performs the functions defined above in the system of this disclosure.
[0131] It should be noted that the computer-readable medium disclosed herein may be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium may be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, terminal device, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, terminal device, or device. In this disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media can also be any computer-readable medium other than computer-readable storage media, which can send, propagate, or transmit programs for use by or in connection with an instruction execution system, terminal device, or apparatus. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.
[0132] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0133] The modules described in the embodiments of this disclosure can be implemented in software or hardware. The described modules can also be housed in a processor; for example, a processor may be described as including a handover information statistics module, a status detection module, and a registration request initiation module. The names of these modules do not necessarily limit the module itself; for example, the handover information statistics module may also be described as "a module that, after detecting a voice access handover event between a cellular network and a WiFi network, statistically analyzes network handover information within a preset time window."
[0134] In another aspect, this disclosure also provides a computer-readable storage medium, which may be included in the electronic device described in the above embodiments; or it may exist independently and not assembled into the electronic device. The computer-readable storage medium carries one or more programs that, when executed by the electronic device, cause the electronic device to perform the methods described in the following embodiments. For example, the electronic device may perform... Figure 2 The steps shown.
[0135] According to one aspect of this disclosure, a computer program product or computer program is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the methods provided in various alternative implementations of the above embodiments.
[0136] It should be understood that any number of elements in the accompanying drawings is for illustrative purposes only and not for limitation, and any naming is for distinction only and has no limiting meaning.
[0137] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and embodiments are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.
[0138] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.
Claims
1. A communication method characterized by comprising: The method is executed by a terminal device, and comprises: After detecting a voice access switching event between a cellular network and a wireless local area network (WiFi) network, network switching information in a preset time window is counted; If the network switching information meets a preset frequent switching condition, it is detected whether network connection state information of the terminal device has changed; In response to the network connection state information not having changed, it is determined that an IP multimedia subsystem (IMS) re-registration request is not initiated; In response to the network state information having changed, it is determined that the IMS re-registration request is initiated.
2. The method of claim 1, wherein, The network switching information comprises: a first switching number and a first switching frequency between a 5G network and a WiFi network of the terminal device, and a second switching number and a second switching frequency between a 4G network and a WiFi network of the terminal device.
3. The method of claim 2, wherein, The preset frequent switching condition comprises one or more of the following options: The first switching number is greater than a preset first switching number threshold value; The second switching number is greater than a preset second switching number threshold value; The first switching frequency is greater than a preset first switching frequency threshold value; The second switching frequency is greater than a preset second switching frequency threshold value.
4. The method of claim 2, wherein, The method further comprises: The first switching number and the second switching number are subjected to weighted processing to obtain a weighted processing switching number; The first switching frequency and the second switching frequency are subjected to weighted processing to obtain a weighted processing switching frequency; The preset frequent switching condition comprises: the weighted processing switching number is greater than a preset weighted switching number threshold value; and / or, the weighted processing switching frequency is greater than a preset weighted switching frequency threshold value.
5. The method according to any one of claims 1 to 4, characterized in that, The network connection state information comprises: an IP address, a session initiation protocol (SIP) signaling bearer, and an Internet Protocol Security (IPsec) tunnel of the IMS.
6. The method of claim 5, wherein, The detection of whether the network connection state information between the terminal device and the core network has changed comprises: It is judged whether the IP address of the terminal device remains unchanged; It is judged whether an IP connection access network (IP-CAN) bearer for transmitting SIP signaling continuously exists and has not been interrupted; It is judged whether the IPsec tunnel connection of the IMS is maintained.
7. The method of claim 1, wherein, The method further comprises: The signal quality of the cellular network is measured to obtain a first measurement result; and the signal quality of the WiFi network is measured to obtain a second measurement result; According to the first measurement result and / or the second measurement result, based on a preset switching strategy, it is determined that the voice access switching event is triggered.
8. The method of claim 7, wherein, According to the first measurement result and / or the second measurement result, based on a preset switching strategy, it is determined that the voice access switching event is triggered, comprising: If the preset switching strategy configures that the access priority of the cellular network in voice service is higher than that of the WiFi network, when the terminal device is engaged in voice communication through the cellular network, if the first measurement result is less than a preset low cellular network signal threshold value, and the second measurement result is greater than a preset high WiFi network signal threshold value, a voice access switching event from the cellular network to the WiFi network is triggered; When the terminal device is making a voice call through the WiFi network, if any of the following conditions is met, a voice access handover event from the WiFi network to the cellular network is triggered: the first measurement result is greater than a preset high cellular network signal threshold; the first measurement result is greater than a preset cellular network signal handover threshold, and the second measurement result is less than a preset low WiFi network signal threshold.
9. The method of claim 1, wherein, After determining not to initiate the IMS re-registration request, the method further comprises: monitoring a remaining valid period of a current IMS registration; if the remaining valid period is less than a preset time threshold, initiating an IMS refresh registration request.
10. A communications device, characterized by comprising: a handover information statistics module configured to, after detecting a voice access handover event between a cellular network and a WiFi network, count network handover information within a preset time window; a state detection module configured to, if the network handover information meets a preset frequent handover condition, detect whether network connection state information of a terminal device has changed; a registration request initiation module configured to, in response to the network connection state information not having changed, determine not to initiate an IMS re-registration request; in response to the network state information having changed, determine to initiate an IMS re-registration request.
11. An electronic device, comprising: comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute the method of any one of claims 1-9 via execution of the executable instructions.
12. A computer readable storage medium having stored thereon a computer program, characterized in that, The computer program, when executed by a processor, implements the method of any one of claims 1-9.
13. A computer program product, characterised in that, The computer program product stores instructions, which, when executed by a computer, cause the computer to implement the method of any one of claims 1-9.