CN111586782B - Network connection method and device - Google Patents

Network connection method and device Download PDF

Info

Publication number
CN111586782B
CN111586782B CN202010450923.2A CN202010450923A CN111586782B CN 111586782 B CN111586782 B CN 111586782B CN 202010450923 A CN202010450923 A CN 202010450923A CN 111586782 B CN111586782 B CN 111586782B
Authority
CN
China
Prior art keywords
network
vowifi
electronic device
equipment
electronic equipment
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN202010450923.2A
Other languages
Chinese (zh)
Other versions
CN111586782A (en
Inventor
黄江民
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202010450923.2A priority Critical patent/CN111586782B/en
Publication of CN111586782A publication Critical patent/CN111586782A/en
Application granted granted Critical
Publication of CN111586782B publication Critical patent/CN111586782B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0011Control or signalling for completing the hand-off for data sessions of end-to-end connection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M7/00Arrangements for interconnection between switching centres
    • H04M7/006Networks other than PSTN/ISDN providing telephone service, e.g. Voice over Internet Protocol (VoIP), including next generation networks with a packet-switched transport layer
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0083Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/14Reselecting a network or an air interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W80/00Wireless network protocols or protocol adaptations to wireless operation
    • H04W80/08Upper layer protocols
    • H04W80/10Upper layer protocols adapted for application session management, e.g. SIP [Session Initiation Protocol]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The application discloses a network connection method and device, and belongs to the technical field of communication. Under the condition that the electronic equipment is connected with a VoWiFi network, if the return interruption of the VoWiFi network is detected, initiating a detection command to obtain a detection result, wherein the detection result is used for indicating the data transmission state between the electronic equipment and the VoWiFi network; and if the data transmission state is an interruption state, the electronic equipment switches the electronic equipment from the VoWiFi network to a target network. The method and the device are suitable for network switching scenes.

Description

Network connection method and device
Technical Field
The present application belongs to the field of communications technologies, and in particular, to a network connection method and apparatus.
Background
Currently, an electronic device can use an IMS call technology to digitize an analog signal during a call, so that a user can make and receive voice or video calls while using the mobile internet. The IMS call technology generally includes two types: one is a VoWiFi technology, that is, a Wireless-Fidelity (WIFI) is accessed to perform a network call; one is a VoLTE technology, that is, based on a Long Term Evolution (LTE) technology, a network telephone is accessed through a dedicated network set by an operator.
In the related art, in the process of using the VoWiFi network to make a call by the electronic device, if the electronic device continues to make a call without sound, the VoWiFi network is directly switched to the VoLTE network.
However, since the network quality of a VoWiFi network is generally higher than that of a VoLTE network, not all scenarios with silent talk require switching the VoWiFi network to the VoLTE network (e.g., short network delay of the VoWiFi network).
Therefore, the electronic equipment can be caused to carry out unnecessary network switching, the use power consumption of the electronic equipment is increased, and the conversation efficiency of the electronic equipment is reduced.
Disclosure of Invention
An object of the embodiments of the present application is to provide a network connection method and apparatus, which can solve the problem of reducing unnecessary network handover procedures.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a network connection method, where the method includes: the method comprises the steps that under the condition that an electronic device is connected with a VoWiFi network, if the return interruption of the VoWiFi network is detected, a network connecting device initiates a detection command to obtain a detection result, and the detection result is used for indicating the data transmission state between the electronic device and the VoWiFi network; and if the data transmission state is an interruption state, switching the electronic equipment from the VoWiFi network to a target network.
In a second aspect, an embodiment of the present application provides a network connection apparatus, including an obtaining module and an executing module; the acquisition module is configured to, when the electronic device is connected to the VoWiFi network, initiate a detection command if it is detected that the backhaul of the VoWiFi network is interrupted, to obtain a detection result, where the detection result is used to indicate a data transmission state between the electronic device and the VoWiFi network; the execution module is configured to switch the electronic device from the VoWiFi network to a target network if the result obtained by the obtaining module indicates that the data transmission state is an interruption state.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor, implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In the embodiment of the application, when the electronic device is connected to the VoWiFi network, if the electronic device detects that the backhaul of the VoWiFi network is interrupted, the electronic device initiates a detection command to detect the data transmission state of the VoWiFi network, and then obtains a detection result, and when the data transmission state is the interrupted state, the electronic device is switched from the VoWiFi network to the target network. Therefore, when the electronic equipment detects that the return trip of the VoWiFi network is interrupted, the electronic equipment initiates a detection command to perform secondary detection, so that the current data transmission state of the VoWiFi network is accurately judged, unnecessary network switching is reduced, and the accuracy and the effectiveness of the network switching are improved.
Drawings
Fig. 1 is a flowchart of a network connection method according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a network connection device according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or described herein. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The following explains the terms appearing in the present application:
1. VoWiFi network
A VoWiFi network, i.e. Voice over Wi-Fi, is a Voice service based on IP Multimedia Subsystem (IMS). When the user uses the network, the user can carry out voice and video calls in a traditional dialing mode under a Wi-Fi environment.
2. VoLTE network
VoLTE networks, voice over LTE, are IMS-based Voice services. When the user uses the network, the user does not need to start the 2G/3G network, all services (including voice or video call services and internet access services) are borne on the 4G network, and the unification of data transmission and voice call services in the same network can be realized.
3. VoNR network
The VoNR network, i.e. Voice over New Radio, is an IMS-based Voice service. When the user uses the network, the user does not need to start a 2G/3G/4G network, all services (including voice or video call services and internet access services) are borne on the 5G network, and the unification of data transmission and voice call services in the same network can be realized.
4. Session initiation protocol SIP
SIP (Session Initiation Protocol) is a multimedia communication Protocol, and is mainly used for solving signaling control in an IP network, is widely applied to Circuit Switched (CS) and IMS networks, can support and be applied to multimedia services such as voice, video, data, and the like, and can also be applied to feature services such as Presence (Presence), instant Message (Instant Message), and the like.
In the actual communication process, the SIP protocol can be used to establish, modify and terminate multimedia sessions for two or more parties over IP networks. When the IMS communication technology is used between different electronic devices to establish communication connection, the electronic devices send SIP signaling, if the communication connection is normal, the signaling can be sent normally, and the network device feeds back information aiming at the SIP signaling.
5. Internet key exchange protocol IKE
IKE defines a method for identity authentication, negotiating encryption algorithms and generating shared session keys between communicating entities for negotiating and establishing security associations, exchanging keys, between two communicating entities. After the key is exchanged between the two communicating entities, secure communication using Internet Protocol Security (IPSec) may be started.
In the actual communication process, the electronic device periodically sends an IKE network address translation Keep-Alive (NAT Keep Alive) message to the network device at a certain interval, if the data transmission function of the electronic device is normal, the IKE signaling can be sent normally, and after receiving the IKE signaling, the network device feeds back feedback information about the IKE signaling to the electronic device.
6. Hypertext transfer protocol HTTP
HTTP is the most widely used network transport protocol on the internet, and all World Wide Web (WWW) documents must adhere to this protocol. In practical applications, when the electronic device needs to connect to a network and execute a service consuming data traffic (for example, viewing a web page), an HTTP connection request needs to be initiated to the network device, and if the data transmission function of the electronic device is normal, the request signaling can be sent out normally, and the network device will feed back feedback information about the request signaling.
7. Real-time Transport Protocol (RTP)/real-time Transport Control Protocol (RTCP)
In the field of communications, the RTP standard defines two sub-protocols, RTP and RTCP. In the data transmission process, the electronic device usually uses RTP and RTCP together. Among them, RTP is a transport protocol for multimedia data stream on internet, which aims to guarantee synchronization of time information and data transmission when transmitting data. RTCP is responsible for managing the quality of transmission to exchange control information between current application processes. RTCP packets, which contain statistics such as the number of packets sent and the number of packets lost, are transmitted periodically during a session by the electronic device according to RTP.
In an actual communication process, when data needs to be transmitted between electronic devices, RTP/RTCP data from a network device needs to be received, and if a data transmission function of the electronic device is normal, the electronic device may receive the data.
The network connection method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
The network connection method provided by the embodiment of the application can be applied to the call scene of the voice service based on the IMS. When using VoWiFi, the network connection device may be in a Call Active state (Call Active) or a non-Call state (IDLE). After the electronic device and the network device establish IPSec connection through VoWiFi (for example, an access gateway of 4G VoWiFi is ePDG, and an access gateway of 5G VoWiFi is N3 IWF), the electronic device and the network device start a DPD Timer (most operators set the DPD Timer to 2 minutes), respectively, using a Timer, so as to periodically detect a network connection status.
If the network device does not receive the feedback of any data packet in the electronic device within the DPD Timer time, the network device considers that the IPsec connection with the electronic device is interrupted, and at this time, the network device disconnects the IKE connection with the electronic device, the connection between the electronic device and the network device fails, and the electronic device is triggered to switch from the VoWiFi network to the VoLTE network; if the electronic device does not receive the feedback of any data packet in the network device within the DPD Timer time, the electronic device considers that the IPSec connection with the network device is interrupted, and the electronic device generates a DPD Timer timeout error signaling, and then switches the network from the VoWiFi network to the VoLTE network.
As can be seen from the above, when the VoWiFi network cannot transmit data, the electronic device directly performs network switching when the DPD Timer times out, and in the VoWiFi network, the electronic device cannot transmit data for various reasons, such as network delay. Therefore, the DPD Timer timeout does not necessarily indicate that the VoWiFi network cannot transmit data. Generally, the network environment of the VoWiFi network is better than that of the VoLTE network, and unnecessary network handover may be caused because the DPD Timer timeout is not accurate as a criterion for determining the type of the handover network.
In the embodiment of the application, when the electronic device is connected to the VoWiFi network, if the electronic device detects that the backhaul of the VoWiFi network is interrupted, the electronic device initiates a detection command to detect the real data transmission state of the VoWiFi network, and then obtains a detection result. When the electronic equipment confirms that the data transmission state is the interruption state, the VoWiFi network is switched to the VoLTE network. Therefore, the electronic equipment can obtain an accurate detection result by actively initiating the detection command, so that the accuracy and the effectiveness of network switching are enhanced.
The network connection method in the embodiment of the present application is described below with reference to a flow chart of the network connection method shown in fig. 1, where fig. 1 is a flow chart of the network connection method provided in the embodiment of the present application, and the flow chart includes steps 201 and 202:
step 201: the network connection device initiates a detection command to obtain a detection result if detecting that the return trip of the VoWiFi network is interrupted under the condition that the electronic equipment is connected to the VoWiFi network.
In an embodiment of the application, the detection result is used to indicate a data transmission status between the electronic device and the VoWiFi network.
In this embodiment of the present application, the network backhaul interruption refers to: after the electronic device establishes a connection with the network device, the data transmission line from the electronic device to the network device to transmit data is interrupted, and the data transmission line from the network device to the electronic device is interrupted.
It should be noted that, when the network backhaul of the VoWiFi network is interrupted, the network connection between the electronic device and the network device is not interrupted, and only the VoWiFi network cannot be used for data transmission.
In this embodiment of the application, the detection command may be: a command for detecting a connection status between the network connection device and the network device. For example, an Internet Packet explorer command (Ping) in the electronic device may check whether a data transmission channel between the electronic device and the network device is clear.
In this embodiment, the detection result is a detection result generated by the electronic device after the electronic device sends the detection command. For example, after the electronic device sends the Ping command to the network device, the availability of the data transmission channel may be checked and determined, and a detection result about the data transmission status may be generated, so that a network failure may be accurately analyzed and determined.
In an example, after the electronic device initiates a Ping command, the electronic device may transmit a data packet to the network device, and request the network device to transmit a feedback data packet having the same size as the data packet back to the electronic device, and when the electronic device cannot send the data packet or cannot receive the feedback data packet, the electronic device may determine that the data transmission status is an interruption status.
Step 202: if the data transmission state is an interruption state, the network connection device switches the electronic equipment from the VoWiFi network to a target network.
For example, after the electronic device confirms that the data transmission state is the interruption state, the electronic device quickly switches the VoWiFi network to the target network.
In an example, when the electronic device is in a process of using a VoWiFi network to perform a voice call, if the VoWiFi network cannot transmit data, the electronic device may directly switch the VoWiFi network to a target network when it is determined that a data transmission state is interrupted, thereby reducing a situation that no voice occurs during the call, and implementing seamless switching between different networks.
Illustratively, the target network may be a VoLTE network or a VoNR network. That is, in the case that the electronic device supports a 5G network, the network connection device may switch the aforementioned VoWiFi network to a VoNR network; or, in the case that the electronic device supports the LTE network, the network connection device may switch the aforementioned VoWiFi network to the VoLTE network.
Example 1: when the network connection device is connected with the VoWiFi network, when the network connection device cannot transmit data to the network equipment, the electronic equipment is triggered to initiate a Ping command (namely the detection command) to the network equipment, a feedback result (namely the detection result) of the Ping command is obtained, and when the feedback result shows that the data transmission state of the network connection device and the VoWiFi network is an interruption state, the network connection device cuts off the connection with the VoWiFi network and switches to be connected with the VoLTE network.
In the network connection method provided in the embodiment of the application, when the electronic device is connected to the VoWiFi network, if the electronic device detects that the backhaul of the VoWiFi network is interrupted, the electronic device initiates a detection command to detect the data transmission state of the VoWiFi network, and then obtains a detection result, and when the data transmission state is the interrupted state, the electronic device is switched from the VoWiFi network to the target network. Therefore, when the electronic equipment detects that the return trip of the VoWiFi network is interrupted, the electronic equipment initiates a detection command to perform secondary detection, so that the current data transmission state of the VoWiFi network is accurately judged, unnecessary network switching is reduced, and the accuracy and the effectiveness of the network switching are improved.
Optionally, in this embodiment of the present application, before initiating the detection command in step 201, the network connection method provided in this embodiment of the present application further includes step a of:
step A: and if the electronic equipment meets the preset condition, the network connection device determines that the return trip of the VoWiFi network is interrupted.
In an embodiment of the present application, the predetermined condition includes at least one of: the electronic device fails to send the first information to the network device when the electronic device does not receive the feedback information sent by the network device.
In this embodiment of the application, the first information may be signaling transmitted by the electronic device and the network device in a connection process, or may be data information sent by the electronic device to the network device.
In one example, the signaling is: signaling transmitted between the electronic device and the network device in the process of using VoWiFi based on the existing communication protocol; the data information may be: data information transmitted between different electronic devices during a conversation, for example, voice data packets transmitted between electronic devices during voice communication or video data packets transmitted between electronic devices during video communication.
In this embodiment of the application, the feedback information is feedback information sent to the electronic device by the network device after receiving the first information sent by the electronic device.
In this embodiment of the application, when the electronic device meets the predetermined condition, the electronic device may be automatically triggered to actively initiate a detection command, and further confirm a data transmission state between the electronic device and the network device.
Therefore, by setting the predetermined condition, when the electronic equipment does not meet the predetermined condition, the electronic equipment can be automatically triggered to initiate a detection action, so that the detection condition is added to the data transmission state, the detection frequency is increased, and the time consumed for switching the electronic equipment from the VoWiFi network to the target network when the data transmission is interrupted is further reduced, so that the IMS conversation technology of the electronic equipment can be continuously used, and the efficiency of using the IMS conversation technology by a user is finally improved.
Optionally, in this embodiment of the present application, before initiating the detection command in step a, the network connection method provided in this embodiment of the present application further includes step B:
and B, step B: and the electronic equipment sends second information to the network equipment.
For example, the receiving, by the electronic device, the feedback information sent by the network device includes: and feedback information sent by the network equipment in response to the second information is not received within the preset time.
Optionally, the second information may refer to the description of the first information, and is not described herein again.
For example, the predetermined time period may be set in advance by the electronic device according to a system-set feedback time of the second information. It is understood that, if the second information is information (for example, SIP signaling or RTP/RTCP data) transmitted between the electronic device and the network device, according to a communication protocol followed by the information, after the electronic device sends the information to the network device, the network device needs to send feedback information to the electronic device within a predetermined time.
For example, the predetermined time periods corresponding to different second information may be different. It can be understood that different second information corresponds to different communication protocols, and in different communication protocols, feedback times of predetermined network devices after receiving the second information are different, and thus predetermined time lengths corresponding to different second information may be different.
Therefore, after the electronic device sends the second information, the data transmission state can be confirmed according to the feedback information of the network device to the second information, and the currently connected network type is switched. Since the second information for confirming the data transmission state is information transmitted based on the existing protocol, compared with the related art, the electronic device does not need to increase power consumption, that is, the electronic device can monitor the data transmission state in time without increasing dedicated information for confirming the data transmission state.
Optionally, in this embodiment, the electronic device may send, to the network device, second information that is not identical according to different current use states.
For example, in a case that the electronic device is in a call state, the second information includes at least one of: SIP signaling, IKE signaling, HTTP protocol connection signaling, RTP/RTCP data.
In one example, after the electronic device enters a call state, the electronic device may send voice data or video data of the call to one or more other electronic devices. The voice data or the video data are RTP/RTCP data, the RTP/RTCP data are encapsulated in a data packet, the data packet is transmitted between different electronic devices through a network device, and the electronic devices transmit or receive the RTP/RTCP data at periodic intervals.
Therefore, when the electronic equipment cannot send out the RTP/RTCP data or does not receive the RTP/RTCP data within the preset time, the electronic equipment can be triggered to initiate a detection command to detect the current data transmission state.
In one example, when a session is established, terminated, or modified between an electronic device and another electronic device (e.g., a media parameter between electronic devices changes), the electronic device sends SIP signaling to the network device, and if a data transmission state is normal, the network device feeds back feedback information of the SIP signaling to the electronic device.
Therefore, when the electronic equipment cannot send out the SIP signaling or does not receive the feedback information of the SIP signaling within the preset time, the electronic equipment can be triggered to initiate a detection command to detect the current data transmission state.
In one example, after the electronic device establishes a connection with the network device, IKE signaling is periodically sent to the network device to confirm that the information transmission is secure in the current network connection state.
Therefore, when the electronic equipment cannot send out the IKE signaling or does not receive the feedback information of the IKE signaling within a preset time, the electronic equipment can be triggered to initiate a detection command to detect the current data transmission state.
In one example, when the electronic device needs to initiate a web service through a network device (e.g., view a web page), the electronic device needs to initiate HTTP connection signaling to initiate the web service through the network device.
Therefore, when the electronic equipment cannot initiate the HTTP connection signaling to the network equipment or does not receive the feedback information of the HTTP connection signaling within the preset time, the electronic equipment can be triggered to initiate the detection command to detect the current data transmission state.
For example, in the case that the electronic device is in a non-call state, the second information includes at least one of: the IKE message, and the HTTP protocol connection message.
For example, the IKE signaling and the HTTP protocol connection signaling may refer to the above description, and are not described herein again.
Therefore, after the electronic equipment is connected with the network equipment, when the electronic equipment transmits the second information with the network equipment, the data transmission state between the electronic equipment and the network equipment can be detected in time by detecting the feedback state of the second information, and then the network is switched in time when the data transmission state is interrupted. And, the electronic device can confirm the current data transmission state by using more second information than the non-call state in the call state. Therefore, when the electronic device uses the VoWiFi network to carry out real-time call, if the data transmission state is interrupted, the switching between the VoWiFi network and the target network can be completed in a very short time, the continuity of receiving voice or video images in the call state is maintained, and the seamless switching between different networks is achieved.
Optionally, in this embodiment of the present application, when the second information includes the target data packet, before initiating the detection command in step B, the network connection method provided in this embodiment of the present application further includes step C:
and C: when the electronic device receives a first target data packet, the network connection device starts a timer, and restarts the timer when a next target data packet of the first target data packet is received and the timer is not overtime.
Illustratively, the destination packet may be a packet containing RTP/RTCP data.
For example, the timer may be a time period used in the electronic device to calculate an interval between the electronic device receiving different data packets. It will be appreciated that when the electronic device receives a packet, the time counted before the timer is cleared, and is counted again from 0.
Illustratively, when the first target packet is the electronic device starts a timer, the timer starts to count time from 0 and then receives the first packet.
For example, the timer does not time out, and the target duration of the timer does not exceed the target predetermined duration. The target duration refers to a duration actually calculated by a timer, and the target preset duration may be preset by the electronic device according to a communication protocol.
Example 2: assume that the speed at which the electronic device receives the data packets is 1/second and the target duration set by the timer is 3 seconds. When the electronic equipment receives an RTP/RTCP data packet containing voice data in a call state, the electronic equipment starts a timer when receiving a data packet 1, and starts the timer again when receiving a data packet 2 after 1 second, clears 1 second accumulated and calculated by the previous timer, and counts by 0 again. When the electronic equipment does not receive the data packet 3 within 3 seconds after receiving the data packet 2, a Ping command is initiated, the data transmission state between the network connection device and the network equipment under the VoWiFi network is detected, and when the data transmission state is interrupted, the network connection device switches the currently connected VoWiFi network to the VoLTE network.
Therefore, the electronic equipment sets the target preset time length by setting the timer, and confirms that the subsequent data packet of the target data packet is not received in the target preset time length, so that the data transmission function of the VoWiFi network is determined to be invalid and the VoWiFi network is switched to the target network. Therefore, the trueness and the accuracy of the data transmission state confirmation of the network connection device can be improved.
It should be noted that, in the network connection method provided in the embodiment of the present application, the execution main body may be a network connection device, or a control module in the network connection device, which is used for executing the loading of the network connection method. In the embodiment of the present application, a network connection device is taken as an example to execute a method for loading a network connection, and the network connection method provided in the embodiment of the present application is described.
Fig. 2 is a schematic diagram of a possible structure of a network connection device according to an embodiment of the present disclosure, and as shown in fig. 2, the network connection device 600 includes: the obtaining module 601 and the executing module 602: the obtaining module 601 is configured to, when the electronic device is connected to the VoWiFi network, initiate a detection command if it is detected that the backhaul of the VoWiFi network is interrupted, to obtain a detection result, where the detection result is used to indicate a data transmission state between the electronic device and the VoWiFi network; the executing module 602 is configured to switch the electronic device from the VoWiFi network to a target network if the data transmission status acquired by the acquiring module 601 is an interruption status.
Optionally, in this embodiment of the application, the network connection apparatus 600 further includes a determining module 603: the determining module 603 is configured to determine that the backhaul of the VoWiFi network is interrupted if a predetermined condition is met; wherein the predetermined condition comprises at least one of: the electronic device fails to send the first information to the network device when the electronic device does not receive the feedback information sent by the network device.
Optionally, in this embodiment of the application, the network connection apparatus 600 further includes a sending module 604: the sending module 604 is configured to send second information to the network device; wherein, the electronic device not receiving the feedback information sent by the network device includes: and feedback information sent by the network equipment in response to the second information is not received within a preset time length.
Optionally, in this embodiment of the application, in a case that the electronic device is in a non-call state, the second information includes at least one of: session initiation protocol SIP signaling, internet key exchange protocol IKE information, hypertext transfer protocol HTTP protocol connection signaling, RTP/RTCP data; when the electronic device is in a call state, the second information includes at least one of: the IKE signaling and the HTTP protocol connection signaling are used for carrying out the IKE signaling.
Optionally, in this embodiment of the application, the executing module 602 is further configured to start a timer when the electronic device receives a first target data packet, and restart the timer when a next target data packet of the first target data packet is received and the timer is not overtime.
The network connection device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The network connection device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system (Android), an iOS operating system, or other possible operating systems, which is not specifically limited in the embodiments of the present application.
The network connection device provided in the embodiment of the present application can implement each process implemented by the network connection device in the method embodiment of fig. 1, and is not described herein again to avoid repetition.
In the network connection device provided in the embodiment of the application, when the electronic device is connected to the VoWiFi network, if the electronic device detects that the backhaul of the VoWiFi network is interrupted, the electronic device will initiate a detection command to detect the data transmission state of the VoWiFi network, and then obtain a detection result, and when the data transmission state is the interrupted state, the electronic device will be switched from the VoWiFi network to the target network. Therefore, when the electronic equipment detects that the return trip of the VoWiFi network is interrupted, the electronic equipment initiates a detection command to perform secondary detection, so that the current data transmission state of the VoWiFi network is accurately judged, unnecessary network switching is reduced, and the accuracy and the effectiveness of the network switching are improved.
Optionally, an electronic device is further provided in this embodiment of the present application, including a processor 1010, a memory 1009, and a program or an instruction stored in the memory 1009 and capable of running on the processor 1010, where the program or the instruction is executed by the processor 1010 to implement each process of the foregoing network connection method embodiment, and can achieve the same technical effect, and details are not described here to avoid repetition.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
Fig. 3 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 1000 includes, but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010.
Those skilled in the art will appreciate that the electronic device 1000 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 1010 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 3 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The processor 1010 is configured to, when the network connection device is connected to the VoWiFi network, initiate a detection command if it is detected that a backhaul of the VoWiFi network is interrupted, to obtain a detection result, where the detection result is used to indicate a data transmission state between the network connection device and the VoWiFi network; and the network connection device is further configured to switch the network connection device from the VoWiFi network to a target network if the data transmission state acquired by the acquisition module is an interruption state.
Optionally, the processor 1010 is further configured to determine that the backhaul of the VoWiFi network is interrupted if a predetermined condition is met; wherein the predetermined condition comprises at least one of: the network connection device does not receive the feedback information sent by the network equipment, and the network connection device fails to send the first information to the network equipment.
Optionally, the radio frequency unit 1001 is configured to send second information to the network device; wherein the network connection device does not receive the feedback information sent by the network equipment and includes: and feedback information sent by the network equipment in response to the second information is not received within a preset time.
Optionally, the processor 1010 is further configured to start a timer when the network connection device receives a first target data packet, and restart the timer when a next target data packet of the first target data packet is received and the timer is not timed out.
In the electronic device provided in the embodiment of the application, when the electronic device is connected to the VoWiFi network, if the electronic device detects that the backhaul of the VoWiFi network is interrupted, the electronic device initiates a detection command to detect the data transmission state of the VoWiFi network, and then obtains a detection result, and when the data transmission state is the interrupted state, the electronic device is switched from the VoWiFi network to the target network. Therefore, when the electronic equipment detects that the return trip of the VoWiFi network is interrupted, the electronic equipment initiates a detection command to perform secondary detection, so that the current data transmission state of the VoWiFi network is accurately judged, unnecessary network switching is reduced, and the accuracy and the effectiveness of the network switching are improved.
The embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the foregoing network connection method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the foregoing network connection method embodiment, and can achieve the same technical effect, and in order to avoid repetition, the details are not repeated here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application or portions thereof that contribute to the prior art may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A method of network connectivity, the method comprising:
under the condition that the electronic equipment is connected to a VoWiFi network, if the return trip interruption of the VoWiFi network is detected, initiating a detection command to obtain a detection result, wherein under the condition that the return trip of the VoWiFi network is interrupted, the network connection between the electronic equipment and the network equipment is not interrupted, but the electronic equipment and the network equipment cannot use the VoWiFi network for data transmission; the detection command is used for detecting the connection state between the electronic equipment and the network equipment; the detection result is used for indicating the data transmission state between the electronic equipment and the VoWiFi network;
and if the data transmission state is an interruption state, switching the electronic equipment from the VoWiFi network to a target network.
2. The method of claim 1, wherein prior to the initiating the detection command, the method further comprises:
if a preset condition is met, determining that the return trip of the VoWiFi network is interrupted;
wherein the predetermined condition comprises at least one of: the electronic equipment fails to send the first information to the network equipment when not receiving the feedback information sent by the network equipment.
3. The method of claim 2, further comprising:
sending second information to the network device;
wherein the electronic device does not receive the feedback information sent by the network device includes: and feedback information sent by the network equipment in response to the second information is not received within a preset time.
4. The method of claim 3,
in a case that the electronic device is in a call state, the second information includes at least one of: session Initiation Protocol (SIP) messages, internet key exchange protocol (IKE) messages, hypertext transfer protocol (HTTP) protocol connection messages and real-time transport protocol (RTP)/RTCP data;
in a case that the electronic device is in a non-call state, the second information includes at least one of: the IKE message, the HTTP protocol connection message.
5. The method according to any one of claims 1 to 4, wherein the second information comprises a target data packet, the second information is information sent by the electronic device to the network device, and before the initiating the detection command, the method further comprises:
when the electronic equipment receives a first target data packet, starting a timer, and restarting the timer when a next target data packet of the first target data packet is received and the timer is not overtime;
if detecting that the backhaul of the VoWiFi network is interrupted, initiating a detection command, including:
and if the return trip interruption of the VoWiFi network is detected within the timing duration of the timer, initiating a detection command.
6. A network connection device is characterized by comprising an acquisition module and an execution module:
the acquisition module is used for initiating a detection command to obtain a detection result if the return trip of the VoWiFi network is detected to be interrupted under the condition that the electronic equipment is connected to the VoWiFi network, wherein under the condition that the return trip of the VoWiFi network is interrupted, the network connection between the electronic equipment and the network equipment is not interrupted, but the electronic equipment and the network equipment cannot use the VoWiFi network for data transmission; the detection command is used for detecting the connection state between the electronic equipment and the network equipment; the detection result is used for indicating the data transmission state between the electronic equipment and the VoWiFi network;
the execution module is configured to switch the electronic device from the VoWiFi network to a target network if the data transmission state acquired by the acquisition module is an interruption state.
7. The network connection device of claim 6, further comprising a determination module to:
the determining module is used for determining that the return trip of the VoWiFi network is interrupted if a preset condition is met;
wherein the predetermined condition comprises at least one of: the electronic equipment fails to send the first information to the network equipment when not receiving the feedback information sent by the network equipment.
8. The network connection device of claim 7, further comprising a sending module:
the sending module is used for sending second information to the network equipment;
wherein the electronic device does not receive the feedback information sent by the network device includes: and feedback information sent by the network equipment in response to the second information is not received within a preset time length.
9. The network connection apparatus according to claim 8, wherein in a case where the electronic device is in a call state, the second information includes at least one of: session Initiation Protocol (SIP) messages, internet key exchange protocol (IKE) messages, hypertext transfer protocol (HTTP) protocol connection messages and real-time transport protocol (RTP)/RTCP data;
in a case that the electronic device is in a non-call state, the second information includes at least one of: the IKE message, the HTTP protocol connect message.
10. The network connection apparatus according to any one of claims 6 to 9, wherein the second information comprises a destination packet, the second information is information sent by the electronic device to the network device,
the execution module is further configured to start a timer when the electronic device receives a first target data packet before initiating the detection command, and restart the timer when a next target data packet of the first target data packet is received and the timer is not overtime.
CN202010450923.2A 2020-05-25 2020-05-25 Network connection method and device Active CN111586782B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010450923.2A CN111586782B (en) 2020-05-25 2020-05-25 Network connection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010450923.2A CN111586782B (en) 2020-05-25 2020-05-25 Network connection method and device

Publications (2)

Publication Number Publication Date
CN111586782A CN111586782A (en) 2020-08-25
CN111586782B true CN111586782B (en) 2022-12-02

Family

ID=72116371

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010450923.2A Active CN111586782B (en) 2020-05-25 2020-05-25 Network connection method and device

Country Status (1)

Country Link
CN (1) CN111586782B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111970735B (en) * 2020-08-27 2023-12-26 北京中科晶上科技股份有限公司 Data transmission method and device and VoWiFi communication method
CN112492654A (en) * 2020-11-16 2021-03-12 北京小米移动软件有限公司 Network control method, device and storage medium
CN113055856B (en) * 2021-03-05 2022-11-25 展讯通信(上海)有限公司 Network residing method and device of 5G terminal supporting VoWIFI (Voice over Wireless Fidelity), storage medium and terminal
CN115087049A (en) * 2021-03-10 2022-09-20 深圳市万普拉斯科技有限公司 Network switching method, device, terminal equipment and storage medium
CN113453299A (en) * 2021-06-16 2021-09-28 深圳市元征未来汽车技术有限公司 Network switching method, network switching device, electronic equipment and storage medium
CN115190553A (en) * 2022-08-11 2022-10-14 维沃移动通信有限公司 Call processing method and device, electronic equipment and storage medium
CN115209503A (en) * 2022-08-16 2022-10-18 Oppo广东移动通信有限公司 Method and device for realizing switching between networks and electronic equipment
CN116614786B (en) * 2023-07-14 2023-10-31 中国电信股份有限公司 Switching method and device of voice call network, electronic equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109429253A (en) * 2017-07-17 2019-03-05 展讯通信(上海)有限公司 WiFi access point falls the method, apparatus and terminal of net detection under VoWiFi business

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8630637B2 (en) * 2008-05-15 2014-01-14 Microsoft Corporation Inter-controller roam management and prediction for voice communications
CN105873157A (en) * 2015-11-13 2016-08-17 乐视移动智能信息技术(北京)有限公司 Automatic network switching method and device, and mobile terminal
CN107277881A (en) * 2017-08-04 2017-10-20 广东欧珀移动通信有限公司 Method for switching network, network switching device and intelligent terminal
CN109831341B (en) * 2019-03-19 2021-10-15 中国电子科技集团公司第三十六研究所 Method and device for rapidly switching redundant double network cards

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109429253A (en) * 2017-07-17 2019-03-05 展讯通信(上海)有限公司 WiFi access point falls the method, apparatus and terminal of net detection under VoWiFi business

Also Published As

Publication number Publication date
CN111586782A (en) 2020-08-25

Similar Documents

Publication Publication Date Title
CN111586782B (en) Network connection method and device
USRE49636E1 (en) Method and apparatus of improving quality of calls in mobile communication system
CN107172664B (en) Data transmission method, device and system
US7231223B2 (en) Push-to-talk call setup for a mobile packet data dispatch network
US10149346B2 (en) Method and apparatus for establishing volte call
JP6068648B2 (en) Method, associated apparatus and system for quickly establishing a trunking service
CN113242583B (en) Calling method, terminal and network equipment
WO2022257851A1 (en) Voice call method and voice call apparatus
CN105516640A (en) Method and system for detecting abnormality of video communication conversation
WO2023030384A1 (en) Ims network registration method and apparatus, and electronic device
CN113038518B (en) Network registration method and device and user equipment
CN112153016B (en) Network communication method and device
CN115720193A (en) Multicast-based software deployment method and device
EP3783953B1 (en) Method and system for automatically resuming call after network handover
US9035993B2 (en) Method and system for bypassing an anchor point
KR101544439B1 (en) Apparatus and method for identifying the network connection status in portable terminal
KR100882903B1 (en) System and method for call setup in voip network
WO2024078493A1 (en) Paging method and apparatus, and electronic device and storage medium
CN112616167B (en) Switching method and device
US11444858B2 (en) Disconnection monitoring terminating device and disconnection monitoring method
CN117240827A (en) IMS call establishment method, terminal, server, electronic equipment and storage medium
Basavaraj et al. Efficient Elevator Mode Protocol to Recover Active calls from Transient Network Outages
CN114268610A (en) IP multimedia subsystem IMS suspension method, device and equipment
KR20080091894A (en) A method and a system for managing internet protocol multimedia subsystem session in a user equipment
JP2001156851A (en) Communication method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant