Session configuration method and apparatus, storage medium, processor and terminal device
By sending request information in the PDU session and retransmitting it after timeout to activate and mark the process transaction identifier, the problem of PDU session state asynchrony is solved, synchronization between user equipment and network equipment is achieved, equipment power consumption and traffic billing are reduced, and user experience is improved.
Patent Information
- Application Number
- CN202310723069.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-16
- Publication Date
- 2025-12-19
- Estimated Expiration
- 2043-06-16
AI Technical Summary
Existing technologies suffer from problems such as invalid data transmission, increased device power consumption, and unnecessary traffic billing for users due to PDU session state asynchrony.
By sending a first request message to the network device, receiving the first response message upon timeout and resending the request message, activating the target session and marking the process transaction identifier, maintaining synchronization between the target session and the network device, and reconfiguring using the second response message.
Ensure that target sessions between user devices and network devices remain synchronized, avoid invalid data transmission, reduce device power consumption and traffic billing, and improve user experience.
Smart Images

Figure CN116743838B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of wireless communication, in particular to a session configuration method and device, a storage medium, a processor and a terminal device. BACKGROUND
[0002] A packet data unit (PDU) session is a connection established between a user equipment (UE) and a network device, and after the PDU session is established, the user equipment can perform data interaction with the network device through the PDU session.
[0003] Figure 1 FIG. 1 is a schematic diagram of a PDU session establishment in the related art, as shown in FIG. 1, in the establishment process of the PDU session, the UE sends a PDU session establishment request to the network device, when the UE has not received a response message sent by the network device to accept the PDU session establishment after a transaction timer expires, the UE will resend the PDU session establishment request, and then the UE receives the response message sent by the network device to accept the session establishment, the UE releases a procedure transaction identity (PTI) used in the PDU session establishment process, at this time, if the UE receives a response message carrying the PTI, the UE will reply cause #47 "PTI mismatch" to prompt that the PTI is not adapted, so that the network device locally releases a corresponding PDU session, which is easy to cause the PDU session between the UE and the network device to be out of synchronization, and is easy to cause the transmitted data to be invalid, thereby increasing the power consumption of the device, causing unnecessary traffic billing for the user, and affecting the user experience. Figure 1
[0004] At present, no effective solution has been proposed for the above problems. SUMMARY
[0005] The main purpose of the present application is to provide a session configuration method and device, a storage medium, a processor and a terminal device, to at least solve the technical problem that the PDU session state is out of synchronization in the related art.
[0006] According to an embodiment of the present application, a session configuration method is provided, comprising: sending first request information to a network device, wherein the first request information is used to establish a target session between the network device and a user equipment; receiving first response information returned by the network device based on the first request information sent for the first time in response to a timeout, and having re-sent the first request information to the network device within a preset time period, activating the target session based on the first response information, marking a process transaction identifier associated with the target session, and storing the process transaction identifier as a process transaction identifier used to establish the target session, wherein the first response information is used to indicate that the target session has been successfully activated in the network device; receiving second response information returned by the network device based on the re-sent first request information in response to not being timed out, and the second response information carrying a process transaction identifier matching the stored process transaction identifier, maintaining synchronization of the target session between the network device and the user equipment, wherein the second response information is used to indicate that the target session has been successfully activated in the network device.
[0007] Optionally, marking the process transaction identifier associated with the target session comprises marking a use state of the process transaction identifier associated with the target session as an unused state; and maintaining synchronization of the target session between the network device and the user equipment comprises not sending mismatch information indicating a mismatch of the process transaction identifier to the network device.
[0008] Optionally, the session configuration method further comprises: reconfiguring the activated target session using the second response information in response to not being timed out to receive the second response information returned by the network device based on the re-sent first request information, and the second response information carrying the process transaction identifier matching the stored process transaction identifier.
[0009] Optionally, the second response information further comprises a session identifier of the target session.
[0010] Optionally, reconfiguring the activated target session using the second response information comprises: obtaining a target configuration parameter corresponding to the target session based on the second response information; and reconfiguring the target session using the target configuration parameter in response to determining that the target session corresponding to the session identifier and the process transaction identifier in the second response information is in an activated state.
[0011] Optionally, the first request information and / or the first response information comprises a session identifier and a process transaction identifier of the target session; and / or the target session comprises a packet data unit (PDU) session.
[0012] According to an embodiment of the present application, a session configuration method is provided. The method comprises: sending first request information to a network device, wherein the first request information is used to establish a target session between the network device and a user equipment; receiving first response information returned by the network device based on the first request information, wherein the first response information is used to indicate that the target session has been successfully activated in the network device; and activating the target session based on the first response information, marking a process transaction identifier associated with the target session, and storing the process transaction identifier as a process transaction identifier used to establish the target session.
[0013] Optionally, the method further comprises: marking a use state of the process transaction identifier associated with the target session as an unused state; and not sending mismatch information to the network device, wherein the mismatch information is used to indicate that the process transaction identifier is mismatched.
[0014] Optionally, the method further comprises: receiving second response information returned by the network device based on the first request information, wherein the second response information is used to indicate that the target session has been successfully activated in the network device; and reconfiguring the target session based on the second response information.
[0015] Optionally, the method further comprises: obtaining a target configuration parameter corresponding to the target session based on the second response information; and reconfiguring the target session based on the target configuration parameter.
[0016] According to an embodiment of the present application, a non-volatile storage medium is provided. The non-volatile storage medium stores a computer program. The computer program is configured to execute the session configuration method according to any one of the above embodiments when the computer program is executed.
[0017] According to an embodiment of the present application, a processor is provided. The processor is configured to execute a program. The program is configured to execute the session configuration method according to any one of the above embodiments when the program is executed.
[0018] According to an embodiment of the present application, a terminal device is also provided, which comprises a memory and a processor, the memory stores a computer program, and the processor is configured to execute the computer program to perform the session configuration method in any of the above.
[0019] In the embodiment of the present application, by sending the first request information to the network device, and then receiving the first response information returned by the network device based on the first sent first request information in response to the timeout, and having retransmitted the first request information to the network device within the preset time period, the target session is activated based on the first response information, the process transaction identifier associated with the target session is marked, and the process transaction identifier is stored as the process transaction identifier used to establish the target session. Finally, in response to receiving the second response information returned by the network device based on the retransmitted first request information without timeout, and the second response information carrying the process transaction identifier matching the stored process transaction identifier, the target session is kept synchronized between the network device and the user device. Compared with the related art, the present application can ensure that the target session between the user device and the network device is kept synchronized, avoid the transmission of invalid data due to the unsynchronized target session between the user device and the network device, thereby reducing the power consumption of the device, reducing unnecessary traffic billing of the user, and helping to improve the user experience. BRIEF DESCRIPTION OF DRAWINGS
[0020] The drawings accompanying the specification of the present application are used to provide further understanding of the present application, the illustrative embodiments of the present application and the description thereof are used to explain the present application, and do not constitute improper limitation on the present application. In the drawings:
[0021] Figure 1 is a schematic diagram of a PDU session establishment in the related art;
[0022] Figure 2 is a flowchart of a session configuration method according to an embodiment of the present application;
[0023] Figure 3 is a schematic diagram of a session configuration method according to an embodiment of the present application;
[0024] Figure 4 is a schematic diagram of another session configuration method according to an embodiment of the present application;
[0025] Figure 5 is a structural block diagram of a session configuration device according to an embodiment of the present application. DETAILED DESCRIPTION
[0026] It should be noted that the embodiments in the present application and the features in the embodiments can be combined with each other without conflict. The present application will be described in detail below with reference to the drawings and in combination with the embodiments.
[0027] In order to make the person skilled in the art better understand the present application, the technical solutions in the embodiments of the present application will be described clearly and completely below in combination with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by the person skilled in the art without creative labor should belong to the protection scope of the present application.
[0028] It should be noted that the terms "first", "second", and the like in the specification and claims of the present application and the above-described drawings are used to distinguish similar objects, and do not necessarily have to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device including a series of steps or units does not have to be limited to those steps or units clearly listed, but can include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0029] It should be understood that when an element (such as a layer, film, region, or substrate) is described as "on" another element, it can be directly on the other element, or there can be an intermediate element. Also, in the specification and claims, when an element is described as "connected to" another element, it can be "directly connected to" the other element, or "connected to" the other element through a third element.
[0030] As mentioned in the background, the session configuration method in the related art is difficult to ensure that the session between the user equipment and the network equipment is kept in synchronization, resulting in invalid data transmission, easy to increase device power consumption, and increase unnecessary traffic billing for users, affecting user experience. In order to solve the above problems, in an embodiment of the present application, a session configuration method, device, storage medium, processor and terminal equipment are provided.
[0031] According to an embodiment of the present application, a session configuration method is provided. Figure 2 is a flowchart of a session configuration method according to an embodiment of the present application. As shown in Figure 2 The method comprises the following steps:
[0032] Step S201, sending first request information to a network device, wherein the first request information is used to establish a target session between the network device and the user equipment;
[0033] In step S201, when the target session is established between the network device and the user equipment, the user equipment can send first request information to the network device.
[0034] Optionally, the first request information includes the session identifier and the procedure transaction identifier of the target session, and the target session includes a packet data unit (PDU) session.
[0035] Specifically, the target session can be a PDU session, and the first request information can be a PDU session establishment request, wherein the first request information can include the session identifier (SESSION ID) and the procedure transaction identifier (Procedure Transaction Identity, PTI) of the PDU session.
[0036] For example, when a PDU session 1 is established between the network device and the user equipment, the user equipment can send first request information to the network device, wherein the first request information includes the session identifier PDU SESSION ID:1 and the procedure transaction identifier PTI:1 of the PDU session 1.
[0037] In step S202, in response to receiving the first response information returned by the network device based on the first request information sent for the first time and having re-sent the first request information to the network device within a preset time period, the target session is activated based on the first response information, the procedure transaction identifier associated with the target session is marked, and the procedure transaction identifier is stored as the procedure transaction identifier used to establish the target session, wherein the first response information is used to indicate that the target session has been successfully activated in the network device.
[0038] Specifically, after receiving the establishment request information of the target session sent by the user, the network device can activate the target session in the network device and send response information to the user equipment.
[0039] For example, after receiving the establishment request information of the PDU session 1 sent by the user, the network device can activate the PDU session 1 in the network device, wherein the request information includes the session identifier PDU SESSION ID:1 and the procedure transaction identifier PTI:1 of the PDU session 1. At this time, the PDU session 1 in the network device is in an activated state, and the network device sends response information to accept the establishment of the PDU session 1 to the user equipment.
[0040] In step S202, when the user equipment receives the first response information returned by the network equipment based on the first request information sent for the first time within a preset time period, the target session is activated based on the first response information, the process transaction identifier associated with the target session is marked, and the process transaction identifier is stored as the process transaction identifier used to establish the target session.
[0041] Specifically, the preset time period can be the timeout time set by the transaction timer in the user equipment, and the first response information indicates that the target session has been successfully activated in the network equipment.
[0042] For example, when the user equipment receives the response information returned by the network equipment to accept the establishment of PDU session 1 after the timeout time set by the transaction timer, it can be learned from the response information that PDU session 1 in the network equipment has been successfully activated, and the user equipment has re-sent the PDU session 1 request information within the timeout time. Therefore, the user equipment can activate PDU session 1 in the user equipment based on the response information, mark PTI:1 associated with PDU session 1, and save PTI:1 as the PTI used to establish PDU SESSION ID:1.
[0043] In step S203, in response to receiving the second response information returned by the network equipment based on the re-sent first request information without timeout, and the second response information carrying the process transaction identifier matching the stored process transaction identifier, the synchronization between the target session in the network equipment and the user equipment is maintained, wherein the second response information indicates that the target session has been successfully activated in the network equipment.
[0044] In step S203, when the second response information returned by the network equipment based on the re-sent first request information is received without timeout, and the second response information carries the process transaction identifier matching the stored process transaction identifier, the synchronization between the target session in the network equipment and the user equipment is maintained.
[0045] Specifically, the second response information includes the session identifier PDU SESSION ID of the target session and the process transaction identifier PTI, and the second response information indicates that the target session has been successfully activated in the network equipment. When the user equipment receives the session identifier PDU SESSION ID of the target session and the process transaction identifier PTI sent by the network equipment within the timeout time after re-sending the first request message, and the process transaction identifier PTI sent by the network equipment matches the process transaction identifier stored in the user equipment, the synchronization between the target session in the network equipment and the user equipment is maintained.
[0046] For example, when the user equipment receives the PDU session 1 session identifier PDU SESSION ID:1 and the process transaction identifier PTI:1 sent by the network equipment within the timeout time after the first request message is re-sent, and the process transaction identifier PTI:1 sent by the network equipment matches the process transaction identifier PTI:1 stored in the user equipment, the synchronization of the target session between the network equipment and the user equipment can be maintained at this time.
[0047] In the session configuration method of the present application, first, the first request information is sent to the network equipment, then the first response information returned by the network equipment based on the first sent first request information is received in response to the timeout, and the first request information has been re-sent to the network equipment within the preset time period, the target session is activated based on the first response information, the process transaction identifier associated with the target session is marked, and the process transaction identifier is stored as the process transaction identifier used to establish the target session, finally, the second response information returned by the network equipment based on the re-sent first request information is received in response to the non-timeout, and the second response information carries the process transaction identifier matching the stored process transaction identifier, and the synchronization of the target session between the network equipment and the user equipment is maintained. Compared with the related art, the present application can ensure that the target session between the user equipment and the network equipment is synchronized, and can avoid the transmission of invalid data caused by the synchronization of the target session between the user equipment and the network equipment, thereby reducing the power consumption of the device, reducing unnecessary traffic billing of the user, and helping to improve the user experience.
[0048] In another embodiment of the present application, marking the process transaction identifier associated with the target session includes marking the use state of the process transaction identifier associated with the target session as an unused state; and maintaining the synchronization of the target session between the network equipment and the user equipment includes not sending mismatch information representing the mismatch of the process transaction identifier to the network equipment.
[0049] Specifically, the use state of the process transaction identifier associated with the target session can be marked as an unused state. For example, when the user equipment receives the response information returned by the network equipment to accept the establishment of the PDU session 1 after the timeout time set by the transaction timer is exceeded, and the user equipment has re-sent the PDU session 1 request information within the timeout time, the user equipment can mark PTI:1 in the response information returned by the network equipment to accept the establishment of the PDU session 1 as an unused state.
[0050] Specifically, when maintaining the synchronization of the target session between the network equipment and the user equipment, the user equipment does not send mismatch information representing the mismatch of the process transaction identifier PTI to the network equipment, that is, the user equipment does not perform the PTI mismatch reporting operation.
[0051] In the embodiment, the process transaction identifier used in the target session establishment process is marked by marking the use state of the process transaction identifier associated with the target session as the unused state, and not sending the mismatch information representing the process transaction identifier mismatch to the network device when keeping the target session synchronized between the network device and the user device, so that the process transaction identifier used in the target session establishment process can be marked, and when the response information carrying the process transaction identifier is received again and it is detected that the process transaction identifier belongs to an existing target session, the existing target session can be configured using the process transaction identifier, so that the synchronization of the target session in the user device and the network device can be kept.
[0052] In another embodiment of the application, the session configuration method further comprises: in response to receiving the second response information returned by the network device based on the retransmitted first request information without timeout, and the second response information carrying the process transaction identifier matching the stored process transaction identifier, reconfiguring the activated target session using the second response information.
[0053] In an optional embodiment, after the network device receives the retransmitted first request information of the user device, the network device can determine that the target session exists in the network device according to the session identifier of the target session in the retransmitted first request information, the network device will release the target session locally, then reprocess the received retransmitted first request information, and activate the target session in the network device.
[0054] Specifically, after the user device retransmits the first request information, when the second response information corresponding to the retransmitted first request information is received from the network device within the timeout time, and the second response information carries the process transaction identifier matching the stored process transaction identifier, the activated target session can be reconfigured using the second response information.
[0055] For example, after the user device retransmits the PDU session 1 establishment request information, wherein the request information includes the session identifier of the PDU session 1 as PDU SESSION ID:1 and the process transaction identifier as PTI:1, when the second response information corresponding to the retransmitted PDU session 1 establishment request information is received from the network device within the timeout time, and the process transaction identifier PTI:1 carried by the second response information matches the process transaction identifier PTI:1 stored in the user device, the activated target session can be reconfigured using the second response information.
[0056] In this embodiment, the target session is reconfigured by using the second response information, the target session is reconfigured by using the second response information to ensure that the target session state is synchronized between the user equipment and the network equipment.
[0057] In another embodiment of the application, reconfiguring the target session by using the second response information comprises: obtaining the target configuration parameter corresponding to the target session based on the second response information; and reconfiguring the target session by using the target configuration parameter in response to determining that the target session corresponding to the session identifier and the process transaction identifier in the second response information is in an activated state.
[0058] For example, when the PDU session 1 in an activated state is reconfigured by using the second response information, the target configuration parameter corresponding to the PDU session 1 can be obtained based on the second response information, so that the PDU session 1 can be reconfigured by using the target configuration parameter in response to determining that the PDU session 1 corresponding to the PDUSESSION ID:1 and the PTI:1 in the second response information is in an activated state.
[0059] In this embodiment, the target session is reconfigured by using the second response information, the target session is reconfigured by using the second response information to ensure that the target session state is synchronized between the user equipment and the network equipment.
[0060] Figure 3 is a schematic diagram of a session configuration method according to an embodiment of the application. As shown in Figure 3 The specific steps of the session configuration method are as follows:
[0061] Step S301, sending first request information to a network device;
[0062] The first request information includes a session identifier and a process transaction identifier of a target session, and is used to establish the target session between the network device and the user equipment.
[0063] Step S302, sending first response information to the user equipment and activating the target session in the network device;
[0064] The first response information includes the session identifier and the process transaction identifier of the target session, and is used to indicate that the target session has been successfully activated in the network device.
[0065] Step S303, in response to not receiving the first response information within the preset time period, re-sending the first request information to the network device;
[0066] Step S304, in response to receiving the first response information returned by the network device based on the first sent first request information within the timeout, and having re-sent the first request information to the network device within the preset time period, activating the target session based on the first response information, marking the use state of the process transaction identifier as unused state, and storing the process transaction identifier as the process transaction identifier used to establish the target session;
[0067] Step S305, locally releasing the target session, and processing the second request information;
[0068] Step S306, sending the second response information to the user equipment, and reactivating the target session in the network device;
[0069] The second response information includes the session identifier and the process transaction identifier of the target session, and is used to represent the reactivation of the target session in the network device.
[0070] Step S307, in response to not receiving the second response information returned by the network device based on the re-sent first request information within the timeout, and the second response information carrying the process transaction identifier matching the stored process transaction identifier, not sending mismatch information to the network device to represent the mismatch of the process transaction identifier, and obtaining the target configuration parameter corresponding to the target session based on the second response information;
[0071] Step S308, in response to determining that the target session corresponding to the session identifier and the process transaction identifier in the second response information is in the active state, reconfiguring the target session using the target configuration parameter.
[0072] In the workflow of the above session configuration method, by sending the first request information to the network device, and then in response to receiving the first response information returned by the network device based on the first sent first request information within the timeout, and having re-sent the first request information to the network device within the preset time period, activating the target session based on the first response information, marking the process transaction identifier associated with the target session, and storing the process transaction identifier as the process transaction identifier used to establish the target session, and finally in response to not receiving the second response information returned by the network device based on the re-sent first request information within the timeout, and the second response information carrying the process transaction identifier matching the stored process transaction identifier, keeping the synchronization of the target session between the network device and the user equipment, the target session between the user equipment and the network device can be kept synchronized, and the transmission of invalid data caused by the desynchronization of the target session between the user equipment and the network device can be avoided, thereby reducing the power consumption of the device, reducing unnecessary traffic billing of the user, and helping to improve the user experience.
[0073] The session configuration method will be described in detail below by way of example. Figure 4 is a schematic diagram of another session configuration method according to an embodiment of the present application. As shown in Figure 4 , the specific steps of the session configuration method are as follows:
[0074] First, the user equipment sends a PDU session 1 establishment request to the network equipment, wherein the request includes PDU SESSEN ID: 1, PTI: 1, at this time, the PDU session 1 in the user equipment and the network equipment is in an inactive state, when the timer expires, the user equipment has not received the acceptance request response information sent by the network equipment, the user equipment re-sends the PDU session 1 establishment request to the network equipment, wherein the request includes PDU SESSEN ID: 1, PTI: 1; secondly, the user equipment receives the first response information sent by the network equipment after the timeout, wherein the first response information includes PDU SESSEN ID: 1, PTI: 1, at this time, the PDU session 1 in the network equipment is in an active state; further, the user equipment marks PTI: 1 as unused, and saves PTI: 1 as the PTI used to establish the PDU session 1, and activates the PDU session 1 in the user equipment, at this time, the PDU session 1 in the user equipment is in an active state; subsequently, the network equipment confirms that there already exists a PDU session corresponding to PDU SESSEN ID: 1 in the PDU session 1 establishment request in the network equipment, then the network equipment releases the already existing PDU session 1 locally, re-processes the PDU session 1 establishment request, sends the second response information to the user equipment, and re-activates the PDU session 1 in the network equipment, at this time, the PDU session 1 in the network equipment is in an active state; finally, when the second response information is received without timeout, and the PTI: 1 carried by the second response information is consistent with the PTI: 1 stored in the user equipment, the user equipment does not send the PTI mismatch information to the network equipment, and acquires the target configuration parameters corresponding to the PDU session 1 based on the second response information, when it is determined that the PDU session 1 corresponding to PDU SESSEN ID: 1, PTI: 1 in the second response information is in an active state, the user equipment re-configures the PDU session 1 in the user equipment by using the target configuration parameters.
[0075] It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a group of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described herein can be executed in an order different from that shown herein.
[0076] This invention also provides a session configuration apparatus. It should be noted that the session configuration apparatus of this invention can be used to execute the session configuration method provided in this invention. The session configuration apparatus provided in this invention will be described below.
[0077] Figure 5 This is a structural block diagram of a session configuration device according to one embodiment of the present invention, such as... Figure 5 As shown, the device includes a sending module 501, used to send a first request message to a network device, wherein the first request message is used to establish a target session between the network device and the user device; a first processing module 502, used to respond to receiving a first response message from the network device based on the first request message sent initially after a timeout, and having resent the first request message to the network device within a preset time period, activate the target session based on the first response message, mark the process transaction identifier associated with the target session, and store the process transaction identifier as the process transaction identifier used to establish the target session, wherein the first response message is used to indicate that the target session has been successfully activated in the network device; and a second processing module 503, used to respond to receiving a second response message from the network device based on the resent first request message without a timeout, wherein the second response message carries a process transaction identifier that matches the stored process transaction identifier, and maintain the synchronization of the target session between the network device and the user device, wherein the second response message is used to indicate that the target session has been successfully activated in the network device.
[0078] In the session configuration apparatus of the present invention, a first request message is sent to a network device, and then, in response to a timeout, a first response message is received from the network device based on the initially sent first request message. The first request message has been resent to the network device within a preset time period. A target session is activated based on the first response message, a process transaction identifier associated with the target session is marked, and the process transaction identifier is stored as the process transaction identifier used to establish the target session. Finally, in response to a timeout, a second response message is received from the network device based on the resent first request message, and the second response message carries a process transaction identifier that matches the stored process transaction identifier, thus maintaining synchronization of the target session between the network device and the user device. Compared to related technologies, the present invention can ensure that the target session between the user device and the network device remains synchronized, avoiding the transmission of invalid data due to asynchrony between the target sessions of the user device and the network device. This reduces device power consumption, reduces unnecessary traffic billing for users, and helps improve the user experience.
[0079] In an embodiment of the present application, the first processing module 502 is further configured to mark the use state of the process transaction identifier associated with the target session as an unused state; and the second processing module 503 is further configured to not send mismatch information representing a mismatch of the process transaction identifier to the network device. In this embodiment, the process transaction identifier used in the target session establishment process can be marked, and when the first response information carrying the process transaction identifier is received again and it is detected that the process transaction identifier belongs to an existing target session, the process transaction identifier is used to configure the existing target session, so as to ensure that the target session states in the user equipment and the network device are kept synchronized.
[0080] In an embodiment of the present application, the session configuration apparatus further comprises a configuration module 504 configured to, in response to receiving the second response information returned by the network device based on the retransmission of the first request information and the second response information carrying the process transaction identifier matching the stored process transaction identifier, reconfigure the activated target session by using the second response information. In this embodiment, the target session can be reconfigured by using the second response information, so as to ensure that the target session states between the user equipment and the network device are synchronized.
[0081] In an embodiment of the present application, the configuration module 504 is further configured to acquire the target configuration parameter corresponding to the target session based on the second response information; and in response to determining that the target session corresponding to the session identifier and the process transaction identifier in the second response information is in an activated state, reconfigure the target session by using the target configuration parameter. In this embodiment, the target session states between the user equipment and the network device can be synchronized.
[0082] The embodiment of the present application further provides a non-volatile storage medium, and the non-volatile storage medium stores a computer program. The computer program is configured to execute the session configuration method in any one of the above when running.
[0083] Optionally, in the present embodiment, the non-volatile storage medium can be configured to execute the following steps by using the computer program:
[0084] In step S201, first request information is sent to the network device, wherein the first request information is used to establish a target session between the network device and the user equipment.
[0085] Step S202, in response to timeout receiving the first response information returned by the network device based on the first request information sent for the first time, and having re-sent the first request information to the network device within a preset time period, activating the target session based on the first response information, marking the process transaction identifier associated with the target session, and storing the process transaction identifier as the process transaction identifier used to establish the target session, wherein the first response information is used to represent that the target session has been successfully activated in the network device.
[0086] Step S203, in response to not timing out receiving the second response information returned by the network device based on the re-sent first request information, and the second response information carrying a process transaction identifier matching the stored process transaction identifier, maintaining synchronization of the target session between the network device and the user device, wherein the second response information is used to represent that the target session has been successfully activated in the network device.
[0087] Optionally, in the embodiment, the non-volatile storage medium can include, but is not limited to, a U disk, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and various computer program storage media.
[0088] The embodiment of the application further provides a processor, which is used to run a program, wherein the program is arranged to execute the session configuration method in any one of the above when running.
[0089] Optionally, in the embodiment, the processor can be arranged to execute the following steps through the computer program:
[0090] Step S201, sending first request information to a network device, wherein the first request information is used to establish a target session between the network device and a user device;
[0091] Step S202, in response to timeout receiving the first response information returned by the network device based on the first request information sent for the first time, and having re-sent the first request information to the network device within a preset time period, activating the target session based on the first response information, marking the process transaction identifier associated with the target session, and storing the process transaction identifier as the process transaction identifier used to establish the target session, wherein the first response information is used to represent that the target session has been successfully activated in the network device.
[0092] In step S203, in response to receiving, without timeout, second response information returned by the network device based on the retransmitted first request information, and the second response information carrying a process transaction identifier matching the stored process transaction identifier, the target session is kept synchronized between the network device and the user device, where the second response information is used to represent that the target session has been successfully activated in the network device.
[0093] The embodiment of the present application further provides a terminal device, comprising a memory and a processor, the memory storing a computer program, and the processor being configured to execute the computer program to perform the session configuration method in any of the above.
[0094] The terminal device comprises a memory and a processor, and the processor is used to execute any of the above methods. Compared with the related art, the present application can ensure that the target session between the user device and the network device is kept synchronized, avoid the transmission of invalid data caused by the unsynchronized target session between the user device and the network device, and thus can reduce the power consumption of the device, reduce unnecessary traffic billing of the user, and help to improve the experience of the user.
[0095] The above embodiment numbers of the present application are only for description, and do not represent the advantages or disadvantages of the embodiments.
[0096] In the above embodiments of the present application, the description of each embodiment has its own focus, and the parts not described in detail in a certain embodiment can be referred to the related description of other embodiments.
[0097] In the several embodiments provided by the present application, it should be understood that the disclosed technology can be implemented in other ways. Of course, the unit embodiment described above is only illustrative, and for example, the division of units can be a logical function division, and there can be another division manner in actual implementation, for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the units shown or discussed can be indirect coupling or communication connection through some interface, unit or module, and can be electrical or other forms.
[0098] The units described as separate components can or can not be physically separate, and the components shown as units can or can not be physical units, that is, they can be located in one place, or can be distributed on multiple units. According to actual needs, some or all of the units can be selected to achieve the purpose of the embodiment scheme.
[0099] In addition, each function unit in each embodiment of the present application can be integrated in one processing unit, or each unit can exist physically independently, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of a software function unit.
[0100] When the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the present application essentially or the part that contributes to the prior art or the whole or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, a server or a network device, etc.) to execute all or part of the steps of the methods described in each embodiment of the present application. The foregoing storage medium includes: a U disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a mobile hard disk, a magnetic disk or an optical disk, and various media that can store program codes.
[0101] From the above description, it can be seen that the above-described embodiments of the present application achieve the following technical effects:
[0102] 1) In the session configuration method described above, by sending first request information to the network device, and then receiving first response information returned by the network device based on the first request information sent for the first time in response to a timeout, and having re-sent the first request information to the network device within a preset time period, activating the target session based on the first response information, marking the process transaction identifier associated with the target session, and storing the process transaction identifier as the process transaction identifier used to establish the target session, finally, in response to receiving second response information returned by the network device based on the re-sent first request information without a timeout, and the second response information carrying a process transaction identifier matching the stored process transaction identifier, maintaining the synchronization of the target session between the network device and the user device. Compared with the related art, the present application can ensure that the target session between the user device and the network device is synchronized, avoid the transmission of invalid data due to the desynchronization of the target session between the user device and the network device, thereby reducing the power consumption of the device, reducing unnecessary traffic billing for the user, and helping to improve the user experience.
[0103] 2)、The session configuration device of the application, through the sending module, sends the first request information to the network device, and then through the first processing module, in response to the timeout, receives the first response information returned by the network device based on the first sent first request information, and has retransmitted the first request information to the network device within a preset time period, activates the target session based on the first response information, marks the process transaction identifier associated with the target session, and stores the process transaction identifier as the process transaction identifier used to establish the target session, and finally through the second processing module, in response to the non-timeout reception of the second response information returned by the network device based on the retransmitted first request information, and the second response information carries the process transaction identifier matched with the stored process transaction identifier, keeps the target session synchronized between the network device and the user equipment. Compared with the related art, the application can ensure that the target session between the user equipment and the network device is kept synchronized, avoid the transmission of invalid data caused by the unsynchronized target session between the user equipment and the network device, thereby reducing the power consumption of the device, reducing unnecessary traffic billing of the user, and helping to improve the user experience.
[0104] 3)、The terminal device of the application includes a memory and a processor, and the processor is used to execute any of the above methods. By sending the first request information to the network device, and then in response to the timeout, receiving the first response information returned by the network device based on the first sent first request information, and having retransmitted the first request information to the network device within a preset time period, activating the target session based on the first response information, marking the process transaction identifier associated with the target session, and storing the process transaction identifier as the process transaction identifier used to establish the target session, finally in response to the non-timeout reception of the second response information returned by the network device based on the retransmitted first request information, and the second response information carries the process transaction identifier matched with the stored process transaction identifier, keeping the target session synchronized between the network device and the user equipment. Compared with the related art, the application can ensure that the target session between the user equipment and the network device is kept synchronized, avoid the transmission of invalid data caused by the unsynchronized target session between the user equipment and the network device, thereby reducing the power consumption of the device, reducing unnecessary traffic billing of the user, and helping to improve the user experience.
[0105] The above is only the preferred embodiment of the application, and it should be noted that for those skilled in the art, without departing from the principles of the application, a number of improvements and refinements can be made, which should also be considered as the protection scope of the application.
Claims
1. A session configuration method, characterized by, The method comprises: sending first request information to a network device, wherein the first request information is used to establish a target session between the network device and a user equipment; in response to receiving, without timeout, first response information returned by the network device based on the first request information sent for the first time and having re-sent the first request information to the network device within a preset time period, activating the target session based on the first response information, marking a process transaction identifier associated with the target session, and storing the process transaction identifier as a process transaction identifier used to establish the target session, wherein the first response information is used to represent that the target session has been successfully activated in the network device; in response to receiving, without timeout, second response information returned by the network device based on the re-sent first request information and the second response information carrying a process transaction identifier matching the stored process transaction identifier, maintaining synchronization of the target session between the network device and the user equipment, wherein the second response information is used to represent that the target session has been successfully activated in the network device; wherein marking the process transaction identifier associated with the target session comprises marking a use state of the process transaction identifier associated with the target session as an unused state; and maintaining synchronization of the target session between the network device and the user equipment comprises not sending mismatch information representing a mismatch of the process transaction identifier to the network device.
2. The session configuration method of claim 1, wherein, The method further comprises: in response to receiving, without timeout, the second response information returned by the network device based on the re-sent first request information and the second response information carrying a process transaction identifier matching the stored process transaction identifier, reconfiguring the target session that has been activated using the second response information.
3. The session configuration method of claim 2, wherein, The second response information further comprises a session identifier of the target session.
4. The session configuration method of claim 3, wherein, Reconfiguring the target session that has been activated using the second response information comprises: obtaining a target configuration parameter corresponding to the target session based on the second response information; in response to determining that the target session corresponding to the session identifier and the process transaction identifier in the second response information is in an activated state, reconfiguring the target session using the target configuration parameter.
5. The session configuration method of claim 1, wherein, The first request information and / or the first response information comprises a session identifier of the target session and the process transaction identifier; and / or, the target session comprises a packet data unit (PDU) session.
6. A session configuration apparatus characterized by comprising: The method comprises: a sending module configured to send first request information to a network device, wherein the first request information is used to establish a target session between the network device and a user equipment; The first processing module is configured to activate the target session based on first response information returned by the network device based on the first request information sent for the first time, mark a process transaction identifier associated with the target session, and store the process transaction identifier as a process transaction identifier used for establishing the target session, in response to that the first response information is received within a preset time period and the first request information is re-sent to the network device within the preset time period, wherein the first response information is used to represent that the target session has been successfully activated in the network device. The second processing module is configured to maintain synchronization of the target session between the network device and the user device, in response to that second response information returned by the network device based on the re-sent first request information is received without timeout and the second response information carries a process transaction identifier matching the stored process transaction identifier, wherein the second response information is used to represent that the target session has been successfully activated in the network device. The first processing module is further configured to mark a use state of the process transaction identifier associated with the target session as an unused state. The second processing module is further configured to not send mismatch information representing a mismatch of the process transaction identifier to the network device.
7. A non-volatile storage medium, characterized by The storage medium stores a computer program, wherein the computer program is configured to execute the session configuration method in any one of claims 1 to 5 when running.
8. A processor, comprising: The processor is configured to run a program, wherein the program is configured to execute the session configuration method in any one of claims 1 to 5 when running. 9.A terminal device, comprising a memory and a processor, characterized in that, The storage medium stores a computer program, and the processor is configured to run the computer program to execute the session configuration method in any one of claims 1 to 5.
Citation Information
Patent Citations
Enhanced procedure transaction id (PTI) error handling
CN112020898A
Data communication method and related device
CN112040538A