WO2022183550A1 - Network switching method, storage medium, and gateway device - Google Patents

Network switching method, storage medium, and gateway device Download PDF

Info

Publication number
WO2022183550A1
WO2022183550A1 PCT/CN2021/083473 CN2021083473W WO2022183550A1 WO 2022183550 A1 WO2022183550 A1 WO 2022183550A1 CN 2021083473 W CN2021083473 W CN 2021083473W WO 2022183550 A1 WO2022183550 A1 WO 2022183550A1
Authority
WO
WIPO (PCT)
Prior art keywords
network
mobile terminal
capability
attribute value
identification result
Prior art date
Application number
PCT/CN2021/083473
Other languages
French (fr)
Chinese (zh)
Inventor
杜凯
杨丽娜
Original Assignee
惠州Tcl移动通信有限公司
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 惠州Tcl移动通信有限公司 filed Critical 惠州Tcl移动通信有限公司
Publication of WO2022183550A1 publication Critical patent/WO2022183550A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities
    • H04W8/24Transfer of terminal data
    • 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
    • H04W36/0033Control or signalling for completing the hand-off for data sessions of end-to-end connection with transfer of context information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/14Reselecting a network or an air interface

Definitions

  • the present application relates to the field of communication technologies, and in particular, to a network switching method, a storage medium, and a gateway device.
  • the embodiments of the present application provide a network switching method, a storage medium, and a gateway device, which can avoid the problem that network switching takes a long time due to the excessive number of interactions between the mobile terminal and the gateway device during the network switching process, and improve the performance of network switching. speed.
  • An embodiment of the present application provides a network switching method, which is applied to a gateway device, and the method includes:
  • Whether to switch the mobile terminal from the current network to the 5G network is determined according to the identification result.
  • the 5G capability attribute information includes attribute values
  • Identifying the 5G capability attribute information of the mobile terminal to obtain an identification result including:
  • the attribute value is the second attribute value, it is determined that the identification result is that the mobile terminal does not support the 5G capability information.
  • the attribute value includes at least one bit
  • the identifying the attribute value includes:
  • the attribute value is determined to be the second attribute value.
  • the switching of the network of the mobile terminal according to the identification result includes:
  • the identification result is that the mobile terminal supports 5G capability information, switching the mobile terminal from the current network to the 5G network;
  • the mobile terminal is switched from the current network to another network.
  • the current network is a VoWIFI network
  • the other network is a 4G network
  • the current network is a 4G network
  • the other network is a VoWIFI network
  • the 5G capability attribute information is identified by a number used for assigning attribute information in the Internet Key Exchange Protocol, and the value range of the number is 27-16383.
  • identifying the 5G capability attribute information of the mobile terminal to obtain an identification result includes:
  • the stored 5G capability attribute information is identified to obtain an identification result.
  • the embodiment of the present application also provides a network switching apparatus, which is applied to a gateway device, and the apparatus includes:
  • a receiving module configured to receive an authentication message sent by a mobile terminal, where the authentication message includes 5G capability attribute information of the mobile terminal;
  • an identification module configured to identify the 5G capability attribute information of the mobile terminal to obtain an identification result
  • a switching module configured to determine whether to switch the mobile terminal from the current network to the 5G network according to the identification result.
  • the switching module is specifically used for:
  • the identification result is that the mobile terminal supports 5G capability information, switching the mobile terminal from the current network to the 5G network;
  • the mobile terminal is switched from the current network to another network.
  • Embodiments of the present application also provide a computer-readable storage medium, where a plurality of instructions are stored in the storage medium, and the instructions are suitable for being loaded by a processor to execute:
  • Whether to switch the mobile terminal from the current network to the 5G network is determined according to the identification result.
  • the 5G capability attribute information includes attribute values
  • Identifying the 5G capability attribute information of the mobile terminal to obtain an identification result including:
  • the attribute value is the second attribute value, it is determined that the identification result is that the mobile terminal does not support the 5G capability information.
  • the attribute value includes at least one bit
  • the identifying the attribute value includes:
  • the attribute value is determined to be the second attribute value.
  • the determining whether to switch the mobile terminal from the current network to the 5G network according to the identification result includes:
  • the identification result is that the mobile terminal supports 5G capability information, switching the mobile terminal from the current network to the 5G network;
  • the mobile terminal is switched from the current network to another network.
  • the current network is a VoWIFI network
  • the other network is a 4G network
  • the current network is a 4G network
  • the other network is a VoWIFI network
  • the 5G capability attribute information is identified by a number used for assigning attribute information in the Internet Key Exchange Protocol, and the value range of the number is 27-16383.
  • identifying the 5G capability attribute information of the mobile terminal to obtain an identification result includes:
  • the stored 5G capability attribute information is identified to obtain an identification result.
  • An embodiment of the present application further provides a gateway device, including a processor and a memory, the processor is electrically connected to the memory, the memory is used for storing instructions and data, and the processor is used for executing:
  • Whether to switch the mobile terminal from the current network to the 5G network is determined according to the identification result.
  • the 5G capability attribute information includes attribute values
  • Identifying the 5G capability attribute information of the mobile terminal to obtain an identification result including:
  • the attribute value is the second attribute value, it is determined that the identification result is that the mobile terminal does not support the 5G capability information.
  • the attribute value includes at least one bit
  • the identifying the attribute value includes:
  • the attribute value is determined to be the second attribute value.
  • the determining whether to switch the mobile terminal from the current network to the 5G network according to the identification result includes:
  • the identification result is that the mobile terminal supports 5G capability information, switching the mobile terminal from the current network to the 5G network;
  • the mobile terminal is switched from the current network to another network.
  • the current network is a VoWIFI network
  • the other network is a 4G network
  • the current network is a 4G network
  • the other network is a VoWIFI network
  • the 5G capability attribute information is identified by a number used for assigning attribute information in the Internet Key Exchange Protocol, and the value range of the number is 27-16383.
  • the embodiments of the present application provide a network switching method, a storage medium, and a gateway device, which receive an authentication message sent by a mobile terminal, where the authentication message includes 5G capability attribute information of the mobile terminal, and then identify the 5G capability attribute information of the mobile terminal to obtain The identification result, and finally judge whether to switch the mobile terminal from the current network to the 5G network according to the identification result, which can avoid the problem that the network switching takes a long time due to the excessive interaction between the mobile terminal and the gateway device during the network switching process. Improve the speed of network switching.
  • FIG. 1 is a schematic flowchart of a network switching method provided by an embodiment of the present application.
  • FIG. 2 is a schematic diagram of a network switching scenario provided by an embodiment of the present application.
  • FIG. 3 is another schematic flowchart of a network switching method provided by an embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of a network switching apparatus according to an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of a gateway device provided by an embodiment of the present application.
  • FIG. 6 is another schematic structural diagram of a gateway device provided by an embodiment of the present application.
  • Embodiments of the present application provide a network switching method, a storage medium, and a gateway device.
  • FIG. 1 is a schematic flowchart of a network switching method provided by an embodiment of the present application.
  • the network switching method is applied to a gateway device, and the gateway device may include an ePDG (Evolved Packet Data Gateway, Evolved Packet Data Gateway).
  • ePDG Evolved Packet Data Gateway, Evolved Packet Data Gateway
  • the specific process of the network switching method may be as follows:
  • S101 Receive an authentication message sent by a mobile terminal, where the authentication message includes 5G capability attribute information of the mobile terminal.
  • the mobile terminal When the mobile terminal turns on the network, that is, when the mobile terminal enters the network connection state from the state of no network connection, the mobile terminal is connected to the network in the network environment where the mobile terminal is currently located. In this process, the mobile terminal needs to send the authentication to the gateway device. information.
  • the authentication message may be an IKE_AUTH (IKE authentication) message, which is used to complete IKE authentication and negotiate IPsec SA.
  • IKE authentication IKE authentication
  • IPSec Internet Protocol Security
  • the response device for example, the server
  • the security guarantee is provided through the IKE tunnel. It can negotiate parameters such as security protocols, algorithms, and keys for IPSec tunnels.
  • IKEv2 Internet Key Exchange Version 2, Internet Key Exchange Protocol Version 2 protocol specifies that when a mobile terminal initiates an IPsec communication request to a responding device through a gateway device, it needs to complete at least four packet exchanges.
  • the first two packet messages are: IKE_SA (Security Association, Security Association) _INIT (IKE SA initialization) is used to complete IKE key material exchange, and the last two messages: IKE_AUTH are used to complete IKE authentication and negotiate IPSec SA.
  • the mobile terminal enters the network registration process when the network is turned on.
  • the mobile terminal needs to interact with the gateway device to complete the above-mentioned four message interactions.
  • the mobile terminal needs to interact with the gateway device.
  • the 5G capability information reported to the gateway device is attached to the authentication message, reducing the number of interactions between the mobile terminal and the gateway device.
  • the mobile terminal enters the VoWIFI network registration process when the VoWIFI network is enabled.
  • the mobile terminal needs to send an IKE_AUTH message to the ePDG.
  • the IKE_AUTH message includes the 5G capability attribute information of the mobile terminal and is used to report the 5G capability to the ePDG.
  • the 5G capability information can be reported to the ePDG when the mobile terminal turns on the VoWIFI network, and the mobile terminal does not need to interact with the ePDG during the subsequent network switching, which reduces the number of interactions between the mobile terminal and the ePDG.
  • step S101 it also includes:
  • the gateway device Since the attribute type of the IKEv2 protocol is currently not configured with an identifier used to represent the 5G capability attribute information, the gateway device needs to set the identifier used to represent the 5G capability attribute information in the IKEv2 protocol in advance.
  • the mobile terminal stores the identifier of the 5G capability attribute information sent by the gateway device after receiving it.
  • the 5G capability attribute information may include attribute values, that is, the mobile terminal can use the attribute value to represent the 5G capability attribute information, that is, the attribute value can be used to indicate whether the mobile terminal supports the 5G capability information, that is, whether the mobile terminal supports the 5G network.
  • After the mobile terminal sets the attribute value according to its own 5G capability attribute it writes the attribute value and the identifier of the 5G capability attribute information into the authentication message, and reports it to the gateway device.
  • the gateway device Since the identifier of the 5G capability attribute information has been stored in the gateway device, after receiving the authentication message sent by the mobile terminal, the gateway device obtains the identifier representing the 5G capability attribute information in the authentication message, and then identifies the attribute value corresponding to the identifier. , the obtained identification result can be used to determine whether the mobile terminal supports a 5G network, and optionally, the identification result can be stored to facilitate subsequent network switching operations of the mobile terminal by the gateway device according to the identification result.
  • step S102 may specifically include:
  • the attribute value is the first attribute value, it is determined that the identification result is the mobile terminal supporting 5G capability information;
  • the attribute value is the second attribute value, it is determined that the identification result is that the mobile terminal does not support 5G capability information.
  • the first attribute value and the second attribute value can be preset, and the first attribute value and the second attribute value can be any identifiers, for example, the first attribute value can be 1, D or n, and the second attribute value can be is b, 9 or H.
  • the attribute value includes at least one bit, different bits can represent different 5G information parameters of the mobile terminal, and the value of each bit can be 1 or 0.
  • the attribute value includes 8 bits. A preset bit is selected from these 8 bits to indicate whether the mobile terminal supports 5G capability information. If the value of the preset bit is 1, it is determined that the attribute value is the first attribute value. If the value of is 0, it is determined that the attribute value is the second attribute value. For example, the first bit of the 8 bits is selected to indicate whether the mobile terminal supports 5G capability information. When the value of the first bit is identified as 1, it is determined that the attribute value is the first attribute value, indicating that The mobile terminal supports 5G capability information. Similarly, if the value of the first bit is identified as 0, it is determined that the attribute value is the second attribute value, indicating that the mobile terminal does not support 5G capability information.
  • bits other than the preselected bits can also be used as reserved bits. If the mobile terminal needs to report the parameters of other 5G information to the gateway device in the future, these reserved bits can be directly used to represent the reserved bits.
  • the default setting is 0 when the 5G information parameter needs to be represented.
  • a reserved bit can be used to indicate the 5G network frequency band supported by the mobile terminal.
  • the 5G network frequency band supported by the mobile terminal is divided into the Sub-6GHz frequency band and the millimeter wave frequency band. It is used to indicate the 5G network frequency band supported by the mobile terminal.
  • the second bit indicates whether the mobile terminal supports the Sub-6GHz frequency band
  • the third bit indicates whether the mobile terminal supports the millimeter wave frequency band.
  • S103 Determine whether to switch the mobile terminal from the current network to the 5G network according to the identification result.
  • the mobile terminal When the mobile terminal needs to switch networks, the mobile terminal is switched from the first network (the network to which the mobile terminal is currently connected) to the second network. Specifically, in the process of switching networks, the gateway device needs to first select a serving gateway (for example, PGW (Packet Data Network GateWay, packet data network gateway) + SMF (Session Management Function, session management function)/UPF (User Plane Function, user plane function)), then the service gateway initiates the request process for establishing a service session and obtains the corresponding network resources (such as IP address, access mode), and finally delivers these network resources to the mobile terminal, and the mobile terminal Data transmission related to network services can be performed through the allocated network resources.
  • a serving gateway for example, PGW (Packet Data Network GateWay, packet data network gateway) + SMF (Session Management Function, session management function)/UPF (User Plane Function, user plane function)
  • PGW Packet Data Network GateWay, packet data network gateway
  • SMF
  • the PGW is the border gateway of the EPC network, providing user session management and bearer control, data forwarding, IP address allocation, and non-3GPP user access
  • SMF is the session management function corresponding to the mobile terminal in the 5G scenario.
  • Network element UPF is 3GPP (3rd Generation The basic components of the 5G core network infrastructure system architecture defined by the Partnership Project.
  • the mobile terminal can send a network switching request to the gateway device.
  • the network switching request may be triggered by the user's operation, or may be automatically triggered by the mobile terminal according to the detected network environment.
  • FIG. 2 which is a schematic diagram of a network switching scenario provided by an embodiment of the present application
  • the network currently used by the mobile phone used by the user is the VoWIFI network, but the VoWIFI network is found to be delayed and stuck during use.
  • the mobile terminal sends a network switching request to the gateway device.
  • step S103 specifically further includes:
  • the mobile terminal is switched from the current network to another network.
  • the serving gateway eg PGW+SMF/UPF gateway
  • PGW+SMF/UPF gateway will allocate network resources to the mobile terminal, and if the serving gateway used before and after the switching is the same, there is no need to re-configure the mobile terminal after switching the network.
  • the terminal allocates network resources, which can ensure the continuity of network handover.
  • the gateway device When the identification result is that the mobile terminal supports 5G capability information, that is, when the mobile terminal supports a 5G network, if the first network used by the mobile terminal is a 4G network or a VoWIFI network, the gateway device will switch the mobile terminal from the first network to the second network. Second network, the second network at this time is the 5G network.
  • the gateway device Since the service gateways of the 4G network, VoWIFI network, and 5G network are the same, switching the 4G network or VoWIFI network to the 5G network can ensure the continuity of network switching, and the gateway device does not need to re-allocate network resources to the mobile terminal. If the first network used by the mobile terminal is a network other than the 4G network or the VoWIFI network, since the first network is inconsistent with the serving gateway of the 5G network, the gateway device needs to re-allocate network resources to the mobile terminal.
  • the mobile terminal preferentially selects the network with the same serving gateway for switching.
  • the gateway device can query Whether the current environment of the mobile terminal has the same network as the service gateway of the first network, if so, and the network quality is good, the network is used as the second network, if the same service as the first network is not found. If the quality of the network of the gateway or the queried network is poor, the network with different serving gateways is used as the second network.
  • the first network used by the mobile terminal is the 4G network
  • the gateway device finds that the VoWIFI network and the 4G network have the same service gateway, so the VoWIFI network is used as the second network, and the 4G network is switched to the VoWIFI network.
  • the first network used by the mobile terminal is the VoWIFI network.
  • the gateway device uses the 4G network as the second network and switches the VoWIFI network to the 4G network. Since the 4G network and the VoWIFI network have the same service gateway, there is no need to re-allocate the network to the mobile terminal. resources to ensure the continuity of network switching.
  • the mobile terminal since the mobile terminal enters the network registration process when the VoWIFI network is turned on, the mobile terminal will send authentication information to the gateway device during the registration process, that is, before the mobile terminal sends a network switching request, the gateway device has obtained the mobile terminal
  • the identification result reported by the gateway device supports 5G capability information, so when the mobile terminal sends a network switching request to the gateway device to switch to the 5G network, the gateway device directly selects the corresponding network for the mobile terminal according to the previously obtained identification result, that is, It is no longer necessary to report 5G capability information to the gateway device separately, which reduces the number of interactions between the mobile terminal and the gateway device, and improves the speed of network switching.
  • FIG. 3 is another schematic flowchart of a network switching method provided by an embodiment of the present application, and the specific process may be as follows:
  • “27” is selected from the field 27-16383 in the IKEv2 protocol as the identifier of the 5G capability attribute information, and the corresponding relationship between "27" and the 5G capability attribute information is sent to the mobile terminal.
  • S202 Receive an authentication message sent by the mobile terminal, where the authentication message includes 5G capability attribute information, where the 5G capability attribute information may include an attribute value.
  • the mobile terminal After receiving the correspondence between "27" sent by the gateway device and the 5G capability attribute information, the mobile terminal sets an attribute value for the 5G capability attribute information.
  • the attribute value is 8 bits, and the first bit is used to indicate whether to support 5G capability information, the second bit is used to indicate whether the Sub-6GHz frequency band is supported, the third bit is used to indicate whether the millimeter wave frequency band is supported, the other bits are reserved bits, and the 5G capability attribute of the attribute value will be set
  • the information is sent to the gateway device through an authentication message.
  • the set attribute values can be the following five cases: 10000000 (supports 5G capability information), 00000000 (does not support 5G capability information), 11000000 (supports 5G capability information and supports Sub-6GHz frequency band), 10100000 (supports 5G capability information) information and support millimeter wave band), 11100000 (support 5G capability information and support Sub-6GHz band and millimeter wave band).
  • the first attribute value indicates that the mobile terminal supports 5G capability information
  • the second attribute value indicates that the mobile terminal does not support 5G capability information.
  • the network currently used by the mobile terminal is the VoWIFI network
  • the screen of the mobile terminal displays the VoWIFI logo 2002.
  • the gateway device When the user clicks the 5G network control 2003 on the network setting interface 2001, the mobile terminal responds to this operation and sends a message to the gateway device.
  • Network handover request the gateway device immediately identifies the attribute value in the 5G capability attribute information, and when the attribute value is 10100000 (supports 5G capability information and supports millimeter wave frequency band), determines that the attribute value is the first attribute value, and executes the steps 204.
  • the attribute value is 00000000 (5G capability information is not supported)
  • the recognition result can be stored to the ePDG.
  • the serving gateway used by the VoWIFI network currently selected by the mobile terminal is PGW+SMF/UPF, and the IP address assigned by the PGW+SMF/UPF to the mobile terminal is 192.168.0.107.
  • the network is switched to the 5G network, the network ID displayed on the screen of the mobile terminal is changed from VoWIFI network ID 2002 to "5G+" (network ID supporting millimeter wave band) network ID 2004, and PGW+SMF/UPF is selected as the service gateway of the 5G network.
  • the service gateway will send the IP address 192.168.0.107 to the mobile terminal, and the mobile terminal can use the IP address of 192.168.0.107 to access the server and realize data exchange of services such as 5G voice sessions.
  • the VoWIFI network currently selected by the mobile terminal, and the service gateway used by the VoWIFI network is PGW+SMF/UPF
  • the service gateway used by the ePDG to query the 4G network is also PGW+SMF/UPF.
  • the continuity of the network switching, so the priority is to select the 4G network for the mobile terminal.
  • the network logo displayed on the mobile terminal screen changes from the VoWIFI network logo 2002 to the 4G network logo 2005.
  • the network setting interface 2001 displays "Network setting failed: This device cannot be connected.
  • the 4G network has been selected by default", because the VoWIFI network and the 4G network use the same PGW+SMF/UPF, the mobile terminal can directly use the IP address of 192.168.0.107 to access the server and realize the data of the 4G network service. interact.
  • the mobile terminal is switched to another network by default, the user can also change the network on the network setting page 2001 by himself.
  • the network switching method provided by the present application is applied to a gateway device.
  • an authentication message sent by a mobile terminal is received, and the authentication message includes the 5G capability attribute information of the mobile terminal, and then the 5G capability attribute information of the mobile terminal is identified. Obtain the identification result, and finally determine whether to switch the mobile terminal from the current network to the 5G network according to the identification result.
  • the 5G capability attribute information By attaching the 5G capability attribute information to the authentication message for reporting, it can avoid the interaction between the mobile terminal and the gateway device during the network switching process.
  • the problem of network switching time-consuming caused by too many times increases the speed of network switching.
  • the network switching device can be specifically implemented as an independent entity, or can be integrated in a gateway device.
  • the gateway device may have The device of the ePDG gateway.
  • FIG. 4 specifically describes the network switching device provided by the embodiment of the present application, which is applied to a gateway device.
  • the network switching device may include: a receiving module 10, an identification module 20, and a switching module 30, wherein:
  • the receiving module 10 is configured to receive an authentication message sent by the mobile terminal, where the authentication message includes 5G capability attribute information of the mobile terminal.
  • the identification module 20 is used to identify the 5G capability attribute information of the mobile terminal to obtain an identification result.
  • the switching module 30 is configured to determine whether to switch the mobile terminal from the current network to the 5G network according to the identification result.
  • the 5G capability attribute information includes an attribute value
  • the 5G capability attribute information is identified by a number used for assigning attribute information in the Internet Key Exchange Protocol, and the value of the number ranges from 27 to 16383.
  • the identification module 20 is also used to:
  • the attribute value is the second attribute value, it is determined that the identification result is that the mobile terminal does not support the 5G capability information.
  • the attribute value includes at least one bit
  • the identifying the attribute value includes:
  • the attribute value is determined to be the second attribute value.
  • the switching module 30 is also used to:
  • the identification result is that the mobile terminal supports 5G capability information, switching the mobile terminal from the current network to the 5G network;
  • the mobile terminal is switched from the current network to another network.
  • the current network is a VoWIFI network, and the other network is a 4G network; or the current network is a 4G network, and the other network is a VoWIFI network.
  • the network switching device provided in this application is applied to a gateway device.
  • the authentication message sent by the mobile terminal is received by the receiving module 10, and the authentication message includes the 5G capability attribute information of the mobile terminal. Identify the 5G capability attribute information of the mobile terminal, and obtain the identification result.
  • the switching module 30 judges whether to switch the mobile terminal from the current network to the 5G network according to the identification result.
  • an embodiment of the present invention further provides a network switching system, including any network switching initiating apparatus provided in the embodiment of the present invention, and the network switching apparatus may be integrated in a gateway device.
  • the authentication message sent by the mobile terminal is received, and the authentication message includes the 5G capability attribute information of the mobile terminal; the 5G capability attribute information of the mobile terminal is identified to obtain an identification result; according to the identification result, it is determined whether the mobile terminal is to be registered by the current network Switch to 5G network.
  • the network switching system may include any network switching device provided by the embodiment of the present invention
  • the beneficial effects that can be achieved by any network switching device provided by the embodiment of the present invention can be achieved.
  • an embodiment of the present application further provides a gateway device, where the gateway device may be a device having an ePDG gateway.
  • the gateway device 200 includes a processor 201 and a memory 202 .
  • the processor 201 is electrically connected to the memory 202 .
  • the processor 201 is the control center of the gateway device 200, uses various interfaces and lines to connect various parts of the entire gateway device, executes the gateway by running or loading the application program stored in the memory 202, and calling the data stored in the memory 202. Various functions of the device and processing data, so as to monitor the gateway device as a whole.
  • the processor 201 in the gateway device 200 loads the instructions corresponding to the processes of one or more application programs into the memory 202 according to the following steps, and the processor 201 executes the instructions stored in the memory 202 applications in , so as to achieve various functions:
  • the identification result it is determined whether to switch the mobile terminal from the current network to the 5G network.
  • FIG. 6 shows a specific structural block diagram of a gateway device provided by an embodiment of the present invention, and the gateway device can be used to implement the network switching method provided in the foregoing embodiment.
  • the gateway device 300 may be a device with an ePDG gateway.
  • the RF circuit 310 is used for receiving and sending electromagnetic waves, realizing mutual conversion between electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices.
  • RF circuitry 310 may include various existing circuit elements for performing these functions, eg, antennas, radio frequency transceivers, digital signal processors, encryption/decryption chips, subscriber identity module (SIM) cards, memory, and the like.
  • the RF circuit 310 may communicate with various networks such as the Internet, an intranet, a wireless network, or with other devices over a wireless network.
  • the aforementioned wireless network may include a cellular telephone network, a wireless local area network, or a metropolitan area network.
  • the above-mentioned wireless networks can use various communication standards, protocols and technologies, including but not limited to the Global System for Mobile Communications (Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), Wideband Code Division Multiple Access (Wideband Code) Division Multiple Access (WCDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wireless) Fidelity, Wi-Fi (as in the Institute of Electrical and Electronics Engineers standard IEEE 802.11a, IEEE 802.11b, IEEE802.11g and/or IEEE 802.11n), Internet telephony (Voice over Internet Protocol, VoIP), Worldwide Interoperability for Microwave Access (Wi-Max), other protocols for mail, instant messaging, and short messaging, and any other suitable communication protocol, even those that are currently A protocol that has not yet been developed.
  • GSM Global System for Mobile Communication
  • EDGE Enhanced Data GSM Environment
  • WCDMA Wideband Code Division Multiple Access
  • CDMA Code Division Multiple Access
  • TDMA Time Division Multiple
  • the memory 320 can be used to store software programs and modules, such as the program instructions/modules that convert the detection signals into target characters in the above-mentioned embodiments.
  • the processor 380 executes various functional applications by running the software programs and modules stored in the memory 320. And data processing, that is, the function of storing 5G capability information.
  • Memory 320 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, memory 320 may further include memory located remotely from processor 380, which may be connected to gateway device 300 through a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
  • the input unit 330 may be used to receive input numerical or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
  • the input unit 330 may include a touch-sensitive surface 331 as well as other input devices 332 .
  • Touch-sensitive surface 331 also known as a touch display or trackpad, collects user touch operations on or near it (such as a user using a finger, stylus, etc., any suitable object or accessory on or on touch-sensitive surface 331). operation near the touch-sensitive surface 331), and drive the corresponding connection device according to a preset program.
  • the touch-sensitive surface 331 may include two parts, a touch detection device and a touch controller.
  • the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the touch controller.
  • the touch-sensitive surface 331 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 330 may also include other input devices 332 .
  • other input devices 332 may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, joysticks, and the like.
  • the display unit 340 may be used to display information input by or provided to the user and various graphical user interfaces of the gateway device 300, which may be composed of graphics, text, icons, videos, and any combination thereof.
  • the display unit 340 may include a display panel 341, and optionally, an LCD (Liquid
  • the display panel 341 is configured in the form of Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, organic light emitting diode), etc.
  • the touch-sensitive surface 331 may cover the display panel 341. When the touch-sensitive surface 331 detects a touch operation on or near it, it transmits it to the processor 380 to determine the type of the touch event, and then the processor 380 determines the type of the touch event according to the touch event.
  • Type provides corresponding visual output on display panel 341 .
  • the touch-sensitive surface 331 and the display panel 341 are implemented as two separate components to realize the input and output functions, in some embodiments, the touch-sensitive surface 331 and the display panel 341 may be integrated to realize the input and output functions.
  • Gateway device 300 may also include at least one sensor 350, such as light sensors, motion sensors, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 341 according to the brightness of the ambient light, and the proximity sensor may close the display panel 341 when the gateway device 300 is moved to the ear and/or backlight.
  • the gravitational acceleration sensor can detect the magnitude of acceleration in all directions (usually three axes), and can detect the magnitude and direction of gravity when it is stationary.
  • the audio circuit 360 , the speaker 361 , and the microphone 362 may provide an audio interface between the user and the gateway device 300 .
  • the audio circuit 360 can transmit the received audio data converted electrical signal to the speaker 361, and the speaker 361 converts it into a sound signal for output; on the other hand, the microphone 362 converts the collected sound signal into an electrical signal, which is converted by the audio circuit 360 After receiving, it is converted into audio data, and then the audio data is output to the processor 380 for processing, and then sent to, for example, another terminal through the RF circuit 310, or the audio data is output to the memory 320 for further processing.
  • Audio circuitry 360 may also include an earphone jack to provide for communication of peripheral headphones with gateway device 300 .
  • the gateway device 300 can help users to send and receive emails, browse web pages, access streaming media, etc. through the transmission module 370 (eg, a Wi-Fi module), which provides users with wireless broadband Internet access.
  • the transmission module 370 eg, a Wi-Fi module
  • FIG. 6 shows the transmission module 370, it can be understood that it does not belong to the essential structure of the gateway device 300, and can be completely omitted as required within the scope of not changing the essence of the invention.
  • the processor 380 is the control center of the gateway device 300, uses various interfaces and lines to connect various parts of the entire mobile phone, runs or executes the software programs and/or modules stored in the memory 320, and calls the data stored in the memory 320. , perform various functions of the gateway device 300 and process data.
  • the processor 380 may include one or more processing cores; in some embodiments, the processor 380 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface and Applications, etc., the modem processor mainly deals with wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 380 .
  • the gateway device 300 also includes a power source 390 (such as a battery) for powering the various components.
  • the power source can be logically connected to the processor 380 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. management and other functions.
  • Power supply 390 may also include one or more DC or AC power sources, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and any other components.
  • the gateway device 300 may also include a camera (eg, a front camera, a rear camera), a Bluetooth module, and the like, which will not be repeated here.
  • the display unit of the gateway device is a touch screen display
  • the gateway device further includes a memory, and one or more programs, wherein one or more programs are stored in the memory and configured to be displayed by one or more programs.
  • the above processor executing one or more programs contains instructions for:
  • the identification result it is determined whether to switch the mobile terminal from the current network to the 5G network.
  • the above modules can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities.
  • the specific implementation of the above modules can refer to the previous method embodiments, which will not be repeated here.
  • an embodiment of the present invention provides a storage medium in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute steps in any network switching method provided by the embodiment of the present invention.
  • the storage medium may include: a read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD, etc.
  • ROM Read Only Memory
  • RAM Random Access Memory
  • CD Compact Disc

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

Disclosed in the present application are a network switching method, a storage medium, and a gateway device. The network switching method comprises: receiving an authentication message sent by a mobile terminal, the authentication message comprising 5G capability attribute information of the mobile terminal; identifying the 5G capability attribute information of the mobile terminal to obtain an identification result; and finally determining, according to the identification result, whether to switch the mobile terminal from the current network to a 5G network.

Description

网络切换方法、存储介质及网关设备Network switching method, storage medium and gateway device
本申请要求于2021年3月3日提交中国专利局、申请号为202110237034.2、发明名称为“网络切换方法、装置、存储介质及网关设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on March 3, 2021 with the application number 202110237034.2 and the invention titled "Network Switching Method, Device, Storage Medium and Gateway Device", the entire contents of which are incorporated by reference in this application.
技术领域technical field
本申请涉及通信技术领域,尤其涉及一种网络切换方法、存储介质及网关设备。The present application relates to the field of communication technologies, and in particular, to a network switching method, a storage medium, and a gateway device.
背景技术Background technique
随着5G(第五代移动通信技术)与VoWIFI(Voice OverWIFI,WIFI语音)技术的逐渐成熟,5G网络与VoWIFI网络的覆盖率也在不断上升。移动终端在开启VoWIFI时需要与网关设备进行数据交互,在使用过程中,由于受到信号强度等因素的影响,通常需要对网络进行切换,在移动终端从VoWIFI网络切换至5G网络的过程中移动终端还需要与网关设备进行数据交互,使得移动终端与网关设备交互的次数过多,导致网络切换的耗时较长。With the gradual maturity of 5G (fifth generation mobile communication technology) and VoWIFI (Voice OverWIFI, WIFI voice) technologies, the coverage of 5G networks and VoWIFI networks is also increasing. When the mobile terminal turns on VoWIFI, it needs to exchange data with the gateway device. During use, due to the influence of signal strength and other factors, the network usually needs to be switched. During the process of switching the mobile terminal from the VoWIFI network to the 5G network, the mobile terminal also Data interaction with the gateway device is required, so that the mobile terminal interacts with the gateway device too many times, resulting in a long network switching time.
技术问题technical problem
本申请实施例提供一种网络切换方法、存储介质及网关设备,能够避免在网络切换过程中由于移动终端与网关设备交互的次数过多导致的网络切换耗时较长的问题,提高网络切换的速度。The embodiments of the present application provide a network switching method, a storage medium, and a gateway device, which can avoid the problem that network switching takes a long time due to the excessive number of interactions between the mobile terminal and the gateway device during the network switching process, and improve the performance of network switching. speed.
技术解决方案technical solutions
本申请实施例提供一种网络切换方法,应用于网关设备,所述方法包括:An embodiment of the present application provides a network switching method, which is applied to a gateway device, and the method includes:
接收移动终端发送的认证消息,所述认证消息包括所述移动终端的5G能力属性信息;receiving an authentication message sent by a mobile terminal, where the authentication message includes 5G capability attribute information of the mobile terminal;
对所述移动终端的5G能力属性信息进行识别,得到识别结果;Identifying the 5G capability attribute information of the mobile terminal to obtain an identification result;
根据所述识别结果判断是否将所述移动终端由当前网络切换至5G网络。Whether to switch the mobile terminal from the current network to the 5G network is determined according to the identification result.
其中,所述5G能力属性信息包括属性值;Wherein, the 5G capability attribute information includes attribute values;
所述对所述移动终端的5G能力属性信息进行识别,得到识别结果,包括:Identifying the 5G capability attribute information of the mobile terminal to obtain an identification result, including:
识别所述属性值;identifying the attribute value;
当所述属性值为第一属性值,确定所述识别结果为所述移动终端支持所述5G能力信息;When the attribute value is the first attribute value, determine that the identification result is that the mobile terminal supports the 5G capability information;
当所述属性值为第二属性值,确定所述识别结果为所述移动终端不支持所述5G能力信息。When the attribute value is the second attribute value, it is determined that the identification result is that the mobile terminal does not support the 5G capability information.
其中,所述属性值包括至少一个比特位;Wherein, the attribute value includes at least one bit;
所述识别所述属性值,包括:The identifying the attribute value includes:
当识别到所述至少一个比特位中的预设比特位的数值等于1,确定所述属性值为所述第一属性值;When identifying that the value of the preset bit in the at least one bit is equal to 1, determining that the attribute value is the first attribute value;
当识别到所述至少一个比特位中的预设比特位的数值等于0,确定所述属性值为所述第二属性值。When it is recognized that the value of the preset bit in the at least one bit is equal to 0, the attribute value is determined to be the second attribute value.
其中,所述根据所述识别结果切换所述移动终端的网络,包括:Wherein, the switching of the network of the mobile terminal according to the identification result includes:
若所述识别结果为所述移动终端支持5G能力信息,则将所述移动终端由当前网络切换至5G网络;If the identification result is that the mobile terminal supports 5G capability information, switching the mobile terminal from the current network to the 5G network;
若所述识别结果为所述移动终端不支持5G能力信息,则将所述移动终端由当前网络切换至其他网络。If the identification result is that the mobile terminal does not support 5G capability information, the mobile terminal is switched from the current network to another network.
其中,所述当前网络为VoWIFI网络,所述其他网络为4G网络;或者,所述当前网络为4G网络,所述其他网络为VoWIFI网络。Wherein, the current network is a VoWIFI network, and the other network is a 4G network; or, the current network is a 4G network, and the other network is a VoWIFI network.
其中,所述5G能力属性信息由互联网密钥交换协议中用于分配属性信息的数字标识,所述数字的取值范围为27-16383。The 5G capability attribute information is identified by a number used for assigning attribute information in the Internet Key Exchange Protocol, and the value range of the number is 27-16383.
其中,所述对所述移动终端的5G能力属性信息进行识别,得到识别结果,包括:Wherein, identifying the 5G capability attribute information of the mobile terminal to obtain an identification result includes:
存储所述5G能力属性信息;storing the 5G capability attribute information;
在接收到所述移动终端的网络切换请求时,对存储的所述5G能力属性信息进行识别,得到识别结果。When the network switching request of the mobile terminal is received, the stored 5G capability attribute information is identified to obtain an identification result.
本申请实施例还提供一种网络切换装置,应用于网关设备,所述装置包括:The embodiment of the present application also provides a network switching apparatus, which is applied to a gateway device, and the apparatus includes:
接收模块,用于接收移动终端发送的认证消息,所述认证消息包括所述移动终端的5G能力属性信息;a receiving module, configured to receive an authentication message sent by a mobile terminal, where the authentication message includes 5G capability attribute information of the mobile terminal;
识别模块,用于对所述移动终端的5G能力属性信息进行识别,得到识别结果;an identification module, configured to identify the 5G capability attribute information of the mobile terminal to obtain an identification result;
切换模块,用于根据所述识别结果判断是否将所述移动终端由当前网络切换至5G网络。A switching module, configured to determine whether to switch the mobile terminal from the current network to the 5G network according to the identification result.
其中,所述切换模块具体用于:Wherein, the switching module is specifically used for:
若所述识别结果为所述移动终端支持5G能力信息,则将所述移动终端由当前网络切换至5G网络;If the identification result is that the mobile terminal supports 5G capability information, switching the mobile terminal from the current network to the 5G network;
若所述识别结果为所述移动终端不支持5G能力信息,则将所述移动终端由当前网络切换至其他网络。If the identification result is that the mobile terminal does not support 5G capability information, the mobile terminal is switched from the current network to another network.
本申请实施例还提供了一种计算机可读存储介质,所述存储介质中存储有多条指令,所述指令适于由处理器加载以执行:Embodiments of the present application also provide a computer-readable storage medium, where a plurality of instructions are stored in the storage medium, and the instructions are suitable for being loaded by a processor to execute:
接收移动终端发送的认证消息,所述认证消息包括所述移动终端的5G能力属性信息;receiving an authentication message sent by a mobile terminal, where the authentication message includes 5G capability attribute information of the mobile terminal;
对所述移动终端的5G能力属性信息进行识别,得到识别结果;Identifying the 5G capability attribute information of the mobile terminal to obtain an identification result;
根据所述识别结果判断是否将所述移动终端由当前网络切换至5G网络。Whether to switch the mobile terminal from the current network to the 5G network is determined according to the identification result.
其中,所述5G能力属性信息包括属性值;Wherein, the 5G capability attribute information includes attribute values;
所述对所述移动终端的5G能力属性信息进行识别,得到识别结果,包括:Identifying the 5G capability attribute information of the mobile terminal to obtain an identification result, including:
识别所述属性值;identifying the attribute value;
当所述属性值为第一属性值,确定所述识别结果为所述移动终端支持所述5G能力信息;When the attribute value is the first attribute value, determine that the identification result is that the mobile terminal supports the 5G capability information;
当所述属性值为第二属性值,确定所述识别结果为所述移动终端不支持所述5G能力信息。When the attribute value is the second attribute value, it is determined that the identification result is that the mobile terminal does not support the 5G capability information.
其中,所述属性值包括至少一个比特位;Wherein, the attribute value includes at least one bit;
所述识别所述属性值,包括:The identifying the attribute value includes:
当识别到所述至少一个比特位中的预设比特位的数值等于1,确定所述属性值为所述第一属性值;When identifying that the value of the preset bit in the at least one bit is equal to 1, determining that the attribute value is the first attribute value;
当识别到所述至少一个比特位中的预设比特位的数值等于0,确定所述属性值为所述第二属性值。When it is recognized that the value of the preset bit in the at least one bit is equal to 0, the attribute value is determined to be the second attribute value.
其中,所述根据所述识别结果判断是否将所述移动终端由当前网络切换至5G网络,包括:The determining whether to switch the mobile terminal from the current network to the 5G network according to the identification result includes:
若所述识别结果为所述移动终端支持5G能力信息,则将所述移动终端由当前网络切换至5G网络;If the identification result is that the mobile terminal supports 5G capability information, switching the mobile terminal from the current network to the 5G network;
若所述识别结果为所述移动终端不支持5G能力信息,则将所述移动终端由当前网络切换至其他网络。If the identification result is that the mobile terminal does not support 5G capability information, the mobile terminal is switched from the current network to another network.
其中,所述当前网络为VoWIFI网络,所述其他网络为4G网络;或者,所述当前网络为4G网络,所述其他网络为VoWIFI网络。Wherein, the current network is a VoWIFI network, and the other network is a 4G network; or, the current network is a 4G network, and the other network is a VoWIFI network.
其中,所述5G能力属性信息由互联网密钥交换协议中用于分配属性信息的数字标识,所述数字的取值范围为27-16383。The 5G capability attribute information is identified by a number used for assigning attribute information in the Internet Key Exchange Protocol, and the value range of the number is 27-16383.
其中,所述对所述移动终端的5G能力属性信息进行识别,得到识别结果,包括:Wherein, identifying the 5G capability attribute information of the mobile terminal to obtain an identification result includes:
存储所述5G能力属性信息;storing the 5G capability attribute information;
在接收到所述移动终端的网络切换请求时,对存储的所述5G能力属性信息进行识别,得到识别结果。When the network switching request of the mobile terminal is received, the stored 5G capability attribute information is identified to obtain an identification result.
本申请实施例还提供了一种网关设备,包括处理器和存储器,所述处理器与所述存储器电性连接,所述存储器用于存储指令和数据,所述处理器用于执行:An embodiment of the present application further provides a gateway device, including a processor and a memory, the processor is electrically connected to the memory, the memory is used for storing instructions and data, and the processor is used for executing:
接收移动终端发送的认证消息,所述认证消息包括所述移动终端的5G能力属性信息;receiving an authentication message sent by a mobile terminal, where the authentication message includes 5G capability attribute information of the mobile terminal;
对所述移动终端的5G能力属性信息进行识别,得到识别结果;Identifying the 5G capability attribute information of the mobile terminal to obtain an identification result;
根据所述识别结果判断是否将所述移动终端由当前网络切换至5G网络。Whether to switch the mobile terminal from the current network to the 5G network is determined according to the identification result.
其中,所述5G能力属性信息包括属性值;Wherein, the 5G capability attribute information includes attribute values;
所述对所述移动终端的5G能力属性信息进行识别,得到识别结果,包括:Identifying the 5G capability attribute information of the mobile terminal to obtain an identification result, including:
识别所述属性值;identifying the attribute value;
当所述属性值为第一属性值,确定所述识别结果为所述移动终端支持所述5G能力信息;When the attribute value is the first attribute value, determine that the identification result is that the mobile terminal supports the 5G capability information;
当所述属性值为第二属性值,确定所述识别结果为所述移动终端不支持所述5G能力信息。When the attribute value is the second attribute value, it is determined that the identification result is that the mobile terminal does not support the 5G capability information.
其中,所述属性值包括至少一个比特位;Wherein, the attribute value includes at least one bit;
所述识别所述属性值,包括:The identifying the attribute value includes:
当识别到所述至少一个比特位中的预设比特位的数值等于1,确定所述属性值为所述第一属性值;When identifying that the value of the preset bit in the at least one bit is equal to 1, determining that the attribute value is the first attribute value;
当识别到所述至少一个比特位中的预设比特位的数值等于0,确定所述属性值为所述第二属性值。When it is recognized that the value of the preset bit in the at least one bit is equal to 0, the attribute value is determined to be the second attribute value.
其中,所述根据所述识别结果判断是否将所述移动终端由当前网络切换至5G网络,包括:The determining whether to switch the mobile terminal from the current network to the 5G network according to the identification result includes:
若所述识别结果为所述移动终端支持5G能力信息,则将所述移动终端由当前网络切换至5G网络;If the identification result is that the mobile terminal supports 5G capability information, switching the mobile terminal from the current network to the 5G network;
若所述识别结果为所述移动终端不支持5G能力信息,则将所述移动终端由当前网络切换至其他网络。If the identification result is that the mobile terminal does not support 5G capability information, the mobile terminal is switched from the current network to another network.
其中,所述当前网络为VoWIFI网络,所述其他网络为4G网络;或者,所述当前网络为4G网络,所述其他网络为VoWIFI网络。Wherein, the current network is a VoWIFI network, and the other network is a 4G network; or, the current network is a 4G network, and the other network is a VoWIFI network.
其中,所述5G能力属性信息由互联网密钥交换协议中用于分配属性信息的数字标识,所述数字的取值范围为27-16383。The 5G capability attribute information is identified by a number used for assigning attribute information in the Internet Key Exchange Protocol, and the value range of the number is 27-16383.
有益效果beneficial effect
本申请实施例提供一种网络切换方法、存储介质及网关设备,接收移动终端发送的认证消息,该认证消息包括移动终端的5G能力属性信息,然后对移动终端的5G能力属性信息进行识别,得到识别结果,最后根据该识别结果判断是否将移动终端由当前网络切换至5G网络,能够避免在网络切换过程中由于移动终端与网关设备交互的次数过多导致的网络切换耗时较长的问题,提高网络切换的速度。The embodiments of the present application provide a network switching method, a storage medium, and a gateway device, which receive an authentication message sent by a mobile terminal, where the authentication message includes 5G capability attribute information of the mobile terminal, and then identify the 5G capability attribute information of the mobile terminal to obtain The identification result, and finally judge whether to switch the mobile terminal from the current network to the 5G network according to the identification result, which can avoid the problem that the network switching takes a long time due to the excessive interaction between the mobile terminal and the gateway device during the network switching process. Improve the speed of network switching.
附图说明Description of drawings
下面结合附图,通过对本申请的具体实施方式详细描述,将使本申请的技术方案及其它有益效果显而易见。The technical solutions and other beneficial effects of the present application will be apparent through the detailed description of the specific embodiments of the present application in conjunction with the accompanying drawings.
图1为本申请实施例提供的网络切换方法的流程示意图。FIG. 1 is a schematic flowchart of a network switching method provided by an embodiment of the present application.
图2为本申请实施例提供的网络切换场景的示意图。FIG. 2 is a schematic diagram of a network switching scenario provided by an embodiment of the present application.
图3为本申请实施例提供的网络切换方法的另一流程示意图。FIG. 3 is another schematic flowchart of a network switching method provided by an embodiment of the present application.
图4为本申请实施例提供的网络切换装置的结构示意图。FIG. 4 is a schematic structural diagram of a network switching apparatus according to an embodiment of the present application.
图5为本申请实施例提供的网关设备的结构示意图。FIG. 5 is a schematic structural diagram of a gateway device provided by an embodiment of the present application.
图6为本申请实施例提供的网关设备的另一结构示意图。FIG. 6 is another schematic structural diagram of a gateway device provided by an embodiment of the present application.
本发明的实施方式Embodiments of the present invention
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。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. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work fall within the protection scope of the present application.
本申请实施例提供一种网络切换方法、存储介质及网关设备。Embodiments of the present application provide a network switching method, a storage medium, and a gateway device.
如图1所示,图1是本申请实施例提供的网络切换方法的流程示意图,该网络切换方法应用于网关设备,该网关设备可包括具有ePDG(Evolved Packet Data Gateway,演进分组数据网关)的设备,该网络切换方法具体流程可以如下:As shown in FIG. 1, FIG. 1 is a schematic flowchart of a network switching method provided by an embodiment of the present application. The network switching method is applied to a gateway device, and the gateway device may include an ePDG (Evolved Packet Data Gateway, Evolved Packet Data Gateway). device, the specific process of the network switching method may be as follows:
S101.接收移动终端发送的认证消息,该认证消息包括移动终端的5G能力属性信息。S101. Receive an authentication message sent by a mobile terminal, where the authentication message includes 5G capability attribute information of the mobile terminal.
在移动终端开启网络时,即移动终端从无网络连接状态进入网络连接状态时,此时移动终端连接移动终端当前所处网络环境中所具有的网络,在该过程中移动终端需要向网关设备发送认证消息。其中,认证消息可以为IKE_AUTH(IKE认证)消息,用于完成IKE认证和协商IPsec SA。需要说明的是,在移动终端与响应设备(例如,服务器)之间需要部署互联网安全协议(IPSec,Internet Protocol Security),并通过IKE隧道提供安全性保障,其中,IKE是一种用于协商密钥的协议,可以为IPSec隧道协商安全协议、算法、密钥等参数,IKEv2(Internet Key Exchange Version 2,互联网密钥交换协议版本2)协议中规范了移动终端通过网关设备向响应设备发起IPsec通信请求时需要完成至少4条报文交互,前两条报文消息:IKE_SA(Security Association,安全联盟)_INIT(IKE SA初始化)用于完成IKE密钥材料交换,后两条报文消息:IKE_AUTH用于完成IKE认证和协商IPSec SA。When the mobile terminal turns on the network, that is, when the mobile terminal enters the network connection state from the state of no network connection, the mobile terminal is connected to the network in the network environment where the mobile terminal is currently located. In this process, the mobile terminal needs to send the authentication to the gateway device. information. The authentication message may be an IKE_AUTH (IKE authentication) message, which is used to complete IKE authentication and negotiate IPsec SA. It should be noted that the Internet Protocol Security (IPSec, Internet Protocol Security) needs to be deployed between the mobile terminal and the response device (for example, the server), and the security guarantee is provided through the IKE tunnel. It can negotiate parameters such as security protocols, algorithms, and keys for IPSec tunnels. IKEv2 (Internet Key Exchange Version 2, Internet Key Exchange Protocol Version 2) protocol specifies that when a mobile terminal initiates an IPsec communication request to a responding device through a gateway device, it needs to complete at least four packet exchanges. The first two packet messages are: IKE_SA (Security Association, Security Association) _INIT (IKE SA initialization) is used to complete IKE key material exchange, and the last two messages: IKE_AUTH are used to complete IKE authentication and negotiate IPSec SA.
具体的,移动终端在开启网络的同时即进入了网络注册流程,该注册流程中移动终端需要与网关设备交互,以完成上文提到的4条报文交互,而本实施例中将移动终端需要上报给网关设备的5G能力信息附于认证消息中,减少了移动终端与网关设备的交互次数。例如,移动终端在开启VoWIFI网络的同时即进入VoWIFI网络注册流程,在注册过程中移动终端需要向ePDG发送IKE_AUTH消息,该IKE_AUTH消息中包括了移动终端的5G能力属性信息,用于向ePDG上报5G能力信息,也就是说在移动终端开启VoWIFI网络的同时即可将5G能力信息上报给ePDG,后续在网络切换时移动终端无需再与ePDG交互,减少了移动终端与ePDG的交互次数。Specifically, the mobile terminal enters the network registration process when the network is turned on. In the registration process, the mobile terminal needs to interact with the gateway device to complete the above-mentioned four message interactions. In this embodiment, the mobile terminal needs to interact with the gateway device. The 5G capability information reported to the gateway device is attached to the authentication message, reducing the number of interactions between the mobile terminal and the gateway device. For example, the mobile terminal enters the VoWIFI network registration process when the VoWIFI network is enabled. During the registration process, the mobile terminal needs to send an IKE_AUTH message to the ePDG. The IKE_AUTH message includes the 5G capability attribute information of the mobile terminal and is used to report the 5G capability to the ePDG. That is to say, the 5G capability information can be reported to the ePDG when the mobile terminal turns on the VoWIFI network, and the mobile terminal does not need to interact with the ePDG during the subsequent network switching, which reduces the number of interactions between the mobile terminal and the ePDG.
可选地,在上述步骤S101之前,还包括:Optionally, before the above step S101, it also includes:
配置5G能力属性信息的标识。Configure the identifier of 5G capability attribute information.
由于目前在IKEv2协议的属性类型中并未配置有用于表示5G能力属性信息的标识,因此,网关设备需要预先在IKEv2协议中设置用于表示5G能力属性信息的标识,该标识由IKEv2协议中尚未使用的字段中的数字表示。在当前IKEv2协议中保留了字段27-16383尚未被分配使用,因此可从27-16383中选取一个数字并将其配置为5G能力属性信息的标识,例如,将“27”配置为5G能力属性信息的标识,然后将用于表示5G能力属性信息的标识“27”发送给移动终端。Since the attribute type of the IKEv2 protocol is currently not configured with an identifier used to represent the 5G capability attribute information, the gateway device needs to set the identifier used to represent the 5G capability attribute information in the IKEv2 protocol in advance. The numeric representation in the field used. In the current IKEv2 protocol, the field 27-16383 is reserved and has not been allocated for use, so a number can be selected from 27-16383 and configured as the identifier of the 5G capability attribute information, for example, configure "27" as the 5G capability attribute information and then send the identifier "27" used to represent the 5G capability attribute information to the mobile terminal.
移动终端接收到网关设备发送的5G能力属性信息的标识后进行存储。5G能力属性信息可以包括属性值,即移动终端可以通过属性值来表示5G能力属性信息,即属性值可用来表示移动终端是否支持5G能力信息,也即表示移动终端是否支持5G网络。移动终端根据自身的5G能力属性设置属性值后,将属性值与5G能力属性信息的标识对应写入认证消息中,并上报给网关设备。The mobile terminal stores the identifier of the 5G capability attribute information sent by the gateway device after receiving it. The 5G capability attribute information may include attribute values, that is, the mobile terminal can use the attribute value to represent the 5G capability attribute information, that is, the attribute value can be used to indicate whether the mobile terminal supports the 5G capability information, that is, whether the mobile terminal supports the 5G network. After the mobile terminal sets the attribute value according to its own 5G capability attribute, it writes the attribute value and the identifier of the 5G capability attribute information into the authentication message, and reports it to the gateway device.
S102.对移动终端的5G能力属性信息进行识别,得到识别结果。S102. Identify the 5G capability attribute information of the mobile terminal to obtain an identification result.
由于网关设备中已存储了5G能力属性信息的标识,因此当网关设备接收到由移动终端发送的认证消息之后,获取该认证消息中表示5G能力属性信息的标识,再识别该标识对应的属性值,所得到的识别结果可用于判断该移动终端是否支持5G网络,可选地,可将该识别结果进行存储,方便后续网关设备根据该识别结果对移动终端进行网络切换的相关操作。Since the identifier of the 5G capability attribute information has been stored in the gateway device, after receiving the authentication message sent by the mobile terminal, the gateway device obtains the identifier representing the 5G capability attribute information in the authentication message, and then identifies the attribute value corresponding to the identifier. , the obtained identification result can be used to determine whether the mobile terminal supports a 5G network, and optionally, the identification result can be stored to facilitate subsequent network switching operations of the mobile terminal by the gateway device according to the identification result.
进一步地,上述步骤S102具体可以包括:Further, the above step S102 may specifically include:
识别属性值;Identify attribute values;
当该属性值为第一属性值,确定该识别结果为移动终端支持5G能力信息;When the attribute value is the first attribute value, it is determined that the identification result is the mobile terminal supporting 5G capability information;
当该属性值为第二属性值,确定该识别结果为移动终端不支持5G能力信息。When the attribute value is the second attribute value, it is determined that the identification result is that the mobile terminal does not support 5G capability information.
其中,第一属性值和第二属性值可以预先设置,且第一属性值和第二属性值可以为任意标识符,例如,第一属性值可以为1、D或n,第二属性值可以为b、9或H。The first attribute value and the second attribute value can be preset, and the first attribute value and the second attribute value can be any identifiers, for example, the first attribute value can be 1, D or n, and the second attribute value can be is b, 9 or H.
优选地,属性值包括至少一个比特位,不同比特位可以表示移动终端的不同5G信息参数,每个比特位的数值可以为1或0,例如,属性值包括8个比特位,具体的,可从这8个比特位中选取一个预设比特位来表示移动终端是否支持5G能力信息,若该预设比特位的数值为1则确定该属性值为第一属性值,若该预设比特位的数值为0则确定该属性值为第二属性值。例如,选取8个比特位中的第一个比特位用来表示移动终端是否支持5G能力信息,当识别到第一个比特位的数值为1时,判断该属性值为第一属性值,表示该移动终端支持5G能力信息,同理,若识别到第一个比特位的数值为0时,判断该属性值为第二属性值,表示该移动终端不支持5G能力信息。Preferably, the attribute value includes at least one bit, different bits can represent different 5G information parameters of the mobile terminal, and the value of each bit can be 1 or 0. For example, the attribute value includes 8 bits. A preset bit is selected from these 8 bits to indicate whether the mobile terminal supports 5G capability information. If the value of the preset bit is 1, it is determined that the attribute value is the first attribute value. If the value of is 0, it is determined that the attribute value is the second attribute value. For example, the first bit of the 8 bits is selected to indicate whether the mobile terminal supports 5G capability information. When the value of the first bit is identified as 1, it is determined that the attribute value is the first attribute value, indicating that The mobile terminal supports 5G capability information. Similarly, if the value of the first bit is identified as 0, it is determined that the attribute value is the second attribute value, indicating that the mobile terminal does not support 5G capability information.
可选地,还可将除该预选的比特位以外的其他比特位作为保留位,若移动终端后续需要向网关设备上报其他5G信息的参数即可直接用这些保留位来表示,保留位在不需表示5G信息参数时默认设置为0。例如,可使用保留位表示移动终端所支持的5G网络频段,目前移动终端支持的5G网络频段分为Sub-6GHz频段和毫米波频段,可将8个比特位中的第二、三个比特位用来表示移动终端支持的5G网络频段,其中,第二个比特位表示移动终端是否支持Sub-6GHz频段,第三个比特位表示移动终端是否支持毫米波频段。Optionally, other bits other than the preselected bits can also be used as reserved bits. If the mobile terminal needs to report the parameters of other 5G information to the gateway device in the future, these reserved bits can be directly used to represent the reserved bits. The default setting is 0 when the 5G information parameter needs to be represented. For example, a reserved bit can be used to indicate the 5G network frequency band supported by the mobile terminal. Currently, the 5G network frequency band supported by the mobile terminal is divided into the Sub-6GHz frequency band and the millimeter wave frequency band. It is used to indicate the 5G network frequency band supported by the mobile terminal. The second bit indicates whether the mobile terminal supports the Sub-6GHz frequency band, and the third bit indicates whether the mobile terminal supports the millimeter wave frequency band.
S103.根据该识别结果判断是否将移动终端由当前网络切换至5G网络。S103. Determine whether to switch the mobile terminal from the current network to the 5G network according to the identification result.
在移动终端需要切换网络时,将移动终端从第一网络(移动终端当前所连接的网络)切换至第二网络。具体的,在切换网络的过程中,网关设备需要先为移动终端选择服务网关(例如,PGW(Packet Data Network GateWay,分组数据网网关)+SMF(Session Management Function,会话管理功能)/UPF(User Plane Function,用户面功能)),随后由该服务网关发起建立业务会话请求流程并获取到相应的网络资源(例如IP地址、接入方式),最后将这些网络资源下发给移动终端,移动终端即可通过分配到的网络资源进行网络业务相关的数据传输。需要说明的是,PGW是EPC网络的边界网关,提供用户的会话管理和承载控制、数据转发、IP地址分配以及非3GPP用户接入等功能;SMF是5G场景下移动终端对应的会话管理功能的网元;UPF是3GPP(3rd Generation Partnership Project,第三代合作伙伴计划)定义的5G核心网基础设施系统架构的基本组成部分。When the mobile terminal needs to switch networks, the mobile terminal is switched from the first network (the network to which the mobile terminal is currently connected) to the second network. Specifically, in the process of switching networks, the gateway device needs to first select a serving gateway (for example, PGW (Packet Data Network GateWay, packet data network gateway) + SMF (Session Management Function, session management function)/UPF (User Plane Function, user plane function)), then the service gateway initiates the request process for establishing a service session and obtains the corresponding network resources (such as IP address, access mode), and finally delivers these network resources to the mobile terminal, and the mobile terminal Data transmission related to network services can be performed through the allocated network resources. It should be noted that the PGW is the border gateway of the EPC network, providing user session management and bearer control, data forwarding, IP address allocation, and non-3GPP user access; SMF is the session management function corresponding to the mobile terminal in the 5G scenario. Network element; UPF is 3GPP (3rd Generation The basic components of the 5G core network infrastructure system architecture defined by the Partnership Project.
在移动终端需要切换网络时,移动终端可以向网关设备发送网络切换请求。其中,网络切换请求可以由用户的操作触发,也可以由移动终端根据检测到的网络环境自动触发。例如,如图2所示,图2是本申请实施例提供的网络切换场景的示意图,用户使用的手机当前使用的网络为VoWIFI网络,然而在使用过程中发现VoWIFI网络有延迟、卡顿的现象,于是用户在网络设置界面2001点击5G网络控件2003,移动终端响应该操作,向网关设备发送网络切换请求;或者,移动终端检测到当前使用的VoWIFI网络的网络质量较差(例如VoWIFI网络的信号强度低于预设阈值)时,移动终端向网关设备发送网络切换请求。When the mobile terminal needs to switch networks, the mobile terminal can send a network switching request to the gateway device. The network switching request may be triggered by the user's operation, or may be automatically triggered by the mobile terminal according to the detected network environment. For example, as shown in FIG. 2 , which is a schematic diagram of a network switching scenario provided by an embodiment of the present application, the network currently used by the mobile phone used by the user is the VoWIFI network, but the VoWIFI network is found to be delayed and stuck during use. , then the user clicks the 5G network control 2003 on the network setting interface 2001, and the mobile terminal responds to this operation and sends a network switching request to the gateway device; When the strength is lower than the preset threshold), the mobile terminal sends a network switching request to the gateway device.
进一步地,上述S103步骤具体还包括:Further, the above-mentioned step S103 specifically further includes:
若识别结果为移动终端支持5G能力信息,则将移动终端由当前网络切换至5G网络;If the identification result is that the mobile terminal supports 5G capability information, switch the mobile terminal from the current network to the 5G network;
若识别结果为移动终端不支持5G能力信息,则将移动终端由当前网络切换至其他网络。If the identification result is that the mobile terminal does not support 5G capability information, the mobile terminal is switched from the current network to another network.
需要说明的是,在网络切换过程中服务网关(例如PGW+SMF/UPF网关)会为移动终端分配网络资源,且若切换前后所使用的服务网关一致则在切换网络后不需再重新为移动终端分配网络资源,可以保证网络切换的连续性。在识别结果为移动终端支持5G能力信息,即移动终端支持5G网络时,若移动终端使用的第一网络为4G网络或VoWIFI网络,则此时网关设备会将移动终端从第一网络切换至第二网络,此时的第二网络为5G网络。由于4G网络、VoWIFI网络、5G网络的服务网关一致,所以将4G网络或VoWIFI网络切换为5G网络可以保证网络切换的连续性,网关设备无需重新为移动终端分配网络资源。若移动终端使用的第一网络为除4G网络或VoWIFI网络以外的网络,由于该第一网络与5G网络的服务网关不一致,所以网关设备需要重新为移动终端分配网络资源。It should be noted that in the process of network switching, the serving gateway (eg PGW+SMF/UPF gateway) will allocate network resources to the mobile terminal, and if the serving gateway used before and after the switching is the same, there is no need to re-configure the mobile terminal after switching the network. The terminal allocates network resources, which can ensure the continuity of network handover. When the identification result is that the mobile terminal supports 5G capability information, that is, when the mobile terminal supports a 5G network, if the first network used by the mobile terminal is a 4G network or a VoWIFI network, the gateway device will switch the mobile terminal from the first network to the second network. Second network, the second network at this time is the 5G network. Since the service gateways of the 4G network, VoWIFI network, and 5G network are the same, switching the 4G network or VoWIFI network to the 5G network can ensure the continuity of network switching, and the gateway device does not need to re-allocate network resources to the mobile terminal. If the first network used by the mobile terminal is a network other than the 4G network or the VoWIFI network, since the first network is inconsistent with the serving gateway of the 5G network, the gateway device needs to re-allocate network resources to the mobile terminal.
在识别结果为移动终端不支持5G能力信息,即移动终端不支持5G网络时,为了保证网络切换的连续性,移动终端优先选取具有相同服务网关的网络进行切换,可选地,网关设备可以查询移动终端当前所处的环境是否具有与第一网络的服务网关相同的网络,若有,且该网络质量较好,则将该网络作为第二网络,若未查询到与第一网络具有相同服务网关的网络或者查询到的网络质量较差,则将具有不同服务网关的网络作为第二网络。例如,移动终端使用的第一网络为4G网络,网关设备查询到VoWIFI网络与4G网络具有相同的服务网关,故将VoWIFI网络作为第二网络,并将4G网络切换到VoWIFI网络,同理,若移动终端使用的第一网络为VoWIFI网络,网关设备将4G网络作为第二网络,并将VoWIFI网络切换到4G网络,由于4G网络和VoWIFI网络具有相同的服务网关,所以无需重新为移动终端分配网络资源,保证了网络切换的连续性。When the identification result is that the mobile terminal does not support 5G capability information, that is, when the mobile terminal does not support the 5G network, in order to ensure the continuity of network switching, the mobile terminal preferentially selects the network with the same serving gateway for switching. Optionally, the gateway device can query Whether the current environment of the mobile terminal has the same network as the service gateway of the first network, if so, and the network quality is good, the network is used as the second network, if the same service as the first network is not found. If the quality of the network of the gateway or the queried network is poor, the network with different serving gateways is used as the second network. For example, the first network used by the mobile terminal is the 4G network, and the gateway device finds that the VoWIFI network and the 4G network have the same service gateway, so the VoWIFI network is used as the second network, and the 4G network is switched to the VoWIFI network. The first network used by the mobile terminal is the VoWIFI network. The gateway device uses the 4G network as the second network and switches the VoWIFI network to the 4G network. Since the 4G network and the VoWIFI network have the same service gateway, there is no need to re-allocate the network to the mobile terminal. resources to ensure the continuity of network switching.
同时,由于移动终端在开启VoWIFI网络的同时即进入了网络注册流程,在注册流程中移动终端会向网关设备发送认证信息,也即在移动终端发送网络切换请求之前网关设备就已经获取了移动终端向网关设备上报的是否支持5G能力信息的识别结果,所以当移动终端向网关设备发送切换至5G网络的网络切换请求时网关设备直接根据之前所获取的识别结果为移动终端选择相应的网络,也即无需再单独向网关设备上报5G能力信息,减少了移动终端与网关设备的交互次数,提升了网络切换的速度。At the same time, since the mobile terminal enters the network registration process when the VoWIFI network is turned on, the mobile terminal will send authentication information to the gateway device during the registration process, that is, before the mobile terminal sends a network switching request, the gateway device has obtained the mobile terminal The identification result reported by the gateway device supports 5G capability information, so when the mobile terminal sends a network switching request to the gateway device to switch to the 5G network, the gateway device directly selects the corresponding network for the mobile terminal according to the previously obtained identification result, that is, It is no longer necessary to report 5G capability information to the gateway device separately, which reduces the number of interactions between the mobile terminal and the gateway device, and improves the speed of network switching.
如图3所示,图3为本申请实施例提供的网络切换方法的另一流程示意图,具体流程可以如下:As shown in FIG. 3, FIG. 3 is another schematic flowchart of a network switching method provided by an embodiment of the present application, and the specific process may be as follows:
S201.配置5G能力属性信息的标识。S201. Configure the identifier of the 5G capability attribute information.
例如,从IKEv2协议中的字段27-16383中选取“27”作为5G能力属性信息的标识,并将“27”与5G能力属性信息的对应关系发送给移动终端。For example, "27" is selected from the field 27-16383 in the IKEv2 protocol as the identifier of the 5G capability attribute information, and the corresponding relationship between "27" and the 5G capability attribute information is sent to the mobile terminal.
S202.接收移动终端发送的认证消息,该认证消息包括5G能力属性信息,该5G能力属性信息可以包括属性值。S202. Receive an authentication message sent by the mobile terminal, where the authentication message includes 5G capability attribute information, where the 5G capability attribute information may include an attribute value.
例如,移动终端接收到网关设备发送的“27”与5G能力属性信息的对应关系后为5G能力属性信息设置属性值,该属性值为8个比特位,第一个比特位用来表示是否支持5G能力信息,第二个比特位用来表示是否支持Sub-6GHz频段,第三个比特位用来表示是否支持毫米波频段,其他比特位为保留位,并将设置了属性值的5G能力属性信息通过认证消息发送给网关设备。具体的,设置的属性值可以为以下五种情况:10000000(支持5G能力信息)、00000000(不支持5G能力信息)、11000000(支持5G能力信息且支持Sub-6GHz频段)、10100000(支持5G能力信息且支持毫米波频段)、11100000(支持5G能力信息且支持Sub-6GHz频段和毫米波频段)。For example, after receiving the correspondence between "27" sent by the gateway device and the 5G capability attribute information, the mobile terminal sets an attribute value for the 5G capability attribute information. The attribute value is 8 bits, and the first bit is used to indicate whether to support 5G capability information, the second bit is used to indicate whether the Sub-6GHz frequency band is supported, the third bit is used to indicate whether the millimeter wave frequency band is supported, the other bits are reserved bits, and the 5G capability attribute of the attribute value will be set The information is sent to the gateway device through an authentication message. Specifically, the set attribute values can be the following five cases: 10000000 (supports 5G capability information), 00000000 (does not support 5G capability information), 11000000 (supports 5G capability information and supports Sub-6GHz frequency band), 10100000 (supports 5G capability information) information and support millimeter wave band), 11100000 (support 5G capability information and support Sub-6GHz band and millimeter wave band).
S203.在接收到移动终端的网络切换请求后,识别5G能力属性信息中的属性值,若该属性值为第一属性值,执行步骤204,若该属性值为第二属性值,则执行步骤205。S203. After receiving the network switching request of the mobile terminal, identify the attribute value in the 5G capability attribute information, if the attribute value is the first attribute value, execute step 204, and if the attribute value is the second attribute value, execute step 205.
其中,第一属性值表示移动终端支持5G能力信息,第二属性值表示移动终端不支持5G能力信息。例如,如图2所示,移动终端当前使用的网络为VoWIFI网络,移动终端屏幕显示VoWIFI标识2002当用户在网络设置界面2001点击5G网络控件2003,此时移动终端响应该操作,向网关设备发送网络切换请求,网关设备随即对5G能力属性信息中的属性值进行识别,当属性值为10100000(支持5G能力信息且支持毫米波频段)时,确定该属性值为第一属性值,则执行步骤204。当属性值为00000000(不支持5G能力信息)时,确定该属性值为第二属性值,则执行步骤205。可选地,可将识别结果存储至ePDG。The first attribute value indicates that the mobile terminal supports 5G capability information, and the second attribute value indicates that the mobile terminal does not support 5G capability information. For example, as shown in Figure 2, the network currently used by the mobile terminal is the VoWIFI network, and the screen of the mobile terminal displays the VoWIFI logo 2002. When the user clicks the 5G network control 2003 on the network setting interface 2001, the mobile terminal responds to this operation and sends a message to the gateway device. Network handover request, the gateway device immediately identifies the attribute value in the 5G capability attribute information, and when the attribute value is 10100000 (supports 5G capability information and supports millimeter wave frequency band), determines that the attribute value is the first attribute value, and executes the steps 204. When the attribute value is 00000000 (5G capability information is not supported), it is determined that the attribute value is the second attribute value, and step 205 is performed. Optionally, the recognition result can be stored to the ePDG.
S204.为移动终端选择5G网络。S204. Select a 5G network for the mobile terminal.
例如,如图2所示,移动终端当前选择的VoWIFI网络所使用的服务网关为PGW+SMF/UPF,PGW+SMF/UPF为移动终端分配的IP地址为192.168.0.107,ePDG将移动终端从VoWIFI网络切换至5G网络,移动终端屏幕显示的网络标识由VoWIFI网络标识2002变为“5G+”(支持毫米波频段的网络标识)网络标识2004,并选择PGW+SMF/UPF作为5G网络的服务网关,该服务网关会将IP地址192.168.0.107下发至移动终端,移动终端即可使用192.168.0.107的IP地址访问服务器,并实现5G语音会话等业务的数据交互。For example, as shown in Figure 2, the serving gateway used by the VoWIFI network currently selected by the mobile terminal is PGW+SMF/UPF, and the IP address assigned by the PGW+SMF/UPF to the mobile terminal is 192.168.0.107. The network is switched to the 5G network, the network ID displayed on the screen of the mobile terminal is changed from VoWIFI network ID 2002 to "5G+" (network ID supporting millimeter wave band) network ID 2004, and PGW+SMF/UPF is selected as the service gateway of the 5G network. The service gateway will send the IP address 192.168.0.107 to the mobile terminal, and the mobile terminal can use the IP address of 192.168.0.107 to access the server and realize data exchange of services such as 5G voice sessions.
S205.为移动终端选择其他网络。S205. Select other networks for the mobile terminal.
例如,如图2所示,移动终端当前选择的VoWIFI网络,且VoWIFI网络使用的服务网关为PGW+SMF/UPF,ePDG查询到4G网络所使用的服务网关也为PGW+SMF/UPF,为了保证网络切换的连续性,故优先为移动终端选择4G网络,移动终端屏幕显示的网络标识由VoWIFI网络标识2002变为4G网络标识2005,同时在网络设置界面2001显示“网络设置失败:本设备无法连接至5G网络,已默认选择4G网络”的提示,由于VoWIFI网络与4G网络使用相同的PGW+SMF/UPF,所以移动终端可以直接使用192.168.0.107的IP地址访问服务器,并实现4G网络业务的数据交互。可选地,在移动终端被默认切换至其他网络之后,用户还可自行在网络设置页面2001中更换网络。For example, as shown in Figure 2, the VoWIFI network currently selected by the mobile terminal, and the service gateway used by the VoWIFI network is PGW+SMF/UPF, and the service gateway used by the ePDG to query the 4G network is also PGW+SMF/UPF. The continuity of the network switching, so the priority is to select the 4G network for the mobile terminal. The network logo displayed on the mobile terminal screen changes from the VoWIFI network logo 2002 to the 4G network logo 2005. At the same time, the network setting interface 2001 displays "Network setting failed: This device cannot be connected. To the 5G network, the 4G network has been selected by default", because the VoWIFI network and the 4G network use the same PGW+SMF/UPF, the mobile terminal can directly use the IP address of 192.168.0.107 to access the server and realize the data of the 4G network service. interact. Optionally, after the mobile terminal is switched to another network by default, the user can also change the network on the network setting page 2001 by himself.
由上述可知,本申请提供的网络切换方法,应用于网关设备,首先接收移动终端发送的认证消息,该认证消息包括移动终端的5G能力属性信息,然后对移动终端的5G能力属性信息进行识别,得到识别结果,最后根据该识别结果判断是否将移动终端由当前网络切换至5G网络,通过将5G能力属性信息附于认证消息中进行上报,能够避免在网络切换过程中由于移动终端与网关设备交互的次数过多导致的网络切换耗时较长的问题,提高网络切换的速度。It can be seen from the above that the network switching method provided by the present application is applied to a gateway device. First, an authentication message sent by a mobile terminal is received, and the authentication message includes the 5G capability attribute information of the mobile terminal, and then the 5G capability attribute information of the mobile terminal is identified. Obtain the identification result, and finally determine whether to switch the mobile terminal from the current network to the 5G network according to the identification result. By attaching the 5G capability attribute information to the authentication message for reporting, it can avoid the interaction between the mobile terminal and the gateway device during the network switching process. The problem of network switching time-consuming caused by too many times increases the speed of network switching.
根据上述实施例所描述的方法,本实施例将从网络切换装置的角度进一步进行描述,该网络切换装置具体可以作为独立的实体来实现,也可以集成在网关设备中,该网关设备可以是具有ePDG网关的设备。According to the method described in the above embodiment, this embodiment will be further described from the perspective of a network switching device. The network switching device can be specifically implemented as an independent entity, or can be integrated in a gateway device. The gateway device may have The device of the ePDG gateway.
请参阅图4,图4具体描述了本申请实施例提供的网络切换装置,应用于网关设备,该网络切换装置可以包括:接收模块10、识别模块20、切换模块30,其中:Please refer to FIG. 4. FIG. 4 specifically describes the network switching device provided by the embodiment of the present application, which is applied to a gateway device. The network switching device may include: a receiving module 10, an identification module 20, and a switching module 30, wherein:
(1)接收模块10(1) Receiver module 10
接收模块10,用于接收移动终端发送的认证消息,该认证消息包括移动终端的5G能力属性信息。The receiving module 10 is configured to receive an authentication message sent by the mobile terminal, where the authentication message includes 5G capability attribute information of the mobile terminal.
(2)识别模块20(2) Identification module 20
识别模块20,用于对移动终端的5G能力属性信息进行识别,得到识别结果。The identification module 20 is used to identify the 5G capability attribute information of the mobile terminal to obtain an identification result.
(3)切换模块30(3) Switching module 30
切换模块30,用于根据该识别结果判断是否将该移动终端由当前网络切换至5G网络。The switching module 30 is configured to determine whether to switch the mobile terminal from the current network to the 5G network according to the identification result.
在一个实施例中,5G能力属性信息包括属性值,所述5G能力属性信息由互联网密钥交换协议中用于分配属性信息的数字标识,所述数字的取值范围为27-16383。In one embodiment, the 5G capability attribute information includes an attribute value, and the 5G capability attribute information is identified by a number used for assigning attribute information in the Internet Key Exchange Protocol, and the value of the number ranges from 27 to 16383.
识别模块20还用于:The identification module 20 is also used to:
识别所述属性值;identifying the attribute value;
当所述属性值为第一属性值,确定所述识别结果为所述移动终端支持所述5G能力信息;When the attribute value is the first attribute value, determine that the identification result is that the mobile terminal supports the 5G capability information;
当所述属性值为第二属性值,确定所述识别结果为所述移动终端不支持所述5G能力信息。When the attribute value is the second attribute value, it is determined that the identification result is that the mobile terminal does not support the 5G capability information.
所述属性值包括至少一个比特位;The attribute value includes at least one bit;
所述识别所述属性值,包括:The identifying the attribute value includes:
当识别到所述至少一个比特位中的预设比特位的数值等于1,确定所述属性值为所述第一属性值;When identifying that the value of the preset bit in the at least one bit is equal to 1, determining that the attribute value is the first attribute value;
当识别到所述至少一个比特位中的预设比特位的数值等于0,确定所述属性值为所述第二属性值。When it is recognized that the value of the preset bit in the at least one bit is equal to 0, the attribute value is determined to be the second attribute value.
切换模块30还用于:The switching module 30 is also used to:
若所述识别结果为所述移动终端支持5G能力信息,则将所述移动终端由当前网络切换至5G网络;If the identification result is that the mobile terminal supports 5G capability information, switching the mobile terminal from the current network to the 5G network;
若所述识别结果为所述移动终端不支持5G能力信息,则将所述移动终端由当前网络切换至其他网络。If the identification result is that the mobile terminal does not support 5G capability information, the mobile terminal is switched from the current network to another network.
所述当前网络为VoWIFI网络,所述其他网络为4G网络;或者所述当前网络为4G网络,所述其他网络为VoWIFI网络。The current network is a VoWIFI network, and the other network is a 4G network; or the current network is a 4G network, and the other network is a VoWIFI network.
由上述可知,本申请提供的网络切换装置,应用于网关设备,首先通过接收模块10接收移动终端发送的认证消息,该认证消息包括移动终端的5G能力属性信息,然后通过识别模块20对移动终端的5G能力属性信息进行识别,得到识别结果,最后切换模块30根据该识别结果判断是否将移动终端由当前网络切换至5G网络,通过将5G能力属性信息附于认证消息中进行上报,能够避免在网络切换过程中由于移动终端与网关设备交互的次数过多导致的网络切换耗时较长的问题,提高网络切换的速度。It can be seen from the above that the network switching device provided in this application is applied to a gateway device. First, the authentication message sent by the mobile terminal is received by the receiving module 10, and the authentication message includes the 5G capability attribute information of the mobile terminal. Identify the 5G capability attribute information of the mobile terminal, and obtain the identification result. Finally, the switching module 30 judges whether to switch the mobile terminal from the current network to the 5G network according to the identification result. By attaching the 5G capability attribute information to the authentication message for reporting, it is possible to avoid in In the process of network switching, the network switching takes a long time due to the excessive number of interactions between the mobile terminal and the gateway device, and the speed of network switching is improved.
相应的,本发明实施例还提供一种网络切换系统,包括本发明实施例所提供的任一种网络切换启动装置,该网络切换装置可以集成在网关设备中。Correspondingly, an embodiment of the present invention further provides a network switching system, including any network switching initiating apparatus provided in the embodiment of the present invention, and the network switching apparatus may be integrated in a gateway device.
其中,接收移动终端发送的认证消息,该认证消息包括移动终端的5G能力属性信息;对移动终端的5G能力属性信息进行识别,得到识别结果;根据该识别结果判断是否将该移动终端由当前网络切换至5G网络。The authentication message sent by the mobile terminal is received, and the authentication message includes the 5G capability attribute information of the mobile terminal; the 5G capability attribute information of the mobile terminal is identified to obtain an identification result; according to the identification result, it is determined whether the mobile terminal is to be registered by the current network Switch to 5G network.
以上各个设备的具体实施可参见前面的实施例,在此不再赘述。For the specific implementation of the above devices, reference may be made to the foregoing embodiments, and details are not described herein again.
由于该网络切换系统可以包括本发明实施例所提供的任一种网络切换装置,因此,可以实现本发明实施例所提供的任一种网络切换装置所能实现的有益效果,详见前面的实施例,在此不再赘述。Since the network switching system may include any network switching device provided by the embodiment of the present invention, the beneficial effects that can be achieved by any network switching device provided by the embodiment of the present invention can be achieved. For details, see the preceding implementation for details. For example, it will not be repeated here.
另外,本申请实施例还提供一种网关设备,该网关设备可以是具有ePDG网关的设备。如图5所示,网关设备200包括处理器201、存储器202。其中,处理器201与存储器202电性连接。In addition, an embodiment of the present application further provides a gateway device, where the gateway device may be a device having an ePDG gateway. As shown in FIG. 5 , the gateway device 200 includes a processor 201 and a memory 202 . The processor 201 is electrically connected to the memory 202 .
处理器201是网关设备200的控制中心,利用各种接口和线路连接整个网关设备的各个部分,通过运行或加载存储在存储器202内的应用程序,以及调用存储在存储器202内的数据,执行网关设备的各种功能和处理数据,从而对网关设备进行整体监控。The processor 201 is the control center of the gateway device 200, uses various interfaces and lines to connect various parts of the entire gateway device, executes the gateway by running or loading the application program stored in the memory 202, and calling the data stored in the memory 202. Various functions of the device and processing data, so as to monitor the gateway device as a whole.
在本实施例中,网关设备200中的处理器201会按照如下的步骤,将一个或一个以上的应用程序的进程对应的指令加载到存储器202中,并由处理器201来运行存储在存储器202中的应用程序,从而实现各种功能:In this embodiment, the processor 201 in the gateway device 200 loads the instructions corresponding to the processes of one or more application programs into the memory 202 according to the following steps, and the processor 201 executes the instructions stored in the memory 202 applications in , so as to achieve various functions:
接收移动终端发送的认证消息,该认证消息包括移动终端的5G能力属性信息;Receive an authentication message sent by the mobile terminal, where the authentication message includes 5G capability attribute information of the mobile terminal;
对移动终端的5G能力属性信息进行识别,得到识别结果;Identify the 5G capability attribute information of the mobile terminal to obtain the identification result;
根据该识别结果判断是否将该移动终端由当前网络切换至5G网络。According to the identification result, it is determined whether to switch the mobile terminal from the current network to the 5G network.
图6示出了本发明实施例提供的网关设备的具体结构框图,该网关设备可以用于实施上述实施例中提供的网络切换方法。该网关设备300可以为具有ePDG网关的设备。FIG. 6 shows a specific structural block diagram of a gateway device provided by an embodiment of the present invention, and the gateway device can be used to implement the network switching method provided in the foregoing embodiment. The gateway device 300 may be a device with an ePDG gateway.
RF电路310用于接收以及发送电磁波,实现电磁波与电信号的相互转换,从而与通讯网络或者其他设备进行通讯。RF电路310可包括各种现有的用于执行这些功能的电路元件,例如,天线、射频收发器、数字信号处理器、加密/解密芯片、用户身份模块(SIM)卡、存储器等等。RF电路310可与各种网络如互联网、企业内部网、无线网络进行通讯或者通过无线网络与其他设备进行通讯。上述的无线网络可包括蜂窝式电话网、无线局域网或者城域网。上述的无线网络可以使用各种通信标准、协议及技术,包括但并不限于全球移动通信系统(Global System for Mobile Communication,GSM)、增强型移动通信技术(Enhanced Data GSM Environment,EDGE),宽带码分多址技术(Wideband Code Division Multiple Access,WCDMA),码分多址技术(Code Division Access, CDMA)、时分多址技术(Time Division Multiple Access,TDMA),无线保真技术(Wireless Fidelity, Wi-Fi)(如美国电气和电子工程师协会标准 IEEE 802.11a, IEEE 802.11b, IEEE802.11g 和/或 IEEE 802.11n)、网络电话(Voice over Internet Protocol, VoIP)、全球微波互联接入(Worldwide Interoperability for Microwave Access, Wi-Max)、其他用于邮件、即时通讯及短消息的协议,以及任何其他合适的通讯协议,甚至可包括那些当前仍未被开发出来的协议。The RF circuit 310 is used for receiving and sending electromagnetic waves, realizing mutual conversion between electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. RF circuitry 310 may include various existing circuit elements for performing these functions, eg, antennas, radio frequency transceivers, digital signal processors, encryption/decryption chips, subscriber identity module (SIM) cards, memory, and the like. The RF circuit 310 may communicate with various networks such as the Internet, an intranet, a wireless network, or with other devices over a wireless network. The aforementioned wireless network may include a cellular telephone network, a wireless local area network, or a metropolitan area network. The above-mentioned wireless networks can use various communication standards, protocols and technologies, including but not limited to the Global System for Mobile Communications (Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), Wideband Code Division Multiple Access (Wideband Code) Division Multiple Access (WCDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wireless) Fidelity, Wi-Fi (as in the Institute of Electrical and Electronics Engineers standard IEEE 802.11a, IEEE 802.11b, IEEE802.11g and/or IEEE 802.11n), Internet telephony (Voice over Internet Protocol, VoIP), Worldwide Interoperability for Microwave Access (Wi-Max), other protocols for mail, instant messaging, and short messaging, and any other suitable communication protocol, even those that are currently A protocol that has not yet been developed.
存储器320可用于存储软件程序以及模块,如上述实施例中将检测信号转换为目标字符的程序指令/模块,处理器380通过运行存储在存储器320内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现存储5G能力信息的功能。存储器320可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器320可进一步包括相对于处理器380远程设置的存储器,这些远程存储器可以通过网络连接至网关设备300。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 320 can be used to store software programs and modules, such as the program instructions/modules that convert the detection signals into target characters in the above-mentioned embodiments. The processor 380 executes various functional applications by running the software programs and modules stored in the memory 320. And data processing, that is, the function of storing 5G capability information. Memory 320 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, memory 320 may further include memory located remotely from processor 380, which may be connected to gateway device 300 through a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
输入单元330可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。具体地,输入单元330可包括触敏表面331以及其他输入设备332。触敏表面331,也称为触摸显示屏或者触控板,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触敏表面331上或在触敏表面331附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触敏表面331可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器380,并能接收处理器380发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触敏表面331。除了触敏表面331,输入单元330还可以包括其他输入设备332。具体地,其他输入设备332可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 330 may be used to receive input numerical or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. Specifically, the input unit 330 may include a touch-sensitive surface 331 as well as other input devices 332 . Touch-sensitive surface 331, also known as a touch display or trackpad, collects user touch operations on or near it (such as a user using a finger, stylus, etc., any suitable object or accessory on or on touch-sensitive surface 331). operation near the touch-sensitive surface 331), and drive the corresponding connection device according to a preset program. Optionally, the touch-sensitive surface 331 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the touch controller. To the processor 380, and can receive the command sent by the processor 380 and execute it. In addition, the touch-sensitive surface 331 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface 331 , the input unit 330 may also include other input devices 332 . Specifically, other input devices 332 may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, joysticks, and the like.
显示单元340可用于显示由用户输入的信息或提供给用户的信息以及网关设备300的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示单元340可包括显示面板341,可选的,可以采用LCD(Liquid Crystal Display,液晶显示器)、OLED(Organic Light-Emitting Diode,有机发光二极管)等形式来配置显示面板341。进一步的,触敏表面331可覆盖显示面板341,当触敏表面331检测到在其上或附近的触摸操作后,传送给处理器380以确定触摸事件的类型,随后处理器380根据触摸事件的类型在显示面板341上提供相应的视觉输出。虽然在图6中,触敏表面331与显示面板341是作为两个独立的部件来实现输入和输出功能,但是在某些实施例中,可以将触敏表面331与显示面板341集成而实现输入和输出功能。The display unit 340 may be used to display information input by or provided to the user and various graphical user interfaces of the gateway device 300, which may be composed of graphics, text, icons, videos, and any combination thereof. The display unit 340 may include a display panel 341, and optionally, an LCD (Liquid The display panel 341 is configured in the form of Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, organic light emitting diode), etc. Further, the touch-sensitive surface 331 may cover the display panel 341. When the touch-sensitive surface 331 detects a touch operation on or near it, it transmits it to the processor 380 to determine the type of the touch event, and then the processor 380 determines the type of the touch event according to the touch event. Type provides corresponding visual output on display panel 341 . Although in FIG. 6, the touch-sensitive surface 331 and the display panel 341 are implemented as two separate components to realize the input and output functions, in some embodiments, the touch-sensitive surface 331 and the display panel 341 may be integrated to realize the input and output functions.
网关设备300还可包括至少一种传感器350,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板341的亮度,接近传感器可在网关设备300移动到耳边时,关闭显示面板341和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于网关设备300还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。Gateway device 300 may also include at least one sensor 350, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 341 according to the brightness of the ambient light, and the proximity sensor may close the display panel 341 when the gateway device 300 is moved to the ear and/or backlight. As a kind of motion sensor, the gravitational acceleration sensor can detect the magnitude of acceleration in all directions (usually three axes), and can detect the magnitude and direction of gravity when it is stationary. games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that can be configured on the gateway device 300, here No longer.
音频电路360、扬声器361,传声器362可提供用户与网关设备300之间的音频接口。音频电路360可将接收到的音频数据转换后的电信号,传输到扬声器361,由扬声器361转换为声音信号输出;另一方面,传声器362将收集的声音信号转换为电信号,由音频电路360接收后转换为音频数据,再将音频数据输出处理器380处理后,经RF电路310以发送给比如另一终端,或者将音频数据输出至存储器320以便进一步处理。音频电路360还可能包括耳塞插孔,以提供外设耳机与网关设备300的通信。The audio circuit 360 , the speaker 361 , and the microphone 362 may provide an audio interface between the user and the gateway device 300 . The audio circuit 360 can transmit the received audio data converted electrical signal to the speaker 361, and the speaker 361 converts it into a sound signal for output; on the other hand, the microphone 362 converts the collected sound signal into an electrical signal, which is converted by the audio circuit 360 After receiving, it is converted into audio data, and then the audio data is output to the processor 380 for processing, and then sent to, for example, another terminal through the RF circuit 310, or the audio data is output to the memory 320 for further processing. Audio circuitry 360 may also include an earphone jack to provide for communication of peripheral headphones with gateway device 300 .
网关设备300通过传输模块370(例如Wi-Fi模块)可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图6示出了传输模块370,但是可以理解的是,其并不属于网关设备300的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。The gateway device 300 can help users to send and receive emails, browse web pages, access streaming media, etc. through the transmission module 370 (eg, a Wi-Fi module), which provides users with wireless broadband Internet access. Although FIG. 6 shows the transmission module 370, it can be understood that it does not belong to the essential structure of the gateway device 300, and can be completely omitted as required within the scope of not changing the essence of the invention.
处理器380是网关设备300的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器320内的软件程序和/或模块,以及调用存储在存储器320内的数据,执行网关设备300的各种功能和处理数据。可选的,处理器380可包括一个或多个处理核心;在一些实施例中,处理器380可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器380中。The processor 380 is the control center of the gateway device 300, uses various interfaces and lines to connect various parts of the entire mobile phone, runs or executes the software programs and/or modules stored in the memory 320, and calls the data stored in the memory 320. , perform various functions of the gateway device 300 and process data. Optionally, the processor 380 may include one or more processing cores; in some embodiments, the processor 380 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface and Applications, etc., the modem processor mainly deals with wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 380 .
网关设备300还包括给各个部件供电的电源390(比如电池),在一些实施例中,电源可以通过电源管理系统与处理器380逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源390还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。The gateway device 300 also includes a power source 390 (such as a battery) for powering the various components. In some embodiments, the power source can be logically connected to the processor 380 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. management and other functions. Power supply 390 may also include one or more DC or AC power sources, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and any other components.
尽管未示出,网关设备300还可以包括摄像头(如前置摄像头、后置摄像头)、蓝牙模块等,在此不再赘述。具体在本实施例中,网关设备的显示单元是触摸屏显示器,网关设备还包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行一个或者一个以上程序包含用于进行以下操作的指令:Although not shown, the gateway device 300 may also include a camera (eg, a front camera, a rear camera), a Bluetooth module, and the like, which will not be repeated here. Specifically in this embodiment, the display unit of the gateway device is a touch screen display, the gateway device further includes a memory, and one or more programs, wherein one or more programs are stored in the memory and configured to be displayed by one or more programs. The above processor executing one or more programs contains instructions for:
接收移动终端发送的认证消息,该认证消息包括移动终端的5G能力属性信息;Receive an authentication message sent by the mobile terminal, where the authentication message includes 5G capability attribute information of the mobile terminal;
对移动终端的5G能力属性信息进行识别,得到识别结果;Identify the 5G capability attribute information of the mobile terminal to obtain the identification result;
根据该识别结果判断是否将该移动终端由当前网络切换至5G网络。According to the identification result, it is determined whether to switch the mobile terminal from the current network to the 5G network.
具体实施时,以上各个模块可以作为独立的实体来实现,也可以进行任意组合,作为同一或若干个实体来实现,以上各个模块的具体实施可参见前面的方法实施例,在此不再赘述。During specific implementation, the above modules can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above modules can refer to the previous method embodiments, which will not be repeated here.
本领域普通技术人员可以理解,上述实施例的各种方法中的全部或部分步骤可以通过指令来完成,或通过指令控制相关的硬件来完成,该指令可以存储于一计算机可读存储介质中,并由处理器进行加载和执行。为此,本发明实施例提供一种存储介质,其中存储有多条指令,该指令能够被处理器进行加载,以执行本发明实施例所提供的任一种网络切换方法中的步骤。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above-mentioned embodiments can be completed by instructions, or by instructions that control relevant hardware, and the instructions can be stored in a computer-readable storage medium, and loaded and executed by the processor. To this end, an embodiment of the present invention provides a storage medium in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute steps in any network switching method provided by the embodiment of the present invention.
其中,该存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)、磁盘或光盘等。Wherein, the storage medium may include: a read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD, etc.
由于该存储介质中所存储的指令,可以执行本发明实施例所提供的任一种网络切换方法中的步骤,因此,可以实现本发明实施例所提供的任一种网络切换方法所能实现的有益效果,详见前面的实施例,在此不再赘述。Because the instructions stored in the storage medium can execute the steps in any network switching method provided by the embodiments of the present invention, it is possible to implement any network switching method provided by the embodiments of the present invention. For the beneficial effects, refer to the foregoing embodiments for details, which will not be repeated here.
以上各个操作的具体实施可参见前面的实施例,在此不再赘述。For the specific implementation of the above operations, reference may be made to the foregoing embodiments, and details are not described herein again.
综上该,虽然本申请已以优选实施例揭露如上,但上述优选实施例并非用以限制本申请,本领域的普通技术人员,在不脱离本申请的精神和范围内,均可作各种更动与润饰,因此本申请的保护范围以权利要求界定的范围为准。To sum up, although the present application has been disclosed above with preferred embodiments, the above preferred embodiments are not intended to limit the present application. Those of ordinary skill in the art can make various Therefore, the scope of protection of the present application is subject to the scope defined by the claims.

Claims (20)

  1. 一种网络切换方法,其应用于网关设备,所述方法包括:A network switching method, which is applied to a gateway device, the method comprising:
    接收移动终端发送的认证消息,所述认证消息包括所述移动终端的5G能力属性信息;receiving an authentication message sent by a mobile terminal, where the authentication message includes 5G capability attribute information of the mobile terminal;
    对所述移动终端的5G能力属性信息进行识别,得到识别结果;Identifying the 5G capability attribute information of the mobile terminal to obtain an identification result;
    根据所述识别结果判断是否将所述移动终端由当前网络切换至5G网络。Whether to switch the mobile terminal from the current network to the 5G network is determined according to the identification result.
  2. 根据权利要求1所述的网络切换方法,其中,所述5G能力属性信息包括属性值;The network handover method according to claim 1, wherein the 5G capability attribute information includes an attribute value;
    所述对所述移动终端的5G能力属性信息进行识别,得到识别结果,包括:Identifying the 5G capability attribute information of the mobile terminal to obtain an identification result, including:
    识别所述属性值;identifying the attribute value;
    当所述属性值为第一属性值,确定所述识别结果为所述移动终端支持所述5G能力信息;When the attribute value is the first attribute value, determine that the identification result is that the mobile terminal supports the 5G capability information;
    当所述属性值为第二属性值,确定所述识别结果为所述移动终端不支持所述5G能力信息。When the attribute value is the second attribute value, it is determined that the identification result is that the mobile terminal does not support the 5G capability information.
  3. 根据权利要求2所述的网络切换方法,其中,所述属性值包括至少一个比特位;The network switching method according to claim 2, wherein the attribute value comprises at least one bit;
    所述识别所述属性值,包括:The identifying the attribute value includes:
    当识别到所述至少一个比特位中的预设比特位的数值等于1,确定所述属性值为所述第一属性值;When identifying that the value of the preset bit in the at least one bit is equal to 1, determining that the attribute value is the first attribute value;
    当识别到所述至少一个比特位中的预设比特位的数值等于0,确定所述属性值为所述第二属性值。When it is recognized that the value of the preset bit in the at least one bit is equal to 0, the attribute value is determined to be the second attribute value.
  4. 根据权利要求1所述的网络切换方法,其中,所述根据所述识别结果切换所述移动终端的网络,包括:The network switching method according to claim 1, wherein the switching of the network of the mobile terminal according to the identification result comprises:
    若所述识别结果为所述移动终端支持5G能力信息,则将所述移动终端由当前网络切换至5G网络;If the identification result is that the mobile terminal supports 5G capability information, switching the mobile terminal from the current network to the 5G network;
    若所述识别结果为所述移动终端不支持5G能力信息,则将所述移动终端由当前网络切换至其他网络。If the identification result is that the mobile terminal does not support 5G capability information, the mobile terminal is switched from the current network to another network.
  5. 根据权利要求4所述的网络切换方法,其中,所述当前网络为VoWIFI网络,所述其他网络为4G网络;或者,所述当前网络为4G网络,所述其他网络为VoWIFI网络。The network switching method according to claim 4, wherein the current network is a VoWIFI network, and the other network is a 4G network; or, the current network is a 4G network, and the other network is a VoWIFI network.
  6. 根据权利要求1所述的网络切换方法,其中,所述5G能力属性信息由互联网密钥交换协议中用于分配属性信息的数字标识,所述数字的取值范围为27-16383。The network switching method according to claim 1, wherein the 5G capability attribute information is identified by a number used for assigning attribute information in the Internet Key Exchange Protocol, and the value range of the number is 27-16383.
  7. 根据权利要求1所述的网络切换方法,其中,所述对所述移动终端的5G能力属性信息进行识别,得到识别结果,包括:The network switching method according to claim 1, wherein the identifying the 5G capability attribute information of the mobile terminal to obtain the identification result comprises:
    存储所述5G能力属性信息;storing the 5G capability attribute information;
    在接收到所述移动终端的网络切换请求时,对存储的所述5G能力属性信息进行识别,得到识别结果。When the network switching request of the mobile terminal is received, the stored 5G capability attribute information is identified to obtain an identification result.
  8. 一种计算机可读存储介质,其中,所述存储介质中存储有多条指令,所述指令适于由处理器加载以执行:A computer-readable storage medium, wherein a plurality of instructions are stored in the storage medium, the instructions are adapted to be loaded by a processor for execution:
    接收移动终端发送的认证消息,所述认证消息包括所述移动终端的5G能力属性信息;receiving an authentication message sent by a mobile terminal, where the authentication message includes 5G capability attribute information of the mobile terminal;
    对所述移动终端的5G能力属性信息进行识别,得到识别结果;Identifying the 5G capability attribute information of the mobile terminal to obtain an identification result;
    根据所述识别结果判断是否将所述移动终端由当前网络切换至5G网络。Whether to switch the mobile terminal from the current network to the 5G network is determined according to the identification result.
  9. 根据权利要求8所述的计算机可读存储介质,其中,所述5G能力属性信息包括属性值;The computer-readable storage medium of claim 8, wherein the 5G capability attribute information includes an attribute value;
    所述对所述移动终端的5G能力属性信息进行识别,得到识别结果,包括:Identifying the 5G capability attribute information of the mobile terminal to obtain an identification result, including:
    识别所述属性值;identifying the attribute value;
    当所述属性值为第一属性值,确定所述识别结果为所述移动终端支持所述5G能力信息;When the attribute value is the first attribute value, determine that the identification result is that the mobile terminal supports the 5G capability information;
    当所述属性值为第二属性值,确定所述识别结果为所述移动终端不支持所述5G能力信息。When the attribute value is the second attribute value, it is determined that the identification result is that the mobile terminal does not support the 5G capability information.
  10. 根据权利要求9所述的计算机可读存储介质,其中,所述属性值包括至少一个比特位;The computer-readable storage medium of claim 9, wherein the attribute value comprises at least one bit;
    所述识别所述属性值,包括:The identifying the attribute value includes:
    当识别到所述至少一个比特位中的预设比特位的数值等于1,确定所述属性值为所述第一属性值;When identifying that the value of the preset bit in the at least one bit is equal to 1, determining that the attribute value is the first attribute value;
    当识别到所述至少一个比特位中的预设比特位的数值等于0,确定所述属性值为所述第二属性值。When it is recognized that the value of the preset bit in the at least one bit is equal to 0, the attribute value is determined to be the second attribute value.
  11. 根据权利要求8所述的计算机可读存储介质,其中,所述根据所述识别结果判断是否将所述移动终端由当前网络切换至5G网络,包括:The computer-readable storage medium according to claim 8, wherein the determining whether to switch the mobile terminal from the current network to the 5G network according to the identification result comprises:
    若所述识别结果为所述移动终端支持5G能力信息,则将所述移动终端由当前网络切换至5G网络;If the identification result is that the mobile terminal supports 5G capability information, switching the mobile terminal from the current network to the 5G network;
    若所述识别结果为所述移动终端不支持5G能力信息,则将所述移动终端由当前网络切换至其他网络。If the identification result is that the mobile terminal does not support 5G capability information, the mobile terminal is switched from the current network to another network.
  12. 根据权利要求11所述的计算机可读存储介质,其中,所述当前网络为VoWIFI网络,所述其他网络为4G网络;或者,所述当前网络为4G网络,所述其他网络为VoWIFI网络。The computer-readable storage medium according to claim 11, wherein the current network is a VoWIFI network, and the other network is a 4G network; or, the current network is a 4G network, and the other network is a VoWIFI network.
  13. 根据权利要求8所述的计算机可读存储介质,其中,所述5G能力属性信息由互联网密钥交换协议中用于分配属性信息的数字标识,所述数字的取值范围为27-16383。The computer-readable storage medium according to claim 8, wherein the 5G capability attribute information is identified by a number used for assigning attribute information in the Internet Key Exchange Protocol, and the value of the number ranges from 27 to 16383.
  14. 根据权利要求8所述的计算机可读存储介质,其中,所述对所述移动终端的5G能力属性信息进行识别,得到识别结果,包括:The computer-readable storage medium according to claim 8, wherein the identifying the 5G capability attribute information of the mobile terminal to obtain an identification result comprises:
    存储所述5G能力属性信息;storing the 5G capability attribute information;
    在接收到所述移动终端的网络切换请求时,对存储的所述5G能力属性信息进行识别,得到识别结果。When the network switching request of the mobile terminal is received, the stored 5G capability attribute information is identified to obtain an identification result.
  15. 一种网关设备,其中,包括处理器和存储器,所述处理器与所述存储器电性连接,所述存储器用于存储指令和数据,所述处理器用于执行:A gateway device, comprising a processor and a memory, the processor is electrically connected to the memory, the memory is used to store instructions and data, and the processor is used to execute:
    接收移动终端发送的认证消息,所述认证消息包括所述移动终端的5G能力属性信息;receiving an authentication message sent by a mobile terminal, where the authentication message includes 5G capability attribute information of the mobile terminal;
    对所述移动终端的5G能力属性信息进行识别,得到识别结果;Identifying the 5G capability attribute information of the mobile terminal to obtain an identification result;
    根据所述识别结果判断是否将所述移动终端由当前网络切换至5G网络。Whether to switch the mobile terminal from the current network to the 5G network is determined according to the identification result.
  16. 根据权利要求15所述的网关设备,其中,所述5G能力属性信息包括属性值;The gateway device according to claim 15, wherein the 5G capability attribute information includes an attribute value;
    所述对所述移动终端的5G能力属性信息进行识别,得到识别结果,包括:Identifying the 5G capability attribute information of the mobile terminal to obtain an identification result, including:
    识别所述属性值;identifying the attribute value;
    当所述属性值为第一属性值,确定所述识别结果为所述移动终端支持所述5G能力信息;When the attribute value is the first attribute value, determine that the identification result is that the mobile terminal supports the 5G capability information;
    当所述属性值为第二属性值,确定所述识别结果为所述移动终端不支持所述5G能力信息。When the attribute value is the second attribute value, it is determined that the identification result is that the mobile terminal does not support the 5G capability information.
  17. 根据权利要求16所述的网关设备,其中,所述属性值包括至少一个比特位;The gateway device of claim 16, wherein the attribute value comprises at least one bit;
    所述识别所述属性值,包括:The identifying the attribute value includes:
    当识别到所述至少一个比特位中的预设比特位的数值等于1,确定所述属性值为所述第一属性值;When identifying that the value of the preset bit in the at least one bit is equal to 1, determining that the attribute value is the first attribute value;
    当识别到所述至少一个比特位中的预设比特位的数值等于0,确定所述属性值为所述第二属性值。When it is recognized that the value of the preset bit in the at least one bit is equal to 0, the attribute value is determined to be the second attribute value.
  18. 根据权利要求15所述的网关设备,其中,所述根据所述识别结果判断是否将所述移动终端由当前网络切换至5G网络,包括:The gateway device according to claim 15, wherein the determining whether to switch the mobile terminal from the current network to the 5G network according to the identification result comprises:
    若所述识别结果为所述移动终端支持5G能力信息,则将所述移动终端由当前网络切换至5G网络;If the identification result is that the mobile terminal supports 5G capability information, switching the mobile terminal from the current network to the 5G network;
    若所述识别结果为所述移动终端不支持5G能力信息,则将所述移动终端由当前网络切换至其他网络。If the identification result is that the mobile terminal does not support 5G capability information, the mobile terminal is switched from the current network to another network.
  19. 根据权利要求18所述的网关设备,其中,所述当前网络为VoWIFI网络,所述其他网络为4G网络;或者,所述当前网络为4G网络,所述其他网络为VoWIFI网络。The gateway device according to claim 18, wherein the current network is a VoWIFI network, and the other networks are 4G networks; or, the current network is a 4G network, and the other networks are VoWIFI networks.
  20. 根据权利要求15所述的网关设备,其中,所述5G能力属性信息由互联网密钥交换协议中用于分配属性信息的数字标识,所述数字的取值范围为27-16383。The gateway device according to claim 15, wherein the 5G capability attribute information is identified by a number used for assigning attribute information in the Internet Key Exchange Protocol, and the value range of the number is 27-16383.
PCT/CN2021/083473 2021-03-03 2021-03-29 Network switching method, storage medium, and gateway device WO2022183550A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110237034.2A CN112839326A (en) 2021-03-03 2021-03-03 Network switching method, device, storage medium and gateway equipment
CN202110237034.2 2021-03-03

Publications (1)

Publication Number Publication Date
WO2022183550A1 true WO2022183550A1 (en) 2022-09-09

Family

ID=75934460

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/083473 WO2022183550A1 (en) 2021-03-03 2021-03-29 Network switching method, storage medium, and gateway device

Country Status (2)

Country Link
CN (1) CN112839326A (en)
WO (1) WO2022183550A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112839326A (en) * 2021-03-03 2021-05-25 惠州Tcl移动通信有限公司 Network switching method, device, storage medium and gateway equipment
WO2024031341A1 (en) * 2022-08-09 2024-02-15 Nokia Shanghai Bell Co., Ltd. Mobility between gateway devices in non-3gpp access

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013168138A1 (en) * 2012-05-11 2013-11-14 Renesas Mobile Corporation Capability reporting in advance on an intersystem handover
US20180199247A1 (en) * 2015-06-24 2018-07-12 Deutsche Telekom Ag Discovering handover capabilities of a mobile communication network
CN111417111A (en) * 2019-01-07 2020-07-14 中国移动通信有限公司研究院 Data processing method and network equipment
CN112839326A (en) * 2021-03-03 2021-05-25 惠州Tcl移动通信有限公司 Network switching method, device, storage medium and gateway equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013168138A1 (en) * 2012-05-11 2013-11-14 Renesas Mobile Corporation Capability reporting in advance on an intersystem handover
US20180199247A1 (en) * 2015-06-24 2018-07-12 Deutsche Telekom Ag Discovering handover capabilities of a mobile communication network
CN111417111A (en) * 2019-01-07 2020-07-14 中国移动通信有限公司研究院 Data processing method and network equipment
CN112839326A (en) * 2021-03-03 2021-05-25 惠州Tcl移动通信有限公司 Network switching method, device, storage medium and gateway equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
ERICSSON: "C1-183074: 5G N3A - info for handover from EPC/ePDG to 5GS", 3GPP TSG-CT WG1 MEETING #111, 25 May 2018 (2018-05-25), XP051459237 *

Also Published As

Publication number Publication date
CN112839326A (en) 2021-05-25

Similar Documents

Publication Publication Date Title
US10069818B2 (en) Method, system, device, and terminal for network initialization of multimedia playback device
US11758399B2 (en) Wireless local area network configuration using probe request frame having authentication information
EP3893109B1 (en) Method and device for connecting bluetooth devices
US11627486B2 (en) Data sending method and apparatus, and device
US10813058B2 (en) Method for processing information and terminal device
WO2018233484A1 (en) Session management method and device
US11706655B2 (en) Data transmission method and terminal
US11258708B2 (en) Communication method and communications apparatus
WO2019052554A1 (en) Method for reducing ue capability signalling structural content, and storage medium and mobile phone
WO2018120905A1 (en) Message reminding method for terminal, and terminal
WO2018196468A1 (en) Method, device and terminal for realizing data service
WO2019029618A1 (en) Ims voice call network switching method, storage device and mobile terminal
KR20210083354A (en) Service-based communication method, unit and system, and storage medium
WO2022183550A1 (en) Network switching method, storage medium, and gateway device
WO2020114382A1 (en) Control method for network access and communication device
CN106470234B (en) Equipment discovery method and device
WO2022001051A1 (en) Resource configuration method and system, terminal device, and network device
KR102593774B1 (en) Cell switching method, terminal and communication node
CN112867171B (en) WIFI connection method and device, storage medium and mobile terminal
CN106815077B (en) Data processing method based on intelligent device architecture and intelligent device
JP2023509407A (en) Multicast service processing method, multicast service configuration method, terminal and network equipment
CN113301509A (en) Communication method and related equipment
WO2018103442A1 (en) Information processing method and terminal device
WO2015089825A1 (en) Auxiliary carrier changing method, terminal, network equipment and system
CN110262744B (en) Switching method of touch device, terminal equipment and storage medium

Legal Events

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

Ref document number: 21928631

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21928631

Country of ref document: EP

Kind code of ref document: A1