Method, terminal and communication system for establishing session

By introducing a timer mechanism in the mobile communication network, the success rate of the calling terminal and the called terminal establishing sessions in the mobile communication network is improved, solving the problem of long time reserved for session resources in the mobile communication network.

CN114158096BActive Publication Date: 2025-04-04HUAWEI TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202010935583.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-08
Publication Date
2025-04-04
Estimated Expiration
2040-09-08

AI Technical Summary

Technical Problem

In mobile communication networks, it is difficult to quickly establish a session between the calling terminal and the called terminal, which is mainly due to the failure to complete the resource reservation for the session in time, resulting in a decrease in the session success rate.

Method used

By introducing a first and a second timer in the communication system, it is used for the calling terminal and the called terminal, respectively. The calling terminal completes resource reservation before the timer counts that the first timer counts that the preset time will send a confirmation message; the called terminal completes resource reservation and sends a ring message before the timer counts that the timer counts that the first timer counts that the timer counts that the timer counts that the first timer counts that the timer counts that the timer counts that the timer counts that the first timer counts that the timer counts that the timer counts that the timer counts that the timer counts that the timer counts that the timer counts that the timer counts that the timer counts that the timer counts that the timer counts that the timer counts that the timer counts that the timer counts that the timer counts that the timer counts that the timer counts that the timer counts that the timer counts that the timer counts that the timer counts that the timer counts that the timer counts that the timer counts that the timer counts that the time

Benefits of technology

This method improves the session success rate between the calling terminal and the called terminal, so that the called terminal has more time to complete resource reservation, ensuring that the dedicated bearer meets specific QOS policies, thereby improving user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114158096B_ABST
    Figure CN114158096B_ABST
Patent Text Reader

Abstract

The present application provides a method, terminal and communication system for establishing a session. The communication system includes a first terminal and a second terminal. The first terminal can send a session request message for requesting to establish a session to the second terminal; the second terminal can send a session response message to the first terminal according to the session request message, and start a second timer. The first terminal starts the first timer after receiving the session response message. When the first terminal completes resource reservation for the session before the timing duration of the first timer reaches a preset first duration, the first terminal sends a resource reservation completion confirmation message to the second terminal. After receiving the resource reservation completion confirmation message, if the second terminal completes resource reservation for the session before the timing duration of the second timer reaches a preset second duration, the second terminal sends a ringing message to the first terminal. The second duration is greater than the first duration.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communications, and in particular to a method for establishing a session, a terminal, and a communication system. Background Art

[0002] The terminal can be connected to the Internet Protocol Multimedia Subsystem (IMS) through the mobile communication network it accesses. Different terminals can establish sessions through their respective IMSs and perform media services based on the successfully established sessions, such as interactive text, video, voice and other media data.

[0003] The terminal that requests to establish a session can be called a calling terminal, and the terminal that is requested to establish a session can be called a called terminal. If the calling terminal and the called terminal fail to successfully establish a dedicated bearer with their respective mobile communication networks, a session cannot be successfully established between the calling terminal and the called terminal. The dedicated bearer meets a specific quality of service (QOS) policy and is used to transmit media data that the calling terminal and the called terminal interact with after the session is successfully established. In addition, the process of establishing a dedicated bearer is called reserving resources for the session.

[0004] Generally, if the calling terminal fails to quickly complete the resource reservation for the session, the calling terminal can switch to another mobile communication network and resend the session request message for requesting to establish the session to the called terminal. For the called terminal, if the called terminal fails to quickly complete the resource reservation for the session, the called terminal will terminate the establishment of the session between the calling terminal and the called terminal. Summary of the invention

[0005] The embodiments of the present application provide a method, a terminal and a communication system for establishing a session, which can improve the success rate of establishing a session between a calling terminal and a called terminal.

[0006] In a first aspect, a communication system is provided. The communication system includes a first terminal and a second terminal. The first terminal may send a session request message for requesting to establish a session to the second terminal; the second terminal may send a session response message to the first terminal according to the session request message, and start a second timer. The first terminal may start the first timer after receiving the session response message. When the first terminal completes resource reservation for the session before the timing duration of the first timer reaches a preset first duration, the first terminal sends a resource reservation completion confirmation message to the second terminal. After receiving the resource reservation completion confirmation message, if the second terminal completes resource reservation for the session before the timing duration of the second timer reaches a preset second duration, the second terminal sends a ringing message to the first terminal. The second duration is greater than the first duration.

[0007] In this way, compared with the first terminal as the calling terminal, the second terminal as the called terminal has a longer time to complete the resource reservation for the session. The mobile communication network accessed by the called terminal can support the called terminal to establish a dedicated bearer that meets the specific QOS policy with the mobile communication network accessed by it in a longer time by releasing more available computing resources and network resources and retransmitting lost data packets, so that the called terminal can complete the resource reservation for the session, thereby improving the success rate of establishing a session between the calling terminal and the called terminal.

[0008] In a possible implementation, when the second terminal fails to complete the resource reservation for the session before the timing duration of the second timer reaches the preset second duration, the second terminal can send a first session termination message to the first terminal, indicating that the session requested to be established by the session request message is terminated. In this way, the first terminal is prevented from waiting for a long time for the second terminal to reserve resources for the session, which can improve the user experience of the first terminal.

[0009] In a possible implementation, when the first terminal fails to complete resource reservation for the session before the timing duration of the first timer reaches a preset first duration, the first terminal may send a session cancellation message for requesting termination of the session to the second terminal. The second terminal may send a second session termination message to the first terminal according to the session cancellation message, and the second session termination message is used to indicate that the session requested to be established by the session request message is terminated.

[0010] In a possible implementation, after receiving the second session termination message, the first terminal may leave the mobile communication network accessed by the first terminal and access another mobile communication network that the first terminal is allowed to access, and send a second session request message to the second terminal through the other mobile communication network, where the second session request message is used to request to establish a session between the first terminal and the second terminal.

[0011] In other words, when the mobile communication network accessed by the first terminal cannot support the first terminal to complete resource reservation for the session in a short time, the first terminal can switch to other mobile communication networks that it is allowed to access, and re-request to establish a session between the first terminal and the second terminal through the other mobile communication network, so that the first terminal and the second terminal can complete the session establishment as soon as possible and conduct media services.

[0012] In a second aspect, a first terminal is provided, and the beneficial effects are described in the first aspect. The first terminal includes a memory and a processor. The memory is used to store a computer program. The processor is used to run the computer program stored in the memory to execute: sending a first session request message to a second terminal, the first session request message is used to request to establish a session between the first terminal and the second terminal; receiving a session response message from the second terminal; starting a first timer; when the first terminal completes resource reservation for the session before the timing duration of the first timer reaches a preset first duration, sending a resource reservation completion confirmation message to the second terminal; and receiving a ringing message from the second terminal, the ringing message is sent by the second terminal when the resource reservation for the session is completed before the timing duration of the second timer reaches a preset second duration, the second timer is started by the second terminal after receiving the session request message, and the first duration is less than the second duration.

[0013] In a possible implementation, the processor is further used to execute: receiving a first session termination message from the second terminal, the first session termination message being used to indicate that the session is terminated, the first session termination message being sent by the second terminal when the second terminal fails to complete resource reservation for the session before the timing duration of the second timer reaches a preset second duration.

[0014] In a possible implementation, the processor is further configured to execute: when the first terminal fails to complete resource reservation for the session before the timing duration of the first timer reaches a preset first duration, sending a session cancellation message to the second terminal, the session cancellation message is used to request termination of the session. And, receiving a second session termination message from the second terminal, the second session termination message is used to indicate that the session is terminated.

[0015] In a possible implementation, the processor is further configured to execute: leaving the mobile communication network accessed by the first terminal and accessing another mobile communication network that the first terminal is allowed to access. Sending a second session request message to the second terminal through the other mobile communication network, where the second session request message is used to request to establish a session between the first terminal and the second terminal.

[0016] In a third aspect, a second terminal is provided, and the beneficial effects are described in the first aspect. The second terminal includes a memory and a processor. The memory is used to store a computer program. The processor is used to run the computer program stored in the memory to execute: receiving a first session request message from a first terminal, the first session request message is used to request to establish a session between the first terminal and the second terminal; sending a session response message to the first terminal according to the first session request message, and starting a second timer; receiving a resource reservation completion confirmation message from the first terminal, the resource reservation completion confirmation message is sent by the first terminal when the resource reservation for the session is completed before the timing duration of the first timer reaches the preset first duration, and the first timer is started by the first terminal after receiving the session response message; when the second terminal completes the resource reservation for the session before the timing duration of the second timer reaches the preset second duration, the ringing message is sent to the first terminal, and the second duration is greater than the first duration.

[0017] In a possible implementation, the processor is further used to execute: when the second terminal fails to complete resource reservation for the session before the timing duration of the second timer reaches a preset second duration, sending a first session termination message to the first terminal, where the first session termination message is used to indicate that the session is terminated.

[0018] In a possible implementation, the processor is further configured to execute: receiving a session cancellation message from the second terminal, the session cancellation message being used to request termination of the session, the session cancellation message being sent by the first terminal when the resource reservation for the session fails to be completed before the timing duration of the first timer reaches a preset first duration. And, sending a second session termination message to the first terminal according to the session cancellation message, the second session termination message being used to indicate that the session is terminated.

[0019] In a possible implementation, the processor is further configured to execute: receiving a second session request message from the first terminal, where the second session request message is used to request establishment of a session between the first terminal and the second terminal, where the second session request message is sent through another mobile communication network after the first terminal leaves the mobile communication network accessed by the first terminal and accesses another mobile communication network allowed to be accessed by the first terminal.

[0020] In a fourth aspect, a method for establishing a session is provided, wherein the execution subject of the method is a first terminal, which may be a chip in the first terminal, a processor included in the chip, or a system on chip. For the beneficial effects, please refer to the description in the first aspect. The method includes: sending a first session request message to a second terminal, the first session request message is used to request the establishment of a session between the first terminal and the second terminal; receiving a session response message from the second terminal; starting a first timer; when the first terminal completes the resource reservation for the session before the timing duration of the first timer reaches the preset first duration, sending a resource reservation completion confirmation message to the second terminal; and receiving a ringing message from the second terminal, the ringing message is sent by the second terminal when the resource reservation for the session is completed before the timing duration of the second timer reaches the preset second duration, the second timer is started by the second terminal after receiving the session request message, and the first duration is less than the second duration.

[0021] In a possible implementation, the method further includes: receiving a first session termination message from the second terminal, the first session termination message being used to indicate that the session is terminated, the first session termination message being sent by the second terminal when the second terminal fails to complete resource reservation for the session before the timing duration of the second timer reaches a preset second duration.

[0022] In a possible implementation, the method further includes: when the first terminal fails to complete resource reservation for the session before the timing duration of the first timer reaches a preset first duration, sending a session cancellation message to the second terminal, the session cancellation message is used to request termination of the session. And, receiving a second session termination message from the second terminal, the second session termination message is used to indicate that the session is terminated.

[0023] In a possible implementation, after receiving the second session termination message from the second terminal, the method further includes: leaving the mobile communication network accessed by the first terminal and accessing another mobile communication network that the first terminal is allowed to access. And, sending a second session request message to the second terminal through the other mobile communication network, where the second session request message is used to request to establish a session between the first terminal and the second terminal.

[0024] In the fifth aspect, a method for establishing a session is provided, the execution subject of the method is a second terminal, specifically a chip in the second terminal, a processor included in the chip, or a system on chip, and the beneficial effects are described in the first aspect. The method includes: receiving a first session request message from the first terminal, the first session request message is used to request to establish a session between the first terminal and the second terminal; sending a session response message to the first terminal according to the first session request message, and starting a second timer; receiving a resource reservation completion confirmation message from the first terminal, the resource reservation completion confirmation message is sent by the first terminal when the resource reservation for the session is completed before the timing duration of the first timer reaches the preset first duration, and the first timer is started by the first terminal after receiving the session response message; when the second terminal completes the resource reservation for the session before the timing duration of the second timer reaches the preset second duration, a ringing message is sent to the first terminal, and the second duration is greater than the first duration.

[0025] In a possible implementation, the method further includes: when the second terminal fails to complete resource reservation for the session before the timing duration of the second timer reaches a preset second duration, sending a first session termination message to the first terminal, the first session termination message being used to indicate that the session is terminated.

[0026] In a possible implementation, the method further includes: receiving a session cancellation message from the second terminal, the session cancellation message being used to request termination of the session, the session cancellation message being sent by the first terminal when the resource reservation for the session fails to be completed before the timing duration of the first timer reaches a preset first duration. And, sending a second session termination message to the first terminal according to the session cancellation message, the second session termination message being used to indicate that the session is terminated.

[0027] In a possible implementation, after sending a second session termination message to the first terminal according to the session cancellation message, the method further includes: receiving a second session request message from the first terminal, the second session request message being used to request establishment of a session between the first terminal and the second terminal, the second session request message being sent by the first terminal through another mobile communication network after the first terminal leaves a mobile communication network accessed by the first terminal and accesses another mobile communication network that the first terminal is allowed to access.

[0028] In a sixth aspect, a chip is provided, comprising a processor, configured to implement the function of the first terminal described in any one of the second aspects, and to implement the function of the second terminal described in any one of the third aspects.

[0029] In a seventh aspect, a communication device is provided, which has the functions of the first terminal and / or the second terminal in the above-mentioned various aspects. The communication device can be implemented by hardware, or can be implemented by hardware executing corresponding software. The hardware or software includes one or more units corresponding to the functions of the first terminal and / or the second terminal.

[0030] In an eighth aspect, a computer-readable storage medium is provided for storing a computer program / instruction. When the computer program / instruction is executed by a processor of a terminal, the terminal implements the method described in any one of the fourth aspect and / or the fifth aspect.

[0031] In a ninth aspect, a computer program product is provided, wherein the computer program product comprises a computer program / instructions. When the computer program / instructions are executed on a terminal, the terminal executes the method described in any one of the fourth aspect or the fifth aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] The following is a brief introduction to the drawings required for describing the embodiments or prior art.

[0033] Figure 1 A schematic diagram of a communication system provided in an embodiment of the present application;

[0034] Figure 2 One of the flowcharts of a method for establishing a session provided in an embodiment of the present application;

[0035] Figure 3 A schematic diagram of establishing a dedicated bearer between a terminal and a mobile communication network in an embodiment of the present application;

[0036] Figure 4 This is a second flowchart of a method for establishing a session provided in an embodiment of the present application;

[0037] Figure 5 This is a flowchart of a method for establishing a session provided in an embodiment of the present application;

[0038] Figure 6 This is a fourth flowchart of a method for establishing a session provided in an embodiment of the present application;

[0039] Figure 7 A schematic diagram of the time relationship between the calling terminal and the called terminal in reserving resources for a session in an embodiment of the present application;

[0040] Figure 8 A schematic diagram of the structure of a terminal provided in an embodiment of the present application. DETAILED DESCRIPTION

[0041] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.

[0042] In the embodiments of the present application, the term "and / or" is only used to describe the association relationship of associated objects, indicating that three relationships may exist; for example, "A and / or B" may mean: A exists alone, B exists alone, and A and B exist at the same time. The term "multiple" means two or more, and the term "several" means one or more, unless otherwise specified. The terms "include", "comprise", "have" and their variations all mean "including but not limited to", unless otherwise specifically emphasized. The terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the indicated technical features; thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features.

[0043] In the embodiments of the present application, words such as "exemplary", "for example" or "for example" are used to indicate examples, illustrations or descriptions, and are intended to present related concepts in a specific way. Any embodiment or design described as "exemplary", "for example" or "for example" should not be interpreted as being more preferred or more advantageous than other embodiments or designs.

[0044] In the embodiments of the present application, a terminal may be described as a mobile device (MD), a user equipment (UE), a mobile station (MS), or a mobile terminal (MT). Specifically, a terminal may include a mobile phone, a television, a wearable device, a tablet computer, a personal digital assistant (PDA), a laptop computer, a mobile computer, an augmented reality (AR) device, a virtual reality (VR) device, an artificial intelligence (AI) device, etc.

[0045] Figure 1 Schematic diagram of a communication system provided in an embodiment of the present application. Figure 1As shown, terminal A1 is connected to IMS A3 through the mobile communication network B1 it accesses, terminal A2 is connected to IMS B3 through the mobile communication network B2 it accesses, and IMS A3 and IMS B3 are connected in communication. Among them, terminal A1 can be expressed as a first terminal, and terminal B1 can be expressed as a second terminal. In addition, IMS A3 and IMS B3 can be the same IMS, or different IMSs; mobile communication network A2 and mobile communication network B2 can be the same mobile communication network, or different mobile communication networks; terminal A1 and terminal B1 are both terminals that support resource reservation for sessions.

[0046] Terminal A1 can be used as a calling terminal to request to establish a session with terminal B1, which is a called terminal. Terminal A1 and terminal B1 that have successfully established a session can perform media services, such as interactive text, video, voice and other media data. In the process of establishing a session, it is necessary to establish a dedicated bearer for transmitting media data between terminal A1 and mobile communication network A2, and to establish a dedicated bearer for transmitting media data between terminal device B1 and mobile communication network B2; the process of establishing a dedicated bearer between the terminal and the mobile communication network can be called resource reservation for the session. In addition, the dedicated bearer can include a media packet data protocol (PDP) context, a packet data network (PDN) connection, or a protocol data unit (PDU) session, and needs to meet a specific QOS policy.

[0047] The following is combined with Figure 1 The communication system shown exemplarily describes the process of establishing a session between terminal A1 and terminal B1.

[0048] In some embodiments, the process of establishing a session between terminal A1 and terminal B1 may include but is not limited to the following: Figure 2 Follow some or all of the steps shown in .

[0049] First, when a user holding terminal A1 desires to conduct a media service with terminal B1, the user can trigger terminal A1 to execute step 201 and send a session request message to terminal B1 through an application deployed in terminal A1.

[0050] The session request message is used to request the establishment of a session between terminal A1 and terminal B1, and may include an INVITE message. The INVITE message may include the identifier of terminal A1, the identifier of terminal B1, and an extended identifier, and the extended identifier is used to indicate that terminal A1 supports resource reservation for the session. In addition, the INVITE message may also include the media types supported by terminal A1, such as video, audio (Audio), text and other media types; and the codecs supported by terminal A1 for various media types, such as PCMU, G.726 and G.729 and other codecs supported by terminal A1 for the media type "audio".

[0051] The INVITE message can be transmitted to IMS A3 via mobile communication network A2; IMS A3 can query IMS B3 to which terminal B1 is connected according to the identifier of terminal B1, and send the INVITE message to IMS B3; IMS B3 can send the INVITE message to terminal B1 via mobile communication network B2 to which terminal B1 accesses.

[0052] When the INVITE message reaches the IMS A3, the IMS A3 may execute step 202 to send a first dedicated bearer establishment request to the mobile communication network A2.

[0053] The first dedicated bearer establishment request is used to trigger the mobile communication network A2 to establish a dedicated bearer satisfying a specific QOS policy with the terminal A1, so as to use the dedicated bearer to transmit media data exchanged between the terminal A1 and the terminal B1 in a subsequent process.

[0054] Mobile communication network A2 may include access network A21 and core network A22, and mobile communication network B2 may include access network B21 and core network B22. Terminal A1 may access mobile communication network A2 through access network A21, and core network A22 is connected to IMS A3; terminal B1 may access mobile communication network B2 through access network B21, and core network B22 is connected to IMS B3.

[0055] Mobile communication network A2 and mobile communication network B2 may include but are not limited to 3G network, 4G network or 5G network. Specifically, access network A21 and access network B21 may include universal mobile telecommunications system terrestrial radio access network (UTRAN), evolved universal mobile telecommunications system terrestrial radio access network (EUTRAN) or new radio (NR) system. Core network A22 and core network B22 may include 3G core network, evolved packet core network (EPC) or 5G core network (5GC). Among them, the gateway general packet radio service (GPRS) support node (GGSN) of the 3G core network can be connected to the IMS communication; the PDN gateway (PGW) of the EPC can be connected to the IMS communication; the user plane function (UPF) entity of the 5G core network can be connected to the IMS communication.

[0056] The dedicated bearer between the terminal A1 and the mobile communication network A2 may include a data transmission path between the access network A21 and the core network A22, and a data radio bearer (DRB) between the terminal A1 and the access network A21. Figure 3, the core network responds to the dedicated bearer establishment request from the proxy-call session control function (P-CSCF) entity in the IMS, and generates a corresponding QOS policy according to the QOS configuration information from the application layer. Then, the core network can send the QOS policy to the access network. Based on the QOS policy, the access network can establish a data transmission path for transmitting media data with the core network, for example, establish a data transmission path for transmitting media data with the GGSN, PGW or UPF entity in the core network; the access network can also send the QOS policy to the terminal, so that the terminal and the access network exchange radio resource control (RRC) signaling or other signaling, complete the establishment of a DRB that meets the QOS policy between the terminal and the access network, thereby completing the establishment of a dedicated bearer between the terminal and the mobile communication network, that is, completing the resource reservation for the session.

[0057] For the terminal B1 that receives the INVITE message, it can be learned from the extension identifier included in the INVITE message that the terminal A1 supports resource reservation for the session. In the case where the terminal B1 itself supports resource reservation, the terminal B1 can execute step 2031 to send a session response message to the terminal A1 according to the indication of the extension identifier included in the INVITE message. And execute step 2032 to start a first timer with a preset first duration.

[0058] The session response message may include an INVITE 183 message. As a temporary response to the session request, the INVITE 183 message may include a first indication information and a second indication information. The first indication information is used to instruct the terminal A1 to reserve resources for the session; the second indication information is used to instruct the terminal A1 to return a corresponding resource reservation completion confirmation message to the terminal B1 after completing the resource reservation for the session. In addition, the INVITE 183 message may also include the media types supported by the terminal B1, and the codecs supported by the terminal B1 for each media type.

[0059] The INVITE 183 message may be transmitted to the IMS B3 via the mobile communication network B2; the IMS B3 sends the INVITE 183 message to the IMS A3; the IMS A3 may send the INVITE message to the terminal A1 via the mobile communication network A2 accessed by the terminal A1.

[0060] When the INVITE 183 message reaches the IMS B3, the IMS B3 may execute step 204 to send a second dedicated bearer establishment request to the mobile communication network B2.

[0061] The second dedicated bearer establishment request is used to trigger the mobile communication network B2 to establish a dedicated bearer that meets the specific QOS policy with the terminal B1, so as to use the dedicated bearer to transmit the media data exchanged between the terminal A1 and the terminal B1 in the subsequent process. The process of establishing a dedicated bearer that meets the specific QOS policy between the mobile communication network B2 and the terminal B1 is similar to the process of establishing a dedicated bearer that meets the specific QOS policy between the mobile communication network A2 and the terminal A1, so it will not be repeated here.

[0062] For the terminal A1 that receives the INVITE 183 message, step 2051 may be executed to start a timer with a preset first duration, and step 2052 may be executed to send a provisional response confirmation message to the terminal B1.

[0063] The temporary response confirmation message may include a PRACK message. The PRACK message may include one or more target media types determined by terminal A1, and the target codecs corresponding to the various target media types. If terminal A1 and terminal B1 successfully establish a session, terminal A1 and terminal B1 may exchange media data belonging to various target media types in the subsequent process, and use the target codecs corresponding to the various target media types to encode or decode the corresponding media data.

[0064] Exemplarily, terminal A1 can learn various media types supported by terminal B1 and the codecs supported by terminal B1 for various media types based on the INVITE 183 message. Taking the case where the media types supported by both terminal A1 and terminal B1 include video and audio as an example, terminal A1 can determine the media types "audio" and "video" supported by itself and terminal B1 as target media types. Taking the case where the codecs supported by both terminal A1 and terminal B1 for the media type "audio" include PCMU and G.726 as an example, for the target media type "audio" determined by terminal A1, terminal A1 can determine one of the codecs of PCMU and G.726 as the target codec corresponding to the target media type "audio".

[0065] Terminal A1 can learn, based on the first indication information included in the INVITE 183 message, that it needs to reserve resources for the session between terminal A1 and terminal A2; and based on the second indication information included in the INVITE 183 message, it can learn that it needs to send a resource reservation completion confirmation message to terminal B1 after completing resource reservation for the session.

[0066] Similar to the process of transmitting the INVITE message, the PRACK message can be transmitted to IMS A3 through the mobile communication network A1; then IMS A3 sends the PRACK message to IMS B3; IMS B3 sends the PRACK message to terminal B1 through the mobile communication network B2 accessed by terminal B2.

[0067] For the terminal B1 that receives the PRACK message, step 206 may be executed to send a first confirmation message to the terminal A1.

[0068] The first confirmation message may include a PRACK 200OK message, which is used to indicate that the PRACK message from the terminal A1 is successfully received by the terminal B1.

[0069] For terminal A1, if terminal A1 completes resource reservation for the session before the timing duration of the first timer started by terminal A1 reaches the preset first duration, that is, terminal A1 completes establishment of a dedicated bearer that meets the specific QOS policy before the timing duration of the first timer started by terminal A1 reaches the preset first duration, then terminal A1 can execute step 2071 and send a resource reservation completion confirmation message to terminal B1.

[0070] The resource reservation completion confirmation message may include an UPDATE message, and the UPDATE message is used to indicate that the terminal A1 has completed the resource reservation for the session.

[0071] Terminal B1 may execute step 2081 in response to the resource reservation completion confirmation message from terminal A1, and send a second confirmation message to terminal A1.

[0072] The second confirmation message may include an UPDATE 200OK message, where the UPDATE 200OK message is used to indicate that the UPDATE message is successfully received by the terminal B1.

[0073] After terminal B1 successfully receives the UPDATE message from terminal A1, if terminal B1 completes reserving resources for the session before the timing duration of the first timer started by terminal B1 reaches the preset first duration, that is, terminal B1 completes establishing a dedicated bearer that meets the specific QOS policy before the timing duration of the timer reaches the preset first duration, then terminal B1 can execute step 2091 and send a ringing message to terminal B1.

[0074] The ringing message may include a 180RING message.

[0075] It should be noted that when terminal B1 completes reserving resources for the session before the timing duration of the first timer started by terminal B1 reaches the preset first duration, terminal B1 may start ringing to prompt the user holding terminal B1 to pick up the phone to answer.

[0076] It should be noted that, after terminal B1 successfully sends the ringing message, if the user holding terminal B1 picks up the phone to answer, terminal B1 can send a session confirmation message to terminal A1 to complete the establishment of the session between terminal A1 and terminal B1, and then perform media services based on the session established between terminal A1 and terminal B1. The session confirmation message may include an INVITE 200OK message.

[0077] When mobile communication network A2 fails, packet loss occurs, computing resources are insufficient, or network resources are insufficient, it may not be able to establish a dedicated bearer between itself and terminal A1 in a short period of time, resulting in terminal A1 being unable to reserve resources for the session in a short period of time.

[0078] In order to improve user experience and enable terminal A1 and terminal B1 to start media services as quickly as possible, in some embodiments, different from the example Figure 2 The illustrated embodiment is that when the timing duration of the first timer started by terminal A1 reaches a preset first duration, if terminal A1 has not yet completed the establishment of a dedicated bearer between it and mobile communication network A2, that is, terminal A1 has failed to complete the resource reservation for the session, then terminal A1 leaves mobile communication network A2, re-accesses other mobile communication networks that terminal A1 is allowed to access, and re-requests to establish a session with terminal B1 through other mobile communication networks.

[0079] For a more specific example, see Figure 4 If terminal A1 fails to complete the establishment of a dedicated bearer that meets the specific QOS policy before the timing duration of the first timer it started reaches the preset first duration, that is, terminal A1 fails to complete the resource reservation for the session within the first duration, then terminal A1 can execute step 2072 and send a session cancellation message to terminal B1.

[0080] The session cancellation message may include a CANCEL message, which is used to indicate the cancellation of the session established by the INVITE message, or to indicate that the terminal B1 terminates the relevant processing flow of the INVITE message, such as terminating the establishment of a dedicated bearer between the terminal B1 and the mobile communication network B2.

[0081] After receiving the CANCEL message from the terminal A1, the terminal B1 first executes step 2082 to send a third confirmation message to the terminal A1, and then executes step 2092 to send a second session termination message to the terminal A1.

[0082] The third confirmation message may include a CANCEL 200OK message, which is used to indicate that the terminal B1 has successfully received the CANCEL message from the terminal A1. The second session termination message may include an INVITE 487 message, which is used to indicate that the session requested to be established by the INVITE message is terminated.

[0083] After receiving the INVITE 487 message from the terminal B1, the terminal A1 may execute step 2102 to send a fourth confirmation message to the terminal B1, and then execute step 2112 to switch to another domain and redial.

[0084] The fourth confirmation message may include an ACK message relative to the INVITE message, which is used to indicate that the terminal A1 successfully learns that the session requested to be established by the INVITE message is terminated.

[0085] Terminal A1 switches to another domain for redialing, which means that terminal A1 leaves mobile communication network A1, accesses another mobile communication network that terminal A1 is allowed to access, and re-requests to establish a session with terminal B1 through another mobile communication network. For example, mobile communication network A2 includes a 4G network, and the mobile communication network that terminal A1 is allowed to access also includes a 3G network. Then terminal A1 can leave the 4G network and access the 3G network, and send a session request message to terminal B1 through the circuit switched (CS) domain of the 3G network, requesting to establish a session between terminal A1 and terminal B1.

[0086] When the mobile communication network B2 fails, packet loss occurs, computing resources are insufficient, or network resources are insufficient, it may not be able to establish a dedicated bearer between itself and terminal B1 in a short period of time, resulting in terminal B1 being unable to reserve resources for the session in a short period of time.

[0087] In order to prevent terminal A1 from waiting for a long time for terminal B1 to reserve resources for the session, in some embodiments, different from the example Figure 2 The illustrated embodiment is that when the timing duration of the first timer started by the terminal B1 reaches a preset first duration, if the terminal B1 has not yet completed the establishment of a dedicated bearer between it and the mobile communication network B2, that is, the terminal B1 has failed to complete the resource reservation for the session, then the terminal B1 terminates the session requested to be established by the INVITE message.

[0088] For a more specific example, see Figure 5After terminal B1 successfully receives the UPDATE message from terminal A1 and sends UPDATE 200OK to terminal A1, if terminal B1 fails to complete the establishment of a dedicated bearer that meets the specific QOS policy before the timing duration of the first timer started by terminal B1 reaches the preset first duration, that is, terminal B1 fails to complete the resource reservation for the session within the first duration, then terminal B1 can execute step 2093 and send a first session termination message to terminal A1.

[0089] The first session termination message may include an INVITE 580 message, where the INVITE 580 message is used to indicate that the terminal B1 terminates the session due to failure to complete resource reservation for the session.

[0090] After receiving the INVITE 580 message from the terminal B1, the terminal A1 may execute step 2103 to send a fifth confirmation message to the terminal B1.

[0091] The fifth confirmation message may include an ACK message relative to the INVITE message, which is used to indicate that the terminal A1 successfully learns that the session established by the INVITE message is terminated.

[0092] In the aforementioned embodiments, for terminal A1, when terminal A1 fails to complete resource reservation for the session before the timing duration of the first timer started by terminal A1 reaches the preset first duration, terminal A1 can switch to other mobile communication networks that terminal A1 is allowed to access, and re-request to establish a session with terminal B1 through the switched mobile communication network, which will not have a negative impact on the success rate of establishing a session between terminal A1 and terminal B1. For terminal B1, when terminal B1 fails to complete resource reservation for the session before the timing duration of the first timer started by terminal B1 reaches the preset first duration, terminal B1 directly terminates the establishment of the session between terminal A1 and terminal B1, which reduces the success rate of establishing a session between terminal A1 and terminal B1.

[0093] In order to improve the success rate of establishing a session between terminal A1 and terminal B1, in some embodiments, different from the example Figure 2 The embodiment shown is that Figure 6 As shown, after the terminal B1 sends the INVITE 183 message to the terminal A1, step 2032 is no longer executed, but step 2033 is executed to start a second timer with a preset second duration, wherein the second duration is greater than the first duration. In addition, if the terminal B1 completes the resource reservation for the session before the timing duration of the second timer reaches the second duration, the terminal B1 executes step 2091. If the terminal B1 fails to complete the resource reservation for the session before the timing duration of the second timer reaches the second duration, the terminal B1 executes step 2093.

[0094] In this way, the called terminal can have a longer time to complete the resource reservation for the session without affecting the user experience of the calling terminal. The mobile communication network accessed by the called terminal can support the called terminal to establish a dedicated bearer that meets the specific QOS policy with the mobile communication network it accesses by releasing more available computing resources and network resources and retransmitting lost data packets for a longer period of time, thereby improving the success rate of establishing a session between the calling terminal and the called terminal.

[0095] For example, please refer to Figure 7 , the time required for the INVITE 183 message to be transmitted from the terminal B1 to the terminal A1 is relatively small, and it is approximately considered that the moment when the terminal B1 starts the second timer and the moment when the terminal A1 starts the first timer are both the moment t0. During the first time period between the moment t0 and the moment ti, the terminal B1 may be unable to complete the resource reservation for the session during the first time period between the moment t0 and the moment ti due to the insufficient available computing resources and network resources and the existence of packet loss in the mobile communication network B2 to which it is connected. However, since the first time period T1 is less than the second time period T2, during the time period between the moment ti and the moment tj, the mobile communication network B2 may continue to release the occupied computing resources and network resources, and retransmit the lost data packets, so that the terminal B1 completes the resource reservation for the session during the time period between the moment ti and the moment tj. In this way, the possibility of the terminal B1 completing the resource reservation for the session is improved, the possibility of the session being terminated by the terminal B1 is reduced, and the success rate of the establishment of the session between the calling terminal and the called terminal is improved.

[0096] Based on the same concept as the aforementioned method embodiment, a terminal 80 is also provided in the embodiment of the present application. Terminal 80 can be used as a calling terminal to implement the various method steps performed by terminal A1 in the aforementioned method embodiment; terminal 80 can also be used as a called terminal to implement the various method steps performed by terminal B1 in the aforementioned method embodiment. In other words, the specific working process of terminal 80 can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here. In addition, in order to facilitate the description of the technical solution provided in the present application, terminal 80 as a calling terminal is expressed as a first terminal, and terminal 80 as a called terminal is expressed as a second terminal.

[0097] In some embodiments, Figure 8As shown, the terminal 80 may include a communication interface 801, a memory 802 and a processor 803. The communication interface 801 is used to communicate with other terminals. The memory 802 is used to store computer programs / instructions. The processor 803 is used to run the computer programs / instructions stored in the memory 802 to implement the various method steps performed by the terminal A1 and / or the terminal B1 in the above method embodiment.

[0098] If the terminal 80 is a first terminal, when the processor 803 runs the computer program / instruction stored in the memory 802, the processor 803 is used to implement the various method steps performed by the terminal A1 in the aforementioned method embodiment. Specifically, the processor 803 is at least used to execute: sending a first session request message to the second terminal, the first session request message is used to request to establish a session between the first terminal and the second terminal; receiving a session response message from the second terminal; starting a first timer; when the first terminal completes resource reservation for the session before the timing duration of the first timer reaches a preset first duration, sending a resource reservation completion confirmation message to the second terminal; and receiving a ringing message from the second terminal, the ringing message is sent by the second terminal when the resource reservation for the session is completed before the timing duration of the second timer reaches a preset second duration, the second timer is started by the second terminal after receiving the session request message, and the first duration is less than the second duration.

[0099] If the terminal 80 is a second terminal, when the processor 803 runs the computer program / instruction stored in the memory 802, the processor 803 is used to implement the method steps executed by the terminal B1 in the above method embodiment. Specifically, the processor 803 is at least used to execute: receiving a first session request message from the first terminal, the first session request message is used to request to establish a session between the first terminal and the second terminal; sending a session response message to the first terminal according to the first session request message, and starting a second timer; receiving a resource reservation completion confirmation message from the first terminal, the resource reservation completion confirmation message is sent by the first terminal when the resource reservation for the session is completed before the timing duration of the first timer reaches a preset first duration, and the first timer is started by the first terminal after receiving the session response message; when the second terminal completes the resource reservation for the session before the timing duration of the second timer reaches a preset second duration, sending a ringing message to the first terminal, and the second duration is greater than the first duration.

[0100] The terminal 80 may include a first communication device for implementing the steps of each method executed by the terminal A1, and a second communication device for implementing the steps of each method executed by the terminal B1. The first communication device and the second communication device may be deployed in the terminal 80 independently of each other, or may be integrated into one communication device and deployed in the terminal 80. The communication device may be implemented by hardware, or may be implemented by hardware executing corresponding software; wherein the hardware or software may include one or more units corresponding to the steps of the method executed by the terminal A1 and the terminal B1 respectively.

[0101] In some embodiments, when a communication device is implemented by executing software through hardware, the software may be a computer program product including computer programs / instructions. When the computer programs / instructions run on the processor 803 of the terminal 80, the terminal 80 or its processor 803 implements the various method steps performed by the terminal A1 and / or the terminal B1 in the aforementioned method embodiment.

[0102] The present application also provides a computer-readable storage medium for storing a computer program / instruction. When the computer program / instruction is executed by the processor of the terminal 80, the terminal 80 or its processor 803 implements the steps of the method performed by the terminal A1 and / or the terminal B1 in the above method embodiment.

[0103] The present application also provides a chip / system on chip, which is used to implement the steps of the method performed by the terminal A1 and / or the terminal B1 in the above method embodiment. The chip / system on chip is deployed in the terminal 80.

[0104] In summary, for a single terminal 80, the terminal 80 can be configured with a first timer and a second timer, as well as a preset first duration and a second duration; wherein the first timer and the second timer can be independent timers or the same timer. In this way, when the terminal 80 is a calling terminal, it can communicate with the corresponding called terminal according to the first timer and the first duration configured therein, and implement the technical solution provided in the embodiment of the present application; when the terminal 80 is a called terminal, it can communicate with the corresponding calling terminal according to the second timer and the second duration configured therein, and implement the technical solution provided in the embodiment of the present application.

[0105] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the embodiments of the present application.

[0106] In the embodiments of the present application, the sequence numbers of the above-mentioned processes / steps do not mean the order of execution. The order of execution of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0107] In the embodiments of the present application, the device embodiments of the terminal 80 described are schematic. For example, the division of the modules / units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0108] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions provided in the aforementioned embodiments can still be modified, or some of the technical features therein can be replaced by equivalents, and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions provided in the various embodiments of the present application.

Claims

1. A communication system, characterized in that: include: A first terminal and a second terminal; wherein, The first terminal is used to send a first session request message to the second terminal, where the first session request message is used to request to establish a session between the first terminal and the second terminal; The second terminal is used to send a session response message to the first terminal according to the first session request message, and start a second timer; The first terminal is further configured to start a first timer after receiving the session response message, and send a resource reservation completion confirmation message to the second terminal when the first terminal completes resource reservation for the session before the timing duration of the first timer reaches a preset first duration, where the first duration is a preset start duration of the first timer; The second terminal is also used to send a ringing message to the first terminal after receiving the resource reservation completion confirmation message and the second terminal completes the resource reservation for the session before the timing duration of the second timer reaches a preset second duration, where the second duration is the preset start duration of the second timer, and the second duration is greater than the first duration.

2. The communication system according to claim 1, characterized in that The second terminal is also used to send a first session termination message to the first terminal when the second terminal fails to complete resource reservation for the session before the timing duration of the second timer reaches a preset second duration, and the first session termination message is used to indicate that the session is terminated.

3. The communication system according to claim 1 or 2, characterized in that: The first terminal is further configured to, when the first terminal fails to complete resource reservation for the session before the timing duration of the first timer reaches a preset first duration, send a session cancellation message to the second terminal, wherein the session cancellation message is used to request termination of the session; The second terminal is further used to send a second session termination message to the first terminal according to the session cancellation message, where the second session termination message is used to indicate that the session is terminated.

4. The communication system according to claim 3, characterized in that: The first terminal is further used to, after receiving the second session termination message, leave the mobile communication network accessed by the first terminal and access another mobile communication network that the first terminal is allowed to access; and send a second session request message to the second terminal through the other mobile communication network, where the second session request message is used to request to establish a session between the first terminal and the second terminal.

5. A first terminal, characterized in that: include: Memory for storing computer programs; A processor, configured to run a computer program stored in the memory to execute, Sending a first session request message to a second terminal, where the first session request message is used to request to establish a session between the first terminal and the second terminal; receiving a session response message from the second terminal; Starting a first timer; When the first terminal completes resource reservation for the session before the timing duration of the first timer reaches a preset first duration, the first terminal sends a resource reservation completion confirmation message to the second terminal; and receives a ringing message from the second terminal, the ringing message is sent by the second terminal when the second terminal completes resource reservation for the session before the timing duration of the second timer reaches a preset second duration, the second timer is started by the second terminal after receiving the session request message, the first duration is the preset start duration of the first timer, the second duration is the preset start duration of the second timer, and the first duration is less than the second duration.

6. The first terminal according to claim 5, characterized in that: The processor is further configured to execute: A first session termination message is received from the second terminal, where the first session termination message is used to indicate that the session is terminated, and the first session termination message is sent by the second terminal when the second terminal fails to complete resource reservation for the session before the timing duration of the second timer reaches a preset second duration.

7. The first terminal according to claim 5 or 6, characterized in that: The processor is further configured to execute: When the first terminal fails to complete resource reservation for the session before the timing duration of the first timer reaches a preset first duration, sending a session cancellation message to the second terminal, where the session cancellation message is used to request termination of the session; as well as, A second session termination message is received from the second terminal, where the second session termination message is used to indicate that the session is terminated.

8. The first terminal according to claim 7, characterized in that: The processor is further configured to execute: leaving the mobile communication network accessed by the first terminal and accessing another mobile communication network that the first terminal is allowed to access; A second session request message is sent to the second terminal through the other mobile communication network, where the second session request message is used to request to establish a session between the first terminal and the second terminal.

9. A second terminal, characterized in that: include: Memory for storing computer programs; A processor for running the computer program to execute, receiving a first session request message from a first terminal, where the first session request message is used to request to establish a session between the first terminal and the second terminal; Sending a session response message to the first terminal according to the first session request message, and starting a second timer; receiving a resource reservation completion confirmation message from the first terminal, where the resource reservation completion confirmation message is sent by the first terminal when resource reservation for the session is completed before the timing duration of a first timer reaches a preset first duration, where the first timer is started by the first terminal after receiving the session response message, and the first duration is a preset start duration of the first timer; When the second terminal completes resource reservation for the session before the timing duration of the second timer reaches a preset second duration, a ringing message is sent to the first terminal, where the second duration is the preset start duration of the second timer, and the second duration is greater than the first duration.

10. The second terminal according to claim 9, characterized in that: The processor is further configured to execute: When the second terminal fails to complete resource reservation for the session before the timing duration of the second timer reaches a preset second duration, the first session termination message is sent to the first terminal, where the first session termination message is used to indicate that the session is terminated.

11. The second terminal according to claim 9 or 10, characterized in that: The processor is further configured to execute: receiving a session cancellation message from the second terminal, where the session cancellation message is used to request termination of the session, and the session cancellation message is sent by the first terminal when the first terminal fails to complete resource reservation for the session before the timing duration of the first timer reaches a preset first duration; A second session termination message is sent to the first terminal according to the session cancellation message, where the second session termination message is used to indicate that the session is terminated.

12. The second terminal according to claim 11, characterized in that: The processor is further configured to execute: receiving a second session request message from the first terminal, where the second session request message is used to request establishment of a session between the first terminal and the second terminal, where the second session request message is sent by the first terminal through another mobile communication network after the first terminal leaves the mobile communication network accessed by the first terminal and accesses another mobile communication network that the first terminal is allowed to access.

13. A method for establishing a session, characterized in that: Applied to a first terminal, the method includes: Sending a first session request message to a second terminal, where the first session request message is used to request to establish a session between the first terminal and the second terminal; receiving a session response message from the second terminal; Starting a first timer; When the first terminal completes resource reservation for the session before the timing duration of the first timer reaches a preset first duration, the first terminal sends a resource reservation completion confirmation message to the second terminal; and receives a ringing message from the second terminal, the ringing message is sent by the second terminal when the second terminal completes resource reservation for the session before the timing duration of the second timer reaches a preset second duration, the second timer is started by the second terminal after receiving the session request message, the first duration is the preset start duration of the first timer, the second duration is the preset start duration of the second timer, and the first duration is less than the second duration.

14. The method according to claim 13, characterized in that Also includes: A first session termination message is received from the second terminal, where the first session termination message is used to indicate that the session is terminated, and the first session termination message is sent by the second terminal when the second terminal fails to complete resource reservation for the session before the timing duration of the second timer reaches a preset second duration.

15. The method according to claim 13 or 14, characterized in that Also includes: When the first terminal fails to complete resource reservation for the session before the timing duration of the first timer reaches a preset first duration, sending a session cancellation message to the second terminal, where the session cancellation message is used to request termination of the session; as well as, A second session termination message is received from the second terminal, where the second session termination message is used to indicate that the session is terminated.

16. The method according to claim 15, characterized in that After receiving the second session termination message from the second terminal, the method further includes: Leaving the mobile communication network accessed by the first terminal and accessing another mobile communication network that the first terminal is allowed to access; and, A second session request message is sent to the second terminal through the other mobile communication network, where the second session request message is used to request to establish a session between the first terminal and the second terminal.

17. A method for establishing a session, characterized in that: Applied to the second terminal, the method includes: receiving a first session request message from a first terminal, where the first session request message is used to request to establish a session between the first terminal and the second terminal; Sending a session response message to the first terminal according to the first session request message, and starting a second timer; receiving a resource reservation completion confirmation message from the first terminal, where the resource reservation completion confirmation message is sent by the first terminal when resource reservation for the session is completed before the timing duration of a first timer reaches a preset first duration, where the first timer is started by the first terminal after receiving the session response message, and the first duration is a preset start duration of the first timer; When the second terminal completes resource reservation for the session before the timing duration of the second timer reaches a preset second duration, a ringing message is sent to the first terminal, where the second duration is the preset start duration of the second timer, and the second duration is greater than the first duration.

18. The method according to claim 17, characterized in that Also includes: When the second terminal fails to complete resource reservation for the session before the timing duration of the second timer reaches a preset second duration, the first session termination message is sent to the first terminal, where the first session termination message is used to indicate that the session is terminated.

19. The method according to claim 17 or 18, characterized in that Also includes: receiving a session cancellation message from the second terminal, where the session cancellation message is used to request termination of the session, and the session cancellation message is sent by the first terminal when the first terminal fails to complete resource reservation for the session before the timing duration of the first timer reaches a preset first duration; A second session termination message is sent to the first terminal according to the session cancellation message, where the second session termination message is used to indicate that the session is terminated.

20. The method according to claim 19, characterized in that After sending a second session termination message to the first terminal according to the session cancellation message, the method further includes: receiving a second session request message from the first terminal, where the second session request message is used to request establishment of a session between the first terminal and the second terminal, where the second session request message is sent by the first terminal through another mobile communication network after the first terminal leaves the mobile communication network accessed by the first terminal and accesses another mobile communication network that the first terminal is allowed to access.

21. A computer-readable storage medium, used for storing a computer program, which, when executed by a processor of a terminal, enables the terminal to implement the method of any one of claims 13 to 16 and / or the method of any one of claims 17 to 20.

Citation Information

Patent Citations

  • Techniques for packet-switched video telephony setup with QoS preconditions

    CN106688221A