Session network control method and device, equipment, storage medium and computer program product
By analyzing the reasons for network switching rejection in the terminal and reinitiating the session request, the problem of poor signal quality caused by network switching failure in 5G SA/4G/VoWiFi hybrid networking mode is solved, improving communication quality and call service stability.
Patent Information
- Application Number
- CN202410747683.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-11
- Publication Date
- 2024-10-11
AI Technical Summary
In the 5G SA/4G/VoWiFi hybrid networking mode, the terminal cannot effectively identify different networks when switching between cellular and WiFi networks, resulting in poor signal quality, which may lead to problems such as call origination failure and called failure.
After receiving the handover rejection message, the terminal analyzes the reason for the rejection. If the reason is a preset reason, it will initiate a second request to the target network to establish an initial session under the same APN, thereby avoiding staying in the initial network with poor signal. .
It effectively improves the communication quality of the terminal, avoids call failures and call service impacts caused by poor signals, and ensures the continuity of voice services.
Smart Images

Figure CN118764925A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a session network control method, apparatus, terminal equipment, access network equipment, core network equipment, storage medium and computer program product. Background Art
[0002] In the case of 5G SA (Standalone) mode / 4G / VoWiFi hybrid networking, since the network supports 4G and VoWiFi switching but does not support SA and VoWiFi switching, the terminal cannot distinguish the switching capabilities under different networks after turning on the cellular and WiFi switching functions.
[0003] When the terminal receives the handover rejection message, it will keep the session connection on the initial network. However, the signal of the initial network is poor and can no longer provide high-quality voice services, which may cause the terminal to face problems such as call initiation failure and called failure.
[0004] Therefore, there is a problem of poor terminal communication quality in the related art. Summary of the invention
[0005] Based on this, it is necessary to provide a session network control method, device, terminal equipment, access network equipment, core network equipment, storage medium and computer program product that can improve the terminal communication quality in response to the above technical problems.
[0006] In a first aspect, the present application provides a session network control method, which is applied to a terminal, wherein the terminal has established a session in a first network, and the method includes:
[0007] Initiate a first request to a second network; the first request is used to request to switch the session from the first network to the second network;
[0008] Receive rejection information returned for the first request, and when it is determined that the rejection reason corresponding to the rejection information is a preset reason, initiate a second request to the second network; the second request is used to establish an initial session for the terminal under the second network using the same access point name APN as the session.
[0009] In one of the embodiments, before initiating the second request to the second network, the method further includes:
[0010] A session release request for releasing the session is initiated to the first network; the session release request carries a session identifier and APN information of the session.
[0011] In one of the embodiments, after receiving the rejection information returned for the first request, the method further includes:
[0012] When it is determined that the rejection reason corresponding to the rejection information is not the preset reason, if the Internet Key Exchange Protocol IKEv2 identity authentication passes, the current IKEv2 security context is closed.
[0013] In one of the embodiments, when determining that the rejection reason corresponding to the rejection information is a preset reason, initiating a second request to the second network includes:
[0014] If it is determined that the rejection reason corresponding to the rejection information is a preset reason, and the Internet Key Exchange Protocol IKEv2 identity authentication is passed and the corresponding security association has been established, a second request carrying an indication of establishing an initial session is initiated to the second network, so as to use the negotiated IKEv2 security context to establish an initial session for the terminal under the second network using the same APN as the session.
[0015] In one embodiment, the method further comprises:
[0016] In a case where it is detected that the session under the first network is associated with an ongoing voice service, the session under the first network is continued.
[0017] In one embodiment, when the first network is a 3GPP network and the second network is a WiFi network,
[0018] The initiating a first request to the second network includes:
[0019] Initiate a first authentication request carrying switching indication information to the data gateway as the first request, implement IKEv2 identity authentication for the terminal through interaction between the data gateway and the core network, and after the IKEv2 identity authentication passes, the data gateway sends a first session establishment request to the core network to switch the session from the 3GPP network to the WiFi network;
[0020] The receiving rejection information returned for the first request includes:
[0021] Receiving a first response message or a second response message returned by the data gateway; the first response message or the second response message includes a corresponding rejection reason;
[0022] The first response information is a response message when the core network returns an error code to the data gateway in response to the first session establishment request;
[0023] The second response message is a response message when the data gateway cannot obtain, through the core network, the PGW network element identifier to which the terminal is connected when attaching to the 3GPP network.
[0024] In one of the embodiments, when determining that the rejection reason is a preset reason, initiating a second request to the second network includes:
[0025] When it is determined that the rejection reason is a preset reason, a second authentication request carrying new connection indication information is initiated to the data gateway; IKEv2 identity authentication for the terminal is implemented through interaction between the data gateway and the core network, and after the IKEv2 identity authentication is passed, the data gateway sends a second session establishment request to the PGW network element to create a new initial session for the terminal in the WiFi network.
[0026] In one embodiment, the data gateway is an evolved packet data gateway ePDG, and the method specifically includes:
[0027] The terminal initiates a first authentication request carrying packet data network PDN switching indication information to the ePDG, implements IKEv2 identity authentication for the terminal through interaction between the ePDG and the 3GPP AAA, and after the IKEv2 identity authentication passes, the ePDG sends a first session establishment request to the PGW network element of the core network, where the first session establishment request carries a switching indication for switching the session from the 3GPP network to the WiFi network and the IP address reported by the terminal;
[0028] The terminal receives a first IKE authorization response returned by the ePDG; the notification message of the first IKE authorization response carries a rejection reason indicating that switching is not supported, the first IKE authorization response is issued after the ePDG receives a session creation response returned by the PGW network element for the first session establishment request, and the session creation response carries an error code indicating that switching is not supported;
[0029] When the terminal determines, based on the first IKE authorization response, that the rejection reason is that handover is not supported, the terminal initiates a second authentication request carrying new PDN connection indication information to the ePDG.
[0030] In one of the embodiments, after the terminal initiates a first authentication request carrying packet data network PDN switching indication information to the ePDG, the method further includes:
[0031] In a case where the ePDG cannot obtain, through the UDM / HSS, the PGW network element identifier to which the terminal is connected when the terminal is attached to the 3GPP network, the terminal receives a second IKE authorization response replied by the ePDG, where the second IKE authorization response carries a rejection reason indicating that handover is not supported;
[0032] When the terminal determines, based on the second IKE authorization response, that the rejection reason is that handover is not supported, the terminal initiates a second authentication request carrying new PDN connection indication information to the ePDG.
[0033] In one of the embodiments, when the first network is a WiFi network and the second network is a 3GPP network, the initiating a first request to the second network includes:
[0034] Initiate a request to switch from the WiFi network to the 3GPP network to an access mobility management network element as the first request;
[0035] The receiving rejection information returned for the first request includes:
[0036] Receive rejection information returned by the access mobility management network element in response to the first request, where the rejection information includes a reason for the 3GPP network to reject the first request.
[0037] A second aspect provides a session network control method, applied to a data gateway, the method comprising:
[0038] receiving a first request initiated by a terminal and carrying a switching indication, initiating a first session establishment request to a core network, and carrying an indication of switching a session from a 3GPP network to a WiFi network and an IP address reported by the terminal; the session is a session established by the terminal in the 3GPP network;
[0039] receiving a session creation response carrying a rejection reason returned by the core network in response to the first session establishment request, and returning a first response message carrying the rejection reason to the terminal according to the session creation response;
[0040] Receive a second request initiated by the terminal and carrying a new connection indication, and initiate a second session establishment request to the core network; the second request is initiated by the terminal when it is determined that the rejection reason is a preset reason; the second session establishment request is used to request to establish an initial session for the terminal under the WiFi network using the same APN as the session.
[0041] In one of the embodiments, after receiving the first request initiated by the terminal and carrying the switching indication, the method further includes:
[0042] When the data gateway cannot obtain from the core network the PGW network element identifier to which the terminal is connected when attaching to the 3GPP network, the data gateway replies to the terminal with a second response message carrying a rejection reason.
[0043] A third aspect provides a session network control method, which is applied to access a mobility management network element. The method includes:
[0044] receiving a first request carrying a switching indication initiated by a terminal, and initiating a third session establishment request for handing over a session of the terminal from a WiFi network to a 3GPP network to a session management network element; the terminal has established the session in the WiFi network, and the WiFi network is a current network of the IMS session;
[0045] receiving a rejection reason returned by the session management network element in response to the third session establishment request, and replying a response message carrying the rejection reason to the terminal;
[0046] Receive a second request initiated by the terminal and carrying an indication of a new connection, and initiate a fourth request to establish a session to the session management network element; the second request is initiated by the terminal when it is determined that the rejection reason is a preset reason; the fourth request to establish a session is used to request to establish an initial session for the terminal under the 3GPP network using the same APN as the session.
[0047] A fourth aspect provides a session network control device, applied to a terminal, wherein the terminal has established a session in a first network, and the device includes:
[0048] A network switching request module, configured to initiate a first request to a second network; the first request is used to request switching the session from the first network to the second network;
[0049] A session creation request module is used to receive the rejection information returned for the first request, and when it is determined that the rejection reason corresponding to the rejection information is a preset reason, initiate a second request to the second network; the second request is used to establish an initial session for the terminal under the second network using the same APN as the session.
[0050] A fifth aspect provides a session network control device, applied to a data gateway, the device comprising:
[0051] A first terminal request processing module, configured to receive a first request initiated by a terminal and carrying a switching indication, initiate a first session establishment request to a core network, and carry an indication of switching a session from a 3GPP network to a WiFi network and an IP address reported by the terminal; the terminal has established the session in the 3GPP network;
[0052] a first information feedback module, configured to receive a session creation response carrying a rejection reason returned by the core network in response to the first session establishment request, and return a first response message carrying the rejection reason to the terminal according to the session creation response;
[0053] The first terminal request processing module is also used to receive a second request initiated by the terminal and carrying a new connection indication, and initiate a second session establishment request to the core network; the second request is initiated by the terminal when it is determined that the rejection reason is a preset reason; the second session establishment request is used to request to establish an initial session for the terminal under the WiFi network using the same APN as the session.
[0054] The sixth invention provides a session network control device, which is applied to access a mobility management network element, and the device includes:
[0055] A second terminal request processing module, configured to receive a first request carrying a switching indication initiated by a terminal, and initiate a third session establishment request for handing over the session of the terminal from the WiFi network to the 3GPP network to a session management network element; the terminal has established the session in the WiFi network;
[0056] A second information feedback module is configured to receive a rejection reason returned by the session management network element for the third session establishment request, and reply a response message carrying the rejection reason to the terminal;
[0057] The second terminal request processing module is also used to receive a second request initiated by the terminal and carrying a new connection indication, and initiate a fourth session establishment request to the session management network element; the second request is initiated by the terminal when it is determined that the rejection reason is a preset reason; the fourth session establishment request is used to request to establish an initial session for the terminal under the 3GPP network using the same APN as the session.
[0058] The seventh aspect provides a terminal device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any one of the methods described above when executing the computer program.
[0059] An eighth aspect provides an access network device, including a transmitter and a receiver.
[0060] The receiver is used to receive a first request initiated by the terminal and carrying a switching indication, and the transmitter is used to initiate a first session establishment request to the core network, and carry an indication of switching the session from the 3GPP network to the WiFi network and the IP address reported by the terminal; the session is a session established by the terminal in the 3GPP network;
[0061] The receiver is further configured to receive a session creation response carrying a rejection reason returned by the core network in response to the first session establishment request, and the transmitter is further configured to return a first response message carrying the rejection reason to the terminal according to the session creation response;
[0062] The receiver is also used to receive a second request initiated by the terminal and carrying a new connection indication, and the transmitter is also used to initiate a second session establishment request to the core network; the second request is initiated by the terminal when it is determined that the rejection reason is a preset reason; the second session establishment request is used to request to establish an initial session for the terminal under the WiFi network using the same APN as the session.
[0063] A ninth aspect provides a core network device, including a transmitter and a receiver,
[0064] The receiver is used to receive a first request carrying a switching indication initiated by a terminal, and the transmitter is used to initiate a third session establishment request for handing over the session of the terminal from the WiFi network to the 3GPP network to the session management network element; the terminal has established the session in the WiFi network;
[0065] The receiver is further configured to receive a rejection reason returned by the session management network element for the third session establishment request, and the transmitter is further configured to reply a response message carrying the rejection reason to the terminal;
[0066] The receiver is also used to receive a second request initiated by the terminal and carrying an indication of a new connection, and the transmitter is also used to initiate a fourth request to establish a session to the session management network element; the second request is initiated by the terminal when it is determined that the rejection reason is a preset reason; the fourth request to establish a session is used to request to establish an initial session for the terminal under the 3GPP network using the same APN as the session.
[0067] In a tenth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the session network control method as described in the first aspect, the second aspect, or the third aspect are implemented.
[0068] In an eleventh aspect, the present application further provides a computer program product, wherein the computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the session network control method as described in the first aspect, the second aspect or the third aspect are implemented.
[0069] In the above-mentioned session network control method, device, equipment, storage medium and computer program product, the terminal has established a session in the first network. The terminal can initiate a first request to the second network under preset circumstances. The first request is used to request to switch the session from the first network to the second network. If the terminal receives a rejection message, when it is determined that the rejection reason is a preset reason, the terminal will initiate a second request to the second network. The second request is used to establish a new initial session for the terminal under the second network using the same APN as the session. In this way, after the voWiFi switching fails, the terminal can use the same APN to establish a new initial session under the target network, which can avoid the terminal's session always residing in the initial network that is not suitable for providing services, and effectively ensure the terminal's session quality. BRIEF DESCRIPTION OF THE DRAWINGS
[0070] Figure 1 A schematic diagram of a flow chart of a session network control method in one embodiment;
[0071] Figure 2 is a flow chart of a session network control method according to another embodiment;
[0072] Figure 3 is a schematic diagram of a handover process from a 3GPP network to a WiFi network in one embodiment;
[0073] Figure 4 is a schematic diagram of a handover process from a 3GPP network to a WiFi network in another embodiment;
[0074] Figure 5 is a flow chart of a session network control method in yet another embodiment;
[0075] Figure 6 A schematic diagram of a process of switching from a Wifi network to a SA network in one embodiment;
[0076] Figure 7 A schematic diagram of a process for a terminal to establish a PDU session in an SA network in an embodiment;
[0077] Figure 8 is a structural block diagram of a session network control device in one embodiment;
[0078] Fig. 9 is a structural block diagram of a session network control device in another embodiment;
[0079] Fig.10 It is a structural block diagram of a session network control device in yet another embodiment;
[0080] Fig.11 is an internal structure diagram of a terminal device in one embodiment;
[0081] Fig.12 FIG. 4 is an internal structure diagram of an access network device in an embodiment. DETAILED DESCRIPTION
[0082] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0083] First, the terms related to the present disclosure are explained.
[0084] EPC: Evolved Packet Core, evolved packet core network.
[0085] ePDG: Evolved Packet Data Gateway, the main function is to ensure that the user terminal for data transmission is connected to the EPC through an untrusted non-3GPP access network, providing Wi-Fi users with a secure connection to the EPC network.
[0086] 5GC: 5th Generation Core Network, refers to the core network of the fifth generation mobile communication system.
[0087] AMF: Access and Mobility Management Function, access and mobility management function, is mainly used to perform registration, reachability, and mobility management, and provide a session management message transmission channel for UE (terminal) and SMF.
[0088] SMF: Session Management Function, session management function.
[0089] UPF: User Plane Function, user plane function.
[0090] UDM: user data management, user data management.
[0091] RAN: Radio Access Network.
[0092] UE: User Equipment, user terminal.
[0093] PCF: Packet Control Function, packet control function.
[0094] SM: Session Management, also known as the session management layer, is mainly responsible for managing sessions on mobile devices, including establishing, modifying, and terminating sessions.
[0095] NSMF: Network Slice Management Function, network slice management function.
[0096] PGWC: Packet Data Network Gateway Control Plane, also known as PGW-C. It is one of the important components in the mobile core network, used to process and control packet data communication services in the mobile network.
[0097] HSS: Home Subscriber Server, which is mainly responsible for managing the user's subscription data and the location information of mobile users.
[0098] AAA: Authentication, Authorization, and Accounting. It is a control mechanism for network security.
[0099] In the VoWiFi application stage, operators deploy VoWiFi networks to compensate for the problem of insufficient indoor cellular coverage. When the cellular signal strength of the terminal does not meet the threshold requirement, the terminal can initiate a PDN (Packet Data Network) connection establishment request in the WiFi network, carrying the DNN (Data Network Name) and IP address of the original network, and obtain the PGW-U (PDN Gateway User Plane) / UPF (User Plane Function) information corresponding to the PDU session from HSS (Home Subscriber Service) / UDM (User Data Management Function) via ePDG (Evolved Packet Data Gateway) via AAA (Authentication Authorization and Billing Service). Then ePDG can request PGW-C (PDN Gateway Control Plane) / SMF (Session Management Function) to restore the session. If the request is successful, the same IP address is returned to the terminal.
[0100] In the case of 5G SA / 4G / VoWiFi hybrid networking, the network can support interoperability between 4G LTE network and WiFi network, but does not support interoperability between 5G SA network and WiFi network. After the terminal turns on the switching function between cellular and WiFi, it will be rejected by the network when trying to switch between SA network and WiFi network because it cannot distinguish the switching capabilities under different networks. After receiving the rejection message, the terminal will keep the session connection in the original network. At this time, if the signal of the original network is already poor, it will not be able to provide high-quality voice services. For example, when the terminal attempts to switch from the SA network to the WiFi network and is rejected, it will cause the terminal to be unable to reselect to the WiFi network to initiate a VoWiFi call while residing in the SA network, which may cause the terminal to face problems such as call initiation failure and called failure in the future.
[0101] In order to prevent the terminal session from always staying on an inappropriate original network, the present application proposes a method in which the terminal can re-initiate a PDN connection establishment request to the target network after a handover failure, thereby preventing the terminal from always staying on an original network that is not suitable for providing services, resulting in call establishment failure or dropped calls affecting call services.
[0102] In one embodiment, Figure 1 As shown, a session network control method is provided. This embodiment takes the method applied to a terminal as an example. The terminal may be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices, and portable wearable devices. It may have a VoWiFi network communication function, and the terminal has established a session in the first network.
[0103] Step 101: The terminal initiates a first request to the second network;
[0104] Among them, the first network can be a WiFi network or a 3GPP network (such as a 5G SA network); the first request can carry a switching indication, for example, setting the Handover flag position to 1 in the request to request to switch the terminal session from the first network to the second network.
[0105] As an example, the first request may carry information such as the session identifier of the session to be switched, the IP address corresponding to the session, and the Handover type. Specifically, it may carry the IMS session information of the original network (IMS session ID, IP address, etc.) and switching indication information to ensure the continuity of the session.
[0106] In an exemplary embodiment, the terminal may attempt to switch networks when the signal of the current network of the session is poor, that is, when it detects that the network quality of the first network is lower than a preset condition, it initiates a first request for requesting to switch the session from the first network to the second network.
[0107] The method disclosed herein may be used for a case where a terminal switches a session from a 3GPP network to a WiFi network, or may be used for a case where a terminal switches a session from a WiFi network to a 3GPP network.
[0108] As an example, when a terminal switches a session from a 3GPP network to a WiFi network, the terminal may consider the network quality of the 5GNR network to be lower than a preset condition when the RSRP (Reference Signal Receiving Power) of the 5G NR network is less than -110dBm, and the terminal attempts to switch the session to the WiFi network. The NR access process refers to a series of steps when the terminal enters the 5G network.
[0109] Step 102: The terminal receives rejection information returned for the first request, and when determining that the rejection reason corresponding to the rejection information is a preset reason, initiates a second request to the second network. The second request may be used to request to establish an initial session for the terminal in the second network using the same APN as the session to be switched.
[0110] The rejection reason may be included in the notification message. As an example, the format of the notification message may be:
[0111] Notify Message
[0112] Value (decimal)
[0113] Descriptions
[0114] Correspondingly, the notification message carrying the specific rejection reason may be:
[0115] Switching is not supported 8192
[0117] - This error type is used to indicate that the PGW identity of the previous PDN connection was not found in the 3GPP access, or the PGW does not support handover.
[0118] In the present disclosure, the second request does not include the session identifier of the session under the first network and the IP address corresponding to the session, nor does it include a switching indication, but carries a new session indication information to request the network to establish a new PDN connection / PDU session for the terminal under the second network using the same APN as the above session, and assign a new IP address.
[0119] In a specific implementation, when the network does not support switching from the first network to the second network, the terminal's networking switching request will be rejected. After receiving the rejection information, the terminal identifies the rejection reason. When it is determined that the rejection reason corresponding to the rejection information is a preset reason, a second request for establishing an initial session is initiated to the second network, thereby avoiding the terminal always staying on the first network that is not suitable for providing services, thereby ensuring the call quality.
[0120] For example, taking the case where the terminal switches the session from the 3GPP network to the WiFi network, the network does not support switching, and the terminal receives a rejection message. Afterwards, if the terminal determines that the reason for the rejection is that the switching between the 5G network and the WiFi network is not supported, or there is no PDU session, the terminal can retry to initiate a second request to establish an initial connection for the PDN session under the WiFi network using the same APN as the above session. Even if the terminal is not disconnected from the 5G network, since the terminal has established an initial session on the WiFi network, the session can be carried on the WiFi network when making a call, thereby ensuring the call quality of the terminal.
[0121] In one example, when the terminal determines that the rejection reason corresponding to the rejection information is a preset reason, the terminal may initiate a second request for establishing a PDN initial session or a PDU initial session.
[0122] Compared with the traditional situation where the network does not support switching between the 5G network and the WiFi network and rejects the terminal's switching request, the terminal will keep the session on the original network. When the terminal makes a call, the session is still carried on the original network, resulting in poor call quality. The technical solution of the above embodiment of the present disclosure, after the terminal is rejected for switching, can determine whether to keep the session on the original network by analyzing the rejection reason. When it is determined that the rejection reason is that the network does not support the current switching or the session does not exist, the terminal can initiate a request to establish an initial session. Even if the terminal is not disconnected from the original network, since the terminal has established a session on WiFi, the session is carried on the WiFi network when making a call, so that the call quality is more guaranteed.
[0123] In one embodiment, when the terminal determines that the rejection reason corresponding to the rejection information is a preset reason, a specific implementation method of initiating the second request to the second network may include:
[0124] If the terminal determines that the rejection reason corresponding to the rejection information is a preset reason, and the Internet Key Exchange Protocol IKEv2 identity authentication is passed and the corresponding security association has been established, a second request carrying an indication of establishing an initial session is initiated to the second network to establish an initial session for the terminal under the second network using the same APN as the session to be switched.
[0125] As an implementation method, when the terminal determines that the rejection reason is a preset reason, if the IKEv2 identity authentication of the terminal passes at this time, the negotiated IKEv2 security context can be used to establish an initial session for the terminal in the second network using the same APN as the session to be switched.
[0126] In the above session network control method, after the terminal receives the information that the network refuses to switch its session from the first network to the second network, if it determines that the rejection reason is the preset reason, the terminal can initiate a second request again, and the second request is used to establish an initial session for the terminal in the second network using the same APN as the session to be switched. In this way, it can avoid that the terminal's session always resides in the original network that is not suitable for providing services, thereby ensuring the call quality.
[0127] In one embodiment, the specific situation in which the terminal initiates the first request to the second network is: when it is detected that the signal strength of the first network is less than a first threshold and the signal strength of the second network is greater than a second threshold, the terminal initiates the above-mentioned first request.
[0128] Specifically, taking the example of the terminal switching the session from the 5G SA network to the WiFi network, when the terminal measures the RSRP of the 5G NR network <-110dBm and the RSSI (Received Signal Strength Indicator) of the WiFi network >-75dBm, it is determined that the signal strength of the first network is less than the first threshold and the signal strength of the second network is greater than the second threshold. The terminal initiates a network switching request (i.e., a first request) to switch the PDU session to the WiFi network in an attempt to switch the session to the WiFi network.
[0129] Through this embodiment, the terminal initiates a network switching request only when it detects that the signal strength of the first network is less than the first threshold and the signal strength of the second network is greater than the second threshold. This can avoid frequent switching of terminal networks and reduce network overhead while ensuring the quality of terminal calls.
[0130] In one embodiment, after detecting that the signal strength of the first network is less than the first threshold and the signal strength of the second network is greater than the second threshold, the terminal can also obtain the current signal measurement information of the second network again before initiating the second request; the current signal measurement information includes the current signal strength of the second network; if the current signal strength of the second network is still greater than the second threshold, the step of initiating the second request is executed.
[0131] Through this embodiment, by detecting the current signal measurement information of the second network again and determining that the second network still meets the signal strength threshold, the step of initiating the second request is executed. This can avoid the problem of network switching failure caused by large fluctuations in the signal strength of the second network, and help to ensure call quality.
[0132] In one embodiment, when the terminal determines that the rejection reason is a preset reason, before initiating the second request to the second network, the terminal further includes: initiating a session release request to the first network for releasing the session to be switched; the session release request carries the session identifier and APN information of the session, and the session release request is used to release the session to be switched under the first network. By releasing the session under the first network in a timely manner, session management conflicts can be avoided.
[0133] In one embodiment, after the terminal initiates the second request to the second network, the terminal may further include the steps of: receiving a new IP address allocated by the second network for the initial session established for the terminal; and initiating a service re-registration request for the initial session of the terminal to the core network based on the new IP address.
[0134] In a specific implementation, after the initial session is successfully established for the terminal in the second network, the terminal can obtain the IP address of the initial session, and then initiate re-registration with the core network for the initial session.
[0135] In one embodiment, when the terminal determines that the rejection reason is a preset reason, before initiating the second request to the second network, the terminal may also include the following steps: when it is detected that the session under the first network is not associated with the ongoing voice service, determine whether the rejection reason is a preset reason; when it is detected that the session under the first network is associated with the ongoing voice service, continue to maintain the session under the first network, and no longer attempt to initiate the second request to the second network.
[0136] As an example, after the terminal initiates a handover type PDN connection establishment request / PDU session establishment request and is rejected by the network, it first determines whether there is an ongoing voice service in the PDU session or PDN connection under the original network. If not, the terminal further determines the reason why the network rejected the handover. When the rejection reason is that the session does not exist or the handover is not supported, the terminal immediately initiates a PDN connection establishment / PDU session establishment request carrying an indication to establish an initial session to the target network. If the session under the first network is associated with an ongoing voice service, the terminal continues to maintain the session in the first network and no longer attempts to initiate a PDN connection establishment / PDU session establishment request to the second network. Through this mechanism, the communication quality of the ongoing voice service can be better guaranteed, and the user experience can be guaranteed.
[0137] In an optional embodiment, after the terminal initiates the network switching request for the first time, the terminal can record the network switching capability. Specifically, the terminal can record that the network does not support the session switching from network A to network B according to the rejection reason returned by the switching failure. The next time the terminal is in the voice service idle state, if the session needs to be transferred from network A to network B, the terminal directly initiates the initial session establishment request to network B based on the recorded network switching capability information, and no longer initiates the first request carrying the switching indication. In this way, the network switching time of the terminal session can be shortened, and the user experience can be further guaranteed.
[0138] In one embodiment, when the first network is a 3GPP network and the second network is a WiFi network, the step of the terminal initiating a first request to the second network specifically includes: initiating a first authentication request carrying switching indication information to the data gateway as the first request. Through the interaction between the data gateway and the core network, the IKEv2 identity authentication for the terminal is realized, and after the IKEv2 identity authentication is passed, the data gateway sends a first session establishment request to the core network to switch the session from the 3GPP network to the WiFi network. Correspondingly, the step of the terminal receiving the rejection information returned for the first request specifically includes: receiving the first response information or the second response message returned by the data gateway; the first response information or the second response message contains the corresponding rejection reason; wherein the first response information is a response message when the core network returns an error code to the data gateway for the first session establishment request; wherein the second response message is a response message when the data gateway cannot obtain the PGW network element identifier to which the terminal is connected when attached to the 3GPP network through the core network.
[0139] It is further explained that if the terminal is connected to a non-3GPP access and the terminal has been assigned a PDN gateway due to a previous attachment in the 3GPP access, the HSS provides the PDN gateway identifier (i.e., the PGW network element identifier) and the PLMN information of the identifier of each assigned PDN gateway to the 3GPP AAA server through the SWX reference point, where each PDN gateway has corresponding PDN information.
[0140] Furthermore, when the terminal determines that the rejection reason is a preset reason, the terminal initiates a second authentication request carrying new connection indication information to the data gateway; IKEv2 identity authentication for the terminal is implemented through the interaction between the data gateway and the core network, and after the IKEv2 identity authentication is passed, the data gateway sends a second session establishment request to the PGW network element to create a new initial session for the terminal in the WiFi network.
[0141] To further illustrate the above content, when the data gateway is an evolved packet data gateway ePDG, an example is given of the implementation process of switching a terminal session from a 3GPP network to a WiFi network:
[0142] The terminal initiates a first authentication request (which can be understood as a request form of the above-mentioned first request) carrying PDN switching indication information to the ePDG, implements the IKEv2 identity authentication of the terminal through the interaction between the ePDG and the 3GPP AAA, and after the IKEv2 identity authentication is passed, the ePDG sends a first session establishment request to the PGW network element to switch the session of the terminal from the 3GPP network to the WiFi network;
[0143] In some cases, the PGW network element returns a response message carrying a rejection reason to the ePDG for the first session establishment request, and the ePDG also carries the corresponding rejection reason in the response message sent to the terminal;
[0144] The terminal receives the response message returned by the ePDG. When determining that the rejection reason is the preset reason, the terminal initiates a second authentication request (which can be understood as a request form of the above-mentioned second request) carrying the new PDN connection indication information to the ePDG. The request does not contain the session identifier and the IP address corresponding to the session.
[0145] Alternatively, in other cases, when the ePDG cannot obtain the PGW network element identifier to which the terminal is connected when the terminal is attached to the 3GPP network through UDM / HSS, the ePDG will reply to the terminal with a response message, which carries the corresponding rejection reason; the terminal receives the response message, and when it determines that the rejection reason is a preset reason, it initiates a second authentication request to the ePDG carrying new PDN connection indication information, and the request does not include the session identifier and the IP address corresponding to the session.
[0146] As an example, in the process of the terminal initiating a second authentication request carrying the newly created PDN connection indication information to the ePDG, in order to indicate the initial attachment, the terminal shall include the internal_ip4_address attribute or the internal_ip6_address attribute or both attributes in the cfg_request configuration payload in the IKE_AUTH request message. And the internal_ip4_address shall not contain any value, and the length field shall be set to 0. The internal_ip6_address shall not contain any value, and the length field shall be set to 0.
[0147] Taking the IMS session as an example, when the terminal wants to switch the IMS session from the 3GPP network to the WiFi network, if the first network is a 5G SA network and the second network is a WiFi network, if the terminal initiates a handover type related request to the ePDG / N3IWF and is rejected by the network, the terminal can determine whether the IMS PDU session or IMS PDN connection under the original network has an ongoing voice service. If not, the terminal further determines the reason for the network rejection. When the rejection reason is that the session does not exist or the switching is not supported, the terminal can immediately initiate a new PDN connection establishment / PDU session establishment request to the WiFi network.
[0148] In one embodiment, when the first network is a WiFi network and the second network is a 3GPP network, the network switching process of the terminal may include the following steps:
[0149] The terminal initiates a request to the access mobility management network element to switch from the WiFi network to the 3GPP network (which can be understood as another request form of the above-mentioned first request) as a first request; the terminal receives the rejection information returned by the access mobility management network element for the first request, and the rejection information includes the corresponding rejection reason.
[0150] Among them, the access mobility management network element can be AMF, which is a network element of the 5G core network.
[0151] In one example, when the terminal needs to switch the session from the WiFi network to the 3GPP network, if the terminal initiates a handover type request to the EPC / 5GC network and the request is rejected by the network, the terminal can determine whether there is an ongoing voice service in the PDU session or PDN connection under the WiFi network. If not, the terminal further determines the reason for the network rejection. When the reason for the rejection is that the session does not exist or the switch is not supported, the terminal can initiate a request to establish a PDN initial session / PDU initial session to the 3GPP network, and then create a session under the 3GPP network to avoid the terminal session being kept in a WiFi network with poor network quality, thereby ensuring communication quality.
[0152] In one embodiment, Figure 2 As shown, another session network control method is provided, which is described by taking the method applied to a data gateway as an example, and includes the following steps:
[0153] Step 201: The data gateway receives a first request initiated by a terminal and carrying a switching indication, initiates a first session establishment request to a core network, and carries an indication of switching a session from a 3GPP network to a WiFi network and an IP address reported by the terminal; the session is a session established by the terminal in the 3GPP network;
[0154] In step 202, the data gateway receives a session creation response carrying a rejection reason returned by the core network for the first session establishment request, and returns a first response message carrying the rejection reason to the terminal based on the session creation response; or, when the data gateway cannot obtain the PGW network element identifier to which the terminal is connected when the terminal is attached to the 3GPP network from the core network, the data gateway replies to the terminal with a second response message carrying the rejection reason.
[0155] Step 203: The data gateway receives a second request initiated by the terminal and carrying a new connection indication, and initiates a second session establishment request to the core network; the second request is initiated by the terminal when it is determined that the rejection reason is a preset reason; the second session establishment request is used to request to establish an initial session for the terminal under the WiFi network using the same APN as the session.
[0156] Based on this embodiment, after the handover request of the terminal is rejected by the network, if the rejection reason is a preset reason, the terminal can initiate a second request to the data gateway again, and through the interaction between the data gateway and the core network, an initial session is established for the terminal in the second network using the same APN as the session to be switched. In this way, it can avoid that the terminal's session always resides in the original network that is not suitable for providing services, thereby ensuring the call quality.
[0157] Furthermore, the information exchange on the data gateway side also includes:
[0158] Step 204: The data gateway receives the newly created initial session information returned by the core network in response to the second session establishment request, and sends the newly created initial session information to the terminal; wherein the newly created initial session information includes a new IP address, and the new IP address is the IP address allocated by the WiFi network for the initial session.
[0159] According to this embodiment, since the IP address obtained by the terminal may change after the handover is completed, the terminal may use the new IP address to initiate IMS re-registration to the IMS core network.
[0160] In an example, in order to enable those skilled in the art to better understand the above steps, the following Figure 3 The embodiment of the present application is illustrated by an example of switching from a 3GPP network to a WiFi network, but it should be understood that the embodiment of the present application is not limited to this.
[0161] 1. The terminal (UE) can establish an IMS PDU session in the 3GPP network through NR access;
[0162] 2. PGW-C / SMF registers the session information of the session in HSS / UDM;
[0163] 3. When the terminal measures that the RSRP of NR is less than -110dBm (a threshold set in advance) and the RSSI of WiFi is greater than -75dBm (another threshold set in advance), it can be determined that the PDU session will be switched to the WiFi network;
[0164] 4. The terminal initiates a first IKEv2 authentication request carrying PDN connection switching to the ePDG (i.e., a type of data gateway) to initiate an IKEv2 identity authentication process on the WiFi network and complete the 3GPP AAA authentication process. In order to maintain session continuity, the terminal can carry a session identifier and the previously obtained IP address in the request sent;
[0165] 5. After the authentication is completed, the ePDG can initiate a Create Session Request (i.e., the first session establishment request) to the core network. In the request, the Handover flag is set to 1 (representing a request for network switching). The request is rejected by the PDN gateway because the session does not exist.
[0166] As an example, the first session establishment request carries a switching indication, a session identifier and APN of the session, a RAT type, an EPDG TEID of the control plane, an EPDG address of the user plane, an EPDG TEID of the user plane, an EPS bearer identifier, and location information of the terminal.
[0167] 6. The ePDG returns an IKE_AUTH response (first IKE authorization response) to the terminal. The message code in the message is failure (indicating failure), and the notification message notify messag type carried in the message is that switching from 5GC is not supported or the PDU session does not exist;
[0168] 7. The terminal receives the IKE_AUTH response returned by the ePDG, determines that the rejection reason is the preset reason, and again initiates a second IKE_AUTH request to the ePDG carrying an indication of establishing a new PDN connection. The request does not carry a session identifier and an IP address.
[0169] 8. After receiving the second IKE_AUTH request, the ePDG authenticates the terminal, and then initiates a Create Session Request (i.e., the second session establishment request) to the core network. The Handover flag bit is set to 0 in the request (indicating that network switching is not required). After receiving the Create Session Request, the core network establishes a PDU initial session for the terminal under the WiFi network. The PDU initial session uses the same APN as the original session, and returns a Create Session Response carrying session information to the ePDG through the PDN gateway. After receiving the Create Session Response, the ePDG obtains the session information of the PDU initial session and sends it to the terminal;
[0170] 9. After receiving the session information, the terminal re-registers for the initial session of the PDU;
[0171] 10. The terminal's ability to record networks. In the current example, the network does not support switching from 3GPP networks to WiFi networks.
[0172] 11. When the terminal needs to switch the session from the 3GPP network to the WiFi network again, the terminal directly initiates the above-mentioned second IKE_AUTH request to the ePDG. The request does not carry the session identifier and IP address. Through this request, a PDU initial session or a PDN initial session is established for the terminal in the WiFi network using the same APN as the original session.
[0173] Furthermore, if Figure 4 As shown, still for the case where the terminal switches the session from the 3GPP network to the WiFi network: if the handover type IKEv2 authentication request initiated by the terminal to the WiFi network fails (i.e. is rejected), the terminal can first determine whether the original PDU session or PDN connection is associated with the ongoing voice service; if so, the terminal closes the current IKEv2 security context, no longer attempts to initiate a second IKEv2 authentication request to the ePDG, and continues to maintain the original session on the 3GPP network; if the original PDU session or PDN connection is not associated with the ongoing voice service, the terminal further determines the reason why the network rejects the switch, for example, if the message code in the IKE AUTH response message is failure and the type of the notifymessage carried in the message is that the switch from 5GC is not supported or the PDU session does not exist, then it is determined that the rejection reason is a preset reason. At this time, if the terminal has authenticated the reliable information of the WiFi network, it can close the current IKEv2 security context and immediately re-initiate a new IKEv2 request to the ePDG to request to establish an initial type PDU session under the WiFi network, thereby converting the session to the WiFi network.
[0174] In another case, if the terminal receives an IKE AUTH response message from the network, the message code is failure, but the type of notify message carried in the message is not switching not supported or session does not exist, but other error types, for example, non-3GPP access to EPC is not allowed, user is unknown, PLMN is not allowed, authorization is denied, RAT type is not allowed or illegal, then the terminal determines that the reason for the rejection is not the preset reason. If the terminal has authenticated that the information of the WiFi network is reliable, the terminal can close the current IKEv2 security context, but will no longer attempt to initiate a new IKEv2 request to the current ePDG.
[0175] In the above-mentioned session network control method, after the terminal is rejected from switching from the 3GPP network to the WiFi network, it can be determined whether the session is associated with an ongoing voice service. If not, a request to establish an initial session is immediately initiated, which can ensure the continuity of the ongoing voice service and avoid the terminal's session always staying in the original network with poor network quality and unable to reselect the WiFi network to initiate a VoWiFi call, thereby ensuring the call quality of the terminal.
[0176] In one embodiment, Figure 5 As shown, another session network control method is provided. For the case where the terminal switches the session from the WiFi network to the 3GPP network, the method is applied to the access mobility management network element as an example for explanation, and includes the following steps:
[0177] Step 401: The access mobility management network element receives a first request carrying a handover indication initiated by a terminal, and initiates a third session establishment request for handing over the session of the terminal from the WiFi network to the 3GPP network to the session management network element; the terminal has established the session in the WiFi network;
[0178] Step 402: The access mobility management network element receives the rejection reason returned by the session management network element for the third session establishment request, and replies to the terminal with a response message carrying the rejection reason;
[0179] Step 403, the access mobility management network element receives the second request initiated by the terminal and carrying an indication of a new connection, and initiates a fourth session establishment request to the session management network element; the second request is initiated by the terminal when it is determined that the rejection reason corresponding to the rejection information is a preset reason; the fourth session establishment request is used to request to establish an initial session for the terminal under the 3GPP network using the same APN as the session.
[0180] Through this embodiment, when the network does not support switching from the WiFi network to the 3GPP and returns a rejection message to the terminal, after receiving the rejection message, the terminal does not maintain the session connection on the original WiFi network, but attempts to create a new initial session on the 3GPP network based on the rejection reason, thereby avoiding subsequent call initiation failure, called failure and other problems caused by the original WiFi network quality problems of the terminal.
[0181] In one embodiment, the information exchange on the access mobility management network element side further includes:
[0182] Step 404, the access mobility management network element receives the newly created initial session information returned by the session management network element in response to the fourth session establishment request, and sends the newly created initial session information to the terminal; wherein the newly created initial session information includes a new IP address, and the new IP address is the IP address allocated by the 3GPP network for the initial session.
[0183] Since the IP address of the session obtained by the terminal may change after the handover is completed, through this embodiment, the terminal can use the new IP address to initiate session re-registration to the core network.
[0184] In an example, in order to enable those skilled in the art to better understand the above steps, the following Figure 6 and Figure 7 The embodiment of the present application is illustrated by an example of switching from a WiFi network to a 3GPP network, but it should be understood that the embodiment of the present application is not limited to this.
[0185] In one embodiment, reference Figure 6 The general process of terminal switching from Wifi to SA includes:
[0186] 0. The terminal establishes a PDN connection in EPC / ePDG;
[0187] 1. The terminal accesses and registers to the 5G core network through 3GPP;
[0188] 2. Terminal according to Figure 7 The process shown requests the 3GPP network to establish a PDU session;
[0189] 3. After the PDU session is established, SMF / UPF reserves EPC and ePDG resources for the terminal according to the 3GPP specification architecture (e.g. TS23.402 version).
[0190] Further, refer to Figure 7 As shown, the specific process of the terminal requesting the 3GPP network to establish a PDU session includes:
[0191] 1. The UE initiates a PDU session establishment request to the access and mobility management function AMF under the WiFi network. The request carries information such as the DNN and IP address of the WiFi network;
[0192] 2. AMF performs session management function SMF selection;
[0193] 3. AMF initiates a request to create an SM context for an Nsmf PDU session based on the selected SMF; in this link, if the AMF request fails, a rejection response is returned to the UE. After the UE determines that the rejection reason is the preset reason, it re-initiates a second request for creating a new PDU session under the radio access network and executes step 12; if the AMF request succeeds, execute the next step;
[0194] 4. The session management function SMF communicates with the user data management UDM to perform subscription retrieval / subscription update;
[0195] 5. The session management function SMF returns a response to AMF for creating the SM context for the Nsmf PDU session;
[0196] 6. Perform PDU session authentication / authorization for the UE;
[0197] 7a. The session management function SMF selects the packet control function PCF;
[0198] 7b. The session management function SMF establishes SM policy associations, or the SMF initiates SM policy association modifications;
[0199] 8. The session management function SMF selects the user plane function UPF;
[0200] 9. SM policy association modification initiated by the session management function SMF;
[0201] 10a. The session management function SMF initiates an N4 session establishment request / N4 session modification request to the user plane function UPF;
[0202] 10b. The user plane function UPF returns an N4 session establishment response / N4 session modification response to the session management function SMF;
[0203] 11. The session management function SMF initiates Nsmf communication N1 and N2 message transmission to AMF; in this link, if the message initiated by SMF to AMF carries failure identification information, then after receiving the N1 and N2 messages, AMF will return a message carrying the rejection reason to the UE; after the UE determines that the rejection reason is the preset reason, it re-initiates the second request for creating a new PDU session under the radio access network;
[0204] 12. Based on the second request re-initiated by the terminal, the AMF initiates an N2 PDU session request to the radio access network, requesting to establish an initial session for the UE under the 3GPP network;
[0205] 13. The radio access network accepts the PDU session establishment request, establishes a PDU session for the UE, and returns the AN dedicated resource settings of the established initial session to the UE, which may also carry other session information of the initial session;
[0206] 14. The radio access network returns an N2 PDU session response to the AMF, which carries the session information of the initial session. After that, the UE updates the uplink data for the first time through the PDU.
[0207] 15. Based on the received session information, AMF initiates an Nsmf PDU session update SM context request to SMF, as well as a subsequent N4 session modification request.
[0208] Specifically, the above Figure 6 and Figure 7 In the example process:
[0209] 1. The terminal can access the core network element through ePDG to establish an IMS PDU session;
[0210] 2. AAA registers the PDU session information to HSS / UDM; subsequently, ePDG can obtain the PGW-U / UPF information corresponding to the PDU session from HSS / UDM via AAA;
[0211] 3. When the terminal measures that the RSSI of the current WiFi network is <-83dBm (a threshold set in advance) and the NR RSRP is >-107dBm (another threshold set in advance), it can be determined to switch the PDN session to the 3GPP network;
[0212] 4. Initiate a PDU session establishment request (i.e., the first request) in the 3GPP network through the ePDG, and the request carries the PDU session ID and the "existing PDU session" identifier (i.e., the existing PDU session identifier);
[0213] 5. The fused SMF+PGW-C recognizes that this is a PDU session establishment request for switching from a WiFi network to a 3GPP network, rejects the session establishment request, and the reason value is that the session does not exist or the switching is not supported, and carries the corresponding reason information in the response message to the terminal;
[0214] 6. After the terminal determines that the reason for rejection is the preset reason, it re-detects whether the network quality of the 3GPP network still meets the conditions;
[0215] 7. If the network quality of the 3GPP network still meets the conditions, the terminal can initiate a PDU session establishment request (i.e., the second request) to the 3GPP network through the ePDG again. The request carries a new PDU session ID (different from the previous session ID) and the request type is indicated as "Initial request", i.e., a request for the terminal to establish an initial session;
[0216] 8. After the initial session is established for the terminal in the 3GPP network, the newly created initial session information is returned to the terminal through the session management network element SMF, and the terminal re-initiates registration for the initial session.
[0217] In the session network control method of the embodiment of the present disclosure, when the network quality of the first network is lower than the preset condition, if the signal strength of the second network is detected to be greater than the second threshold, the terminal may initiate a first request to the second network, requesting to switch the session from the first network to the second network. If the terminal receives the rejection information and detects that the session under the first network is not associated with the ongoing voice service, it is further determined whether the rejection reason is a preset reason. In the case where it is determined that the rejection reason is a preset reason, the current signal measurement information of the second network is obtained again. If the current signal strength of the second network is still greater than the second threshold, a second request is initiated to the second network, requesting to establish an initial session under the second network for the same APN as the session. After the initial session is established, the terminal receives the new IP address assigned by the second network to the initial session, and initiates a re-registration request for the initial session to the core network. Among them, the first network can be a 3GPP network or a WiFi network, and correspondingly, the second network can be a WiFi network or a 3GPP network. In this way, it is possible to avoid the terminal's session always residing in the first network that is not suitable for providing services, effectively ensuring the call quality and improving the call service effect.
[0218] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0219] Based on the same inventive concept, the embodiment of the present application also provides a session network control device for implementing the session network control method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more session network control device embodiments provided below can refer to the limitations of the session network control method above, and will not be repeated here.
[0220] In one embodiment, Figure 8 As shown, a session network control device 600 is provided, which is applied to a terminal and includes:
[0221] The network switching request module 601 is used to initiate a first request to the second network; the first request is used to request to switch the session from the first network to the second network;
[0222] The session creation request module 602 is used to receive the rejection information returned for the first request, and when it is determined that the rejection reason corresponding to the rejection information is a preset reason, initiate a second request to the second network; the second request is used to establish an initial session for the terminal under the second network using the same APN as the session.
[0223] Each module in the above session network control device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of the processor in the terminal device in the form of hardware, or can be stored in the memory in the terminal device in the form of software, so that the processor can call and execute the corresponding operations of each module.
[0224] Based on the same inventive concept, the embodiment of the present application also provides another session network control device 700 for implementing the above-mentioned session network control method. The session network control device 700 is applied to an access network device, such as Fig. 9 As shown, including:
[0225] The first terminal request processing module 701 is used to receive a first request initiated by a terminal and carrying a switching indication, initiate a first session establishment request to the core network, and carry an indication of switching the session from the 3GPP network to the WiFi network and an IP address reported by the terminal; the terminal has established the session in the 3GPP network;
[0226] A first information feedback module 702 is configured to receive a session creation response carrying a rejection reason returned by the core network in response to the first session establishment request, and return a first response message carrying the rejection reason to the terminal according to the session creation response;
[0227] The first terminal request processing module 701 is also used to receive a second request initiated by the terminal and carrying a new connection indication, and initiate a second session establishment request to the core network; the second request is initiated by the terminal when it is determined that the rejection reason is a preset reason; the second session establishment request is used to request to establish an initial session for the terminal under the WiFi network using the same APN as the session.
[0228] Each module in the session network control device 700 can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in an access network device in the form of hardware, or can be stored in a memory in the access network device in the form of software, so that the processor can call and execute operations corresponding to each module.
[0229] Based on the same inventive concept, the embodiment of the present application also provides a session network control device 800 for implementing the above-mentioned session network control method. The session network control device 800 is applied to access a mobility management network element, such as Fig.10 As shown, including:
[0230] The second terminal request processing module 801 is used to receive a first request carrying a switching indication initiated by a terminal, and initiate a third session establishment request for handing over the session of the terminal from the WiFi network to the 3GPP network to the session management network element; the terminal has established a session in the WiFi network;
[0231] The second information feedback module 802 is configured to receive the rejection reason returned by the session management network element for the third session establishment request, and reply to the terminal with a response message carrying the rejection reason;
[0232] The second terminal request processing module 801 is also used to receive a second request initiated by the terminal and carrying an indication of a new connection, and to initiate a fourth session establishment request to the session management network element; the second request is initiated by the terminal when it is determined that the rejection reason is a preset reason; the fourth session establishment request is used to request to establish an initial session for the terminal under the 3GPP network using the same APN as the session.
[0233] Each module in the above session network control device 800 can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a core network device in the form of hardware, or can be stored in a memory in a core network device in the form of software, so that the processor can call and execute operations corresponding to each module above.
[0234] In one embodiment, a communication device is provided. The communication device may be a terminal, and its internal structure diagram may be as follows: Fig.11 As shown. The communication device includes at least one processor, a memory, at least one network interface and a user interface. The various components in the terminal device are coupled together through a bus system. It can be understood that the bus system is used to realize the connection and communication between these components. In addition to the data bus, the bus system also includes a power bus, a control bus and a status signal bus. In addition, in an embodiment of the present invention, a transceiver is also included. The transceiver can be a plurality of components, that is, a transmitter and a receiver, providing a unit for communicating with various other devices on a transmission medium.
[0235] The user interface may include a display, a keyboard, or a pointing device (eg, a mouse, a trackball, a touch pad, or a touch screen).
[0236] It can be understood that the memory in the embodiment of the present invention can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct RAM bus random access memory (DRRAM). The memory 702 of the system and method described in the embodiments of the present invention is intended to include, but is not limited to, these and any other suitable types of memory.
[0237] In some embodiments, the memory stores the following elements, executable modules or data structures, or a subset thereof, or an extended set thereof: an operating system and applications.
[0238] In the embodiment of the present invention, by calling a program or instruction stored in a memory, specifically, a program or instruction stored in an application, a transmitter is used to initiate a first request to a second network; the first request is used to request to switch the session from the first network to the second network. A receiver is used to receive rejection information returned for the first request, and when it is determined that the rejection reason corresponding to the rejection information is a preset reason, a second request is initiated to the second network; the second request is used to establish an initial session for the terminal in the second network using the same access point name APN as the session.
[0239] In one embodiment, an access network device is provided, and its internal structure diagram can be as follows: Fig.12 The access network device includes a receiver, a memory, a processor, at least one communication bus and a transmitter. The communication bus is used to realize the communication connection between the components. The memory may include a high-speed RAM memory, and may also include a non-volatile storage NVM, such as at least one disk memory. Various programs can be stored in the memory to complete various processing functions and implement the method steps of this embodiment.
[0240] In this embodiment, the transmitter may be a radio frequency processing module or a baseband processing module in the access network device, and the receiver may be a radio frequency processing module or a baseband processing module in the access network device. The transmitter and the receiver may be integrated together to form a transceiver, and both the transmitter and the receiver may be coupled to the processor, and they may perform receiving or transmitting actions under the instruction or control of the processor.
[0241] It should be noted that the core network device involved in this application may have a structure similar to the above Fig.12 In the structure shown, the transmitter can be a radio frequency processing module or a baseband processing module in the core network device, and the receiver can also be a radio frequency processing module or a baseband processing module in the core network device. The transmitter and the receiver can be integrated together to form a transceiver. Both the transmitter and the receiver can be coupled to the processor, and they can perform receiving or transmitting actions under the instruction or control of the processor.
[0242] Those skilled in the art will understand that Fig.11 , Fig.12 The structure shown in the figure is only a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the communication device to which the scheme of the present application is applied. The specific communication device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0243] In one embodiment, a terminal device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the steps of the session network control method of any of the above embodiments are implemented.
[0244] In one embodiment, an access network device is provided, comprising a transmitter and a receiver, wherein: the receiver is used to receive a first request initiated by a terminal and carrying a switching indication, the transmitter is used to initiate a first session establishment request to a core network, and carries an indication of switching a session from a 3GPP network to a WiFi network and an IP address reported by the terminal; the session is a session established by the terminal in the 3GPP network; the receiver is also used to receive a session creation response carrying a rejection reason returned by the core network in response to the first session establishment request, the transmitter is also used to return a first response message carrying the rejection reason to the terminal according to the session creation response; the receiver is also used to receive a second request initiated by the terminal and carrying a new connection indication, the transmitter is also used to initiate a second session establishment request to the core network; the second request is initiated by the terminal when it is determined that the rejection reason is a preset reason; the second session establishment request is used to request to establish an initial session for the terminal using the same APN as the session in the WiFi network.
[0245] In one embodiment, a core network device is provided, including a transmitter and a receiver, wherein: the receiver is used to receive a first request initiated by a terminal and carrying a switching indication, and the transmitter is used to initiate a third session establishment request to a session management network element for handing over the session of the terminal from a WiFi network to a 3GPP network; the terminal has established the session in the WiFi network; the receiver is also used to receive a rejection reason returned by the session management network element for the third session establishment request, and the transmitter is also used to reply to the terminal with a response message carrying the rejection reason; the receiver is also used to receive a second request initiated by the terminal and carrying a new connection indication, and the transmitter is also used to initiate a fourth session establishment request to the session management network element; the second request is initiated by the terminal when it is determined that the rejection reason is a preset reason; the fourth session establishment request is used to request to establish an initial session for the terminal using the same APN as the session in the 3GPP network.
[0246] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the session network control method in any of the above embodiments are implemented.
[0247] In one embodiment, a computer program product is provided, including a computer program, which implements the steps of the session network control method of any of the above embodiments when executed by a processor.
[0248] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.
[0249] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0250] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0251] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A session network control method, characterized in that: Applied to a terminal, the terminal having established a session on a first network, the method comprising: Initiate a first request to the second network; the first request is used to request to switch the session from the first network to the second network; Receive rejection information returned for the first request, and when it is determined that the rejection reason corresponding to the rejection information is a preset reason, initiate a second request to the second network; the second request is used to establish an initial session for the terminal under the second network using the same access point name APN as the session.
2. The method according to claim 1, characterized in that Before initiating the second request to the second network, the method further includes: A session release request for releasing the session is initiated to the first network; the session release request carries a session identifier and APN information of the session.
3. The method according to claim 1, characterized in that After receiving the rejection information returned for the first request, the method further includes: When it is determined that the rejection reason corresponding to the rejection information is not the preset reason, if the Internet Key Exchange Protocol IKEv2 identity authentication passes, the current IKEv2 security context is closed.
4. The method according to claim 1, characterized in that: The initiating a second request to the second network when it is determined that the rejection reason corresponding to the rejection information is a preset reason includes: If it is determined that the rejection reason corresponding to the rejection information is a preset reason, and the Internet Key Exchange Protocol IKEv2 identity authentication is passed and the corresponding security association has been established, a second request carrying an indication of establishing an initial session is initiated to the second network, so as to use the negotiated IKEv2 security context to establish an initial session for the terminal under the second network using the same APN as the session.
5. The method according to claim 1, characterized in that The initiating a first request to the second network includes: In a case where it is detected that the signal strength of the first network is less than a first threshold and the signal strength of the second network is greater than a second threshold, the first request is initiated for the second network.
6. The method according to claim 5, characterized in that Before initiating the second request to the second network, the method further includes: Acquire current signal measurement information of the second network; the current signal measurement information includes current signal strength of the second network; If the current signal strength of the second network is greater than the second threshold, the step of initiating the second request is performed.
7. The method according to claim 1, characterized in that in, The first request carries a session identifier of the session, an IP address corresponding to the session, and network switching indication information; The second request does not include the session identifier of the session and the IP address corresponding to the session, but carries the indication information of creating a new initial session.
8. The method according to claim 1, characterized in that After initiating the second request to the second network, the method further includes: Receiving a new IP address allocated by the second network for the initial session established for the terminal; Based on the new IP address, a service re-registration request for the initial session is initiated to the core network.
9. The method according to claim 1, characterized in that: After receiving rejection information returned for the first request, the method further includes: In a case where it is detected that the session under the first network is not associated with the ongoing voice service, it is determined whether the rejection reason corresponding to the rejection information is the preset reason.
10. The method according to claim 9, characterized in that The method further comprises: In a case where it is detected that the session under the first network is associated with an ongoing voice service, the session under the first network is continued.
11. The method according to any one of claims 1 to 10, characterized in that: When the first network is a 3GPP network and the second network is a WiFi network, The initiating a first request to the second network includes: Initiate a first authentication request carrying switching indication information to the data gateway as the first request, implement IKEv2 identity authentication for the terminal through interaction between the data gateway and the core network, and after the IKEv2 identity authentication passes, the data gateway sends a first session establishment request for switching the session from the 3GPP network to the WiFi network to the core network; The receiving rejection information returned for the first request includes: Receiving a first response message or a second response message returned by the data gateway; the first response message or the second response message includes a corresponding rejection reason; The first response information is a response message when the core network returns an error code to the data gateway in response to the first session establishment request; The second response message is a response message when the data gateway cannot obtain, through the core network, the PGW network element identifier to which the terminal is connected when attaching to the 3GPP network.
12. The method according to claim 11, characterized in that The initiating a second request to the second network when it is determined that the rejection reason is a preset reason includes: When it is determined that the rejection reason is a preset reason, a second authentication request carrying new connection indication information is initiated to the data gateway; IKEv2 identity authentication for the terminal is implemented through interaction between the data gateway and the core network, and after the IKEv2 identity authentication is passed, the data gateway sends a second session establishment request for creating a new initial session for the terminal in the WiFi network to the PGW network element.
13. The method according to claim 12, characterized in that The data gateway is an evolved packet data gateway ePDG, and the method specifically includes: The terminal initiates a first authentication request carrying packet data network PDN switching indication information to the ePDG, implements IKEv2 identity authentication for the terminal through interaction between the ePDG and the 3GPP AAA, and after the IKEv2 identity authentication passes, the ePDG sends a first session establishment request to the PGW network element of the core network, where the first session establishment request carries a switching indication for switching the session from the 3GPP network to the WiFi network and the IP address reported by the terminal; The terminal receives a first IKE authorization response returned by the ePDG; the notification message of the first IKE authorization response carries a rejection reason indicating that switching is not supported, the first IKE authorization response is issued after the ePDG receives a session creation response returned by the PGW network element for the first session establishment request, and the session creation response carries an error code indicating that switching is not supported; When the terminal determines, based on the first IKE authorization response, that the rejection reason is that handover is not supported, the terminal initiates a second authentication request carrying new PDN connection indication information to the ePDG.
14. The method according to claim 13, characterized in that After the terminal initiates a first authentication request carrying packet data network PDN switching indication information to the ePDG, the method further includes: In a case where the ePDG cannot obtain, through the UDM / HSS, the PGW network element identifier to which the terminal is connected when the terminal is attached to the 3GPP network, the terminal receives a second IKE authorization response replied by the ePDG, where the second IKE authorization response carries a rejection reason indicating that handover is not supported; When the terminal determines, based on the second IKE authorization response, that the rejection reason is that handover is not supported, the terminal initiates a second authentication request carrying new PDN connection indication information to the ePDG.
15. The method according to any one of claims 1 to 10, characterized in that When the first network is a WiFi network and the second network is a 3GPP network, the initiating a first request to the second network includes: Initiate a request to switch from the WiFi network to the 3GPP network to an access mobility management network element as the first request; The receiving rejection information returned for the first request includes: Receive rejection information returned by the access mobility management network element in response to the first request, where the rejection information includes a reason for the 3GPP network to reject the first request.
16. A session network control method, characterized in that: Applied to a data gateway, the method includes: receiving a first request initiated by a terminal and carrying a switching indication, initiating a first session establishment request to a core network, and carrying an indication of switching a session from a 3GPP network to a WiFi network and an IP address reported by the terminal; the session is a session established by the terminal in the 3GPP network; receiving a session creation response carrying a rejection reason returned by the core network in response to the first session establishment request, and returning a first response message carrying the rejection reason to the terminal according to the session creation response; Receive a second request initiated by the terminal and carrying a new connection indication, and initiate a second session establishment request to the core network; the second request is initiated by the terminal when it is determined that the rejection reason is a preset reason; the second session establishment request is used to request to establish an initial session for the terminal under the WiFi network using the same APN as the session.
17. The method according to claim 16, characterized in that After receiving the first request initiated by the terminal and carrying the switching indication, the method further includes: When the data gateway cannot obtain from the core network the PGW network element identifier to which the terminal is connected when attaching to the 3GPP network, the data gateway replies to the terminal with a second response message carrying a rejection reason.
18. The method according to claim 16 or 17, characterized in that After initiating a second session establishment request to the core network, the method further includes: The data gateway receives the newly created initial session information returned by the core network, and sends the newly created initial session information to the terminal; The newly created initial session information includes a new IP address, and the new IP address is an IP address allocated by the WiFi network for the initial session.
19. A session network control method, characterized in that: Applied to accessing a mobility management network element, the method comprises: receiving a first request carrying a switching indication initiated by a terminal, and initiating a third session establishment request for handing over a session of the terminal from a WiFi network to a 3GPP network to a session management network element; the terminal has established the session in the WiFi network, and the WiFi network is a current network of the IMS session; receiving a rejection reason returned by the session management network element in response to the third session establishment request, and replying a response message carrying the rejection reason to the terminal; Receive a second request initiated by the terminal and carrying an indication of a new connection, and initiate a fourth request to establish a session to the session management network element; the second request is initiated by the terminal when it is determined that the rejection reason is a preset reason; the fourth request to establish a session is used to request to establish an initial session for the terminal under the 3GPP network using the same APN as the session.
20. The method according to claim 19, characterized in that Also includes: The access mobility management network element receives the newly created initial session information returned by the session management network element in response to the fourth session establishment request, and sends the newly created initial session information to the terminal; The newly created initial session information includes a new IP address, and the new IP address is an IP address allocated by the 3GPP network for the initial session.
21. A session network control device, characterized in that: Applied to a terminal, the terminal having established a session in a first network, the device comprising: A network switching request module, configured to initiate a first request to a second network; the first request is used to request switching the session from the first network to the second network; A session creation request module is used to receive the rejection information returned for the first request, and when it is determined that the rejection reason corresponding to the rejection information is a preset reason, initiate a second request to the second network; the second request is used to establish an initial session for the terminal under the second network using the same APN as the session.
22. A session network control device, characterized in that: Applied to a data gateway, the device comprises: A first terminal request processing module, configured to receive a first request initiated by a terminal and carrying a switching indication, initiate a first session establishment request to a core network, and carry an indication of switching a session from a 3GPP network to a WiFi network and an IP address reported by the terminal; the terminal has established the session in the 3GPP network; a first information feedback module, configured to receive a session creation response carrying a rejection reason returned by the core network in response to the first session establishment request, and return a first response message carrying the rejection reason to the terminal according to the session creation response; The first terminal request processing module is also used to receive a second request initiated by the terminal and carrying a new connection indication, and initiate a second session establishment request to the core network; the second request is initiated by the terminal when it is determined that the rejection reason is a preset reason; the second session establishment request is used to request to establish an initial session for the terminal under the WiFi network using the same APN as the session.
23. A session network control device, characterized in that: Applied to access a mobility management network element, the device comprises: A second terminal request processing module, configured to receive a first request carrying a switching indication initiated by a terminal, and initiate a third session establishment request for handing over the session of the terminal from the WiFi network to the 3GPP network to a session management network element; the terminal has established the session in the WiFi network; A second information feedback module is configured to receive a rejection reason returned by the session management network element for the third session establishment request, and reply a response message carrying the rejection reason to the terminal; The second terminal request processing module is also used to receive a second request initiated by the terminal and carrying a new connection indication, and initiate a fourth session establishment request to the session management network element; the second request is initiated by the terminal when it is determined that the rejection reason is a preset reason; the fourth session establishment request is used to request to establish an initial session for the terminal under the 3GPP network using the same APN as the session.
24. A terminal device, comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 15 are implemented.
25. An access network device, comprising a transmitter and a receiver, characterized in that: The receiver is used to receive a first request initiated by the terminal and carrying a switching indication, and the transmitter is used to initiate a first session establishment request to the core network, and carry an indication of switching the session from the 3GPP network to the WiFi network and the IP address reported by the terminal; the session is a session established by the terminal in the 3GPP network; The receiver is further configured to receive a session creation response carrying a rejection reason returned by the core network in response to the first session establishment request, and the transmitter is further configured to return a first response message carrying the rejection reason to the terminal according to the session creation response; The receiver is also used to receive a second request initiated by the terminal and carrying a new connection indication, and the transmitter is also used to initiate a second session establishment request to the core network; the second request is initiated by the terminal when it is determined that the rejection reason is a preset reason; the second session establishment request is used to request to establish an initial session for the terminal under the WiFi network using the same APN as the session.
26. A core network device, comprising a transmitter and a receiver, characterized in that: The receiver is used to receive a first request carrying a switching indication initiated by a terminal, and the transmitter is used to initiate a third session establishment request for handing over the session of the terminal from the WiFi network to the 3GPP network to the session management network element; the terminal has established the session in the WiFi network; The receiver is further configured to receive a rejection reason returned by the session management network element for the third session establishment request, and the transmitter is further configured to reply a response message carrying the rejection reason to the terminal; The receiver is also used to receive a second request initiated by the terminal and carrying an indication of a new connection, and the transmitter is also used to initiate a fourth request to establish a session to the session management network element; the second request is initiated by the terminal when it is determined that the rejection reason is a preset reason; the fourth request to establish a session is used to request to establish an initial session for the terminal under the 3GPP network using the same APN as the session.
27. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 20 are implemented.
28. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 20 are implemented.
Citation Information
Cited By
Communication control method and device, equipment, chip and medium
CN119676782A
