Session management method and device, related equipment and storage medium
By using the terminal to determine the identifier based on information and data packets and send a request to the network device, the problem of the terminal being unable to obtain the data connection identifier is solved, the success rate of the session connection is improved, and the session management process is simplified.
Patent Information
- Application Number
- CN202311754950.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-19
- Publication Date
- 2024-10-22
AI Technical Summary
The terminal cannot obtain the data connection identifier required for certain services, resulting in the network side being unable to establish a corresponding session connection for the terminal. Especially in new or old business scenarios, the existing technical configuration methods have pre-configuration limitations and high technical difficulty. question.
The terminal determines the first identifier based on the first information and the second information carried in the data packet, and sends a request to the network device to establish a session connection. After receiving the request, the network device generates or updates the first identifier based on the corresponding relationship between the first information and the second information. First message to support session connection.
It improves the success rate of obtaining data connection identifiers, ensures that both new and old services can effectively establish session connections, and simplifies the session management process between terminals and network devices.
Smart Images

Figure CN118829006A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a session management method, apparatus, related equipment and storage medium. Background Art
[0002] In the related art, the network side can establish a differentiated session connection for the terminal service based on the data connection identifier carried in the session request initiated by the terminal; the data connection identifier is usually pre-configured locally in the terminal, or configured by the network side through a non-access layer (NAS, Non-Access-Stratum) message. The terminal may not be able to obtain the data connection identifier required for certain services, resulting in the network side being unable to establish a corresponding session connection for the terminal. Summary of the invention
[0003] To solve the related technical problems, the embodiments of the present application provide a session management method, apparatus, related equipment and storage medium.
[0004] The technical solution of the embodiment of the present application is implemented as follows:
[0005] The present application provides a session management method, which is applied to a terminal. The method includes:
[0006] Determine a first identifier according to the first information and the second information carried by the data packet; wherein the first information indicates a corresponding relationship between the second information and the second identifier, and the second identifier and the first identifier are used to establish a session connection;
[0007] Send a first request to the network device; wherein the first request is used to request to establish a session connection and carries the first identifier.
[0008] In the above scheme, the method further includes:
[0009] Receive the first information sent by the network device.
[0010] In the above solution, the first information is carried in broadcast signaling and / or a broadcast channel.
[0011] In the above solution, when the first information contains a second identifier corresponding to the second information carried by the data packet, the first identifier is the second identifier corresponding to the second information carried by the data packet; or,
[0012] In a case where the second identifier corresponding to the second information carried by the data packet does not exist in the first information, the first identifier is an identifier preconfigured in the terminal for establishing a session connection.
[0013] In the above solution, the second information includes a service flow address and / or a fully qualified domain name (FQDN, Fully Qualified Domain Name).
[0014] In the above solution, the service flow address includes at least one of the following:
[0015] Internet Protocol (IP) address;
[0016] IP triplet;
[0017] IP quintuple.
[0018] In the above solution, the first identifier and the second identifier include at least one of the following:
[0019] Protocol Data Unit (PDU) session identifier;
[0020] IP address;
[0021] Data Network Name (DNN);
[0022] Access Network Name (APN);
[0023] Single Network Slice Selection Assistance Information (S-NSSAI).
[0024] The present application also provides a session management method, which is applied to a network device, and the method includes:
[0025] A first request sent by a receiving terminal is received; wherein,
[0026] The first request is used to request to establish a session connection and carries a first identifier; the first identifier is determined based on the first information and the second information carried by the data packet; the first information indicates the correspondence between the second information and the second identifier; the second identifier and the first identifier are used to establish a session connection.
[0027] In the above scheme, the method further includes:
[0028] The first information is sent to the terminal.
[0029] In the above solution, the first information is carried in broadcast signaling and / or a broadcast channel.
[0030] In the above scheme, the method further includes:
[0031] receiving third information through the first interface;
[0032] The first information is generated or updated according to the third information.
[0033] In the above solution, the second information includes the service flow address and / or FQDN.
[0034] The present application also provides a session management device, including:
[0035] A determination unit, configured to determine a first identifier according to the first information and second information carried by the data packet; wherein the first information indicates a corresponding relationship between the second information and the second identifier, and the second identifier and the first identifier are used to establish a session connection;
[0036] The first sending unit is used to send a first request to the network device; wherein the first request is used to request to establish a session connection and carries the first identifier.
[0037] The present application also provides a session management device, including:
[0038] The first receiving unit is used to receive a first request sent by a terminal; wherein:
[0039] The first request is used to request to establish a session connection and carries a first identifier; the first identifier is determined based on the first information and the second information carried by the data packet; the first information indicates the correspondence between the second information and the second identifier; the second identifier and the first identifier are used to establish a session connection.
[0040] The embodiment of the present application also provides a terminal, comprising: a first processor and a first communication interface; wherein,
[0041] The first processor is used to determine a first identifier according to the first information and second information carried by the data packet; wherein the first information indicates a corresponding relationship between the second information and the second identifier, and the second identifier and the first identifier are used to establish a session connection;
[0042] The first communication interface is used to send a first request to the network device; wherein the first request is used to request to establish a session connection and carries the first identifier.
[0043] The embodiment of the present application further provides a network device, comprising: a second processor and a second communication interface; wherein,
[0044] The second communication interface is used to receive a first request sent by a terminal; wherein,
[0045] The first request is used to request to establish a session connection and carries a first identifier; the first identifier is determined based on the first information and the second information carried by the data packet; the first information indicates the correspondence between the second information and the second identifier; the second identifier and the first identifier are used to establish a session connection.
[0046] The embodiment of the present application further provides a communication device, the communication device including a terminal or a network device, the communication device including a processor and a memory for storing a computer program that can be run on the processor,
[0047] Wherein, when the processor is used to run the computer program, it executes the steps of any of the above-mentioned methods on the terminal side, or executes the steps of any of the above-mentioned methods on the network device side.
[0048] An embodiment of the present application also provides a storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned methods on the terminal side are implemented, or the steps of any of the above-mentioned methods on the network device side are implemented.
[0049] In the session management method, apparatus, related equipment and storage medium provided in the embodiment of the present application, the terminal determines the first identifier according to the first information and the second information carried by the data packet, and sends a first request to the network device; the network device receives the first request sent by the terminal; wherein the first information indicates the correspondence between the second information and the second identifier, and the second identifier and the first identifier are used to establish a session connection; the first request is used to request to establish a session connection, carrying the first identifier. It can be seen that in the embodiment of the present application, whether for new or old services, the terminal can determine the first identifier according to the first information and the second information carried by the data packet of any service, and initiate the first request according to the first identifier; relative to the existing scheme, the above scheme improves the success rate of obtaining the first identifier, thereby improving the success rate of establishing session connections for new and old services. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 A flow chart of a session management method according to an embodiment of the present application;
[0051] Figure 2 A flow chart of a session management method according to an embodiment of the present application;
[0052] Figure 3 A flow chart of a session management method according to an embodiment of the present application;
[0053] Figure 4 This is a schematic diagram of the structure of a session management device according to an embodiment of the present application;
[0054] Figure 5This is a schematic diagram of the structure of a session management device according to an embodiment of the present application;
[0055] Figure 6 This is a schematic diagram of the terminal structure of an embodiment of the present application;
[0056] Figure 7 This is a schematic diagram of the network device structure of an embodiment of the present application. DETAILED DESCRIPTION
[0057] The current differentiation of session connections for terminal services is mainly distinguished by the data connection identifier carried by the terminal during the session request process; the network side establishes a session connection and bearer with corresponding guarantee capabilities through the data connection identifier reported by the terminal, thereby ensuring the business data service; the data connection identifier can be DNN, APN, S-NSSAI, etc.
[0058] The data connection identifier is used as an information indication that the terminal requests a session connection from an external network. The source and configuration method of the data connection identifier include:
[0059] 1) Static pre-configuration is performed locally in the terminal in advance; specifically, the data connection identifier can be statically pre-configured locally in the terminal (such as in the manufacturing stage) in advance according to the service policy and network configuration plan, or according to the application type; for example, the data connection identifier is configured as IP Multimedia Subsystem (IMS) DNN for the voice service of Long Term Evolution Voice Bearer (VoLTE) or New Radio Voice Bearer (VoNR), and Internet DNN is configured for the Internet data service; during the service establishment process, the terminal selects the corresponding data connection identifier according to the application type, and carries the data connection identifier in the signaling to initiate a session connection request, so that the corresponding session connection can be established with the network side;
[0060] 2) Configure the data connection identifier through dynamic information; for example, the core network sends the user route selection policy (URSP) rules to the terminal supporting the network slicing function through the NAS message, and the terminal supporting the network slicing function matches the upper-layer application according to the URSP rules to find the data connection identifier contained in the route selection description (RSD), thereby completing the network establishment request process.
[0061] Since the above configuration method 1) requires the correspondence between the service flow and the data connection identifier to be formulated in advance according to the service policy, and the terminal is prefabricated in the terminal operating system or the terminal application (APP) before the terminal leaves the factory, but for the existing terminals in the market, this method cannot pre-configure the data connection identifier required for the new service, and the terminal cannot obtain the data connection identifier required for the new service. Since the above configuration method 2) requires the terminal to support service flow identification and mapping binding of the URSP in the NAS message through the operating system or middleware; and network slicing requires upgrading and transformation of mobile networks, terminals and operating systems, the industrial ecology has a wide impact and high technical difficulty. If any link in the network, terminal and operating system does not support network slicing and URSP, then the data connection identifier configured in this way will not take effect.
[0062] In summary, the configuration method of the data connection identifier in the related art may cause the terminal to be unable to obtain the data connection identifier required for certain services, thereby causing the network side to be unable to establish a corresponding session connection for the terminal.
[0063] Based on this, in various embodiments of the present application, the terminal determines the first identifier based on the first information and the second information carried by the data packet, and sends a first request to the network device; the network device receives the first request sent by the terminal; wherein the first information indicates the correspondence between the second information and the second identifier, and the second identifier and the first identifier are used to establish a session connection; the first request is used to request the establishment of a session connection, and carries the first identifier. It can be seen that in the embodiments of the present application, whether for new or old services, the terminal can determine the first identifier based on the first information and the second information carried by the data packet of any service, and initiate a first request based on the first identifier; relative to the existing scheme, the above scheme improves the success rate of obtaining the first identifier, thereby improving the success rate of establishing a session connection for new and old services.
[0064] The present application is further described in detail below in conjunction with the accompanying drawings and embodiments.
[0065] The present application embodiment provides a session management method, which is applied to a terminal, such as Figure 1 As shown, the method includes:
[0066] Step 101: Determine a first identifier according to first information and second information carried in a data packet.
[0067] The first information indicates a corresponding relationship between the second information and the second identifier, and the second identifier and the first identifier are used to establish a session connection.
[0068] Here, when the first information and the data packet are acquired, the first identifier can be determined based on the correspondence between the second information indicated by the first information and the second identifier, and the second information carried by the data packet.
[0069] The first identifier may be a second identifier determined in the first information according to the second information carried in the data packet, or may be a default or pre-configured identifier for establishing a session connection.
[0070] It should be noted that the data packet comes from the application (APP) in the terminal, and the data packet may contain data transmitted by the upper-layer application in the terminal; the data packet may be understood as an IP data packet, an IP datagram, an IP packet, a service data packet or an application data packet; the first identifier and the second identifier may be understood as a data connection identifier or a session connection identifier, which is used to configure session parameters; the first identifier is the data connection identifier ultimately used when requesting to establish a session connection. The first identifier determined according to the first information and the second information carried by different data packets may be the same or different; the first identifier determined according to the first information and the second information carried by the same type of data packets at different times may be the same.
[0071] It should be noted that the first information can be a parameter group including a service flow address and / or FQDN and a corresponding second identifier, or it can be a parameter group set consisting of several parameter groups including a service flow address and / or FQDN and a corresponding second identifier.
[0072] Before determining the first identifier, first information needs to be obtained. In one embodiment, the method further includes:
[0073] Receive the first information sent by the network device.
[0074] Here, the first information is sent by the network device to the terminal; the terminal can receive the first information sent by the network device after completing the network attachment registration process. The first information sent by the network device to different terminals can be the same or different.
[0075] In this embodiment, the network device can dynamically and flexibly configure a differentiated second identifier for the terminal, and can also configure the second identifier for a new service so that the terminal can determine the first identifier, so that the terminal is not limited to the identifier pre-configured locally for establishing a session connection.
[0076] In order to make the method of obtaining the first information more convenient, in one embodiment, the first information is carried in broadcast signaling and / or a broadcast channel.
[0077] Here, the first information is sent by the network device in a broadcast manner. The terminal can receive broadcast signaling broadcast by the network device, or can receive a broadcast channel sent by the network device, for example, a physical broadcast channel (PBCH, Physical Broadcast Channel), or can receive the first information broadcast by the network device from the broadcast channel, or can receive broadcast signaling carrying the first information from the broadcast channel.
[0078] It should be noted that the first information can be used to update the correspondence between the second information and the second identifier, for example, to add a second identifier corresponding to any second information, or to delete the second identifier corresponding to useless or expired second information.
[0079] In one embodiment, when the first information contains a second identifier corresponding to the second information carried by the data packet, the first identifier is the second identifier corresponding to the second information carried by the data packet; or,
[0080] In a case where the second identifier corresponding to the second information carried by the data packet does not exist in the first information, the first identifier is an identifier preconfigured in the terminal for establishing a session connection.
[0081] Here, when the terminal obtains the first information and the data packet, the terminal can search the first information for second information that matches the second information carried by the data packet; when the second information that matches the second information carried by the data packet is found, it is determined whether there is a second identifier corresponding to the second information that matches the second information carried by the data packet in the correspondence between the second information indicated by the first information and the second identifier; when there is a second identifier corresponding to the second information that matches the second information carried by the data packet in the first information, the second identifier corresponding to the second information that matches the second information carried by the data packet is determined as the first identifier.
[0082] In the case where the second identifier corresponding to the second information carried by the data packet does not exist in the first information, the first identifier corresponding to the service to which the data packet belongs can be determined from the identifiers pre-configured locally in the terminal for establishing a session connection; or a universal identifier for establishing a session connection can be determined as the first identifier. Wherein, the second identifier corresponding to the second information carried by the data packet does not exist in the first information when at least one of the following conditions is met:
[0083] No second information matching the second information carried by the data packet is found in the first information;
[0084] The first information contains second information that matches the second information carried in the data packet, and in the correspondence between the second information indicated by the first information and the second identifier, the second identifier corresponding to the second information that matches the second information carried in the data packet is not found.
[0085] In order to improve the flexibility and success rate of obtaining the first identifier, in one embodiment, the second information includes a service flow address and / or an FQDN.
[0086] Here, the terminal bottom layer protocol supports the identification of the service flow address and the FQDN, and the FQDN can be resolved into an IP address by the Domain Name System (DNS).
[0087] If the second information includes a service flow address, the first information may be a parameter group of the service flow address and a corresponding second identifier, or the first information may be a parameter group set consisting of several parameter groups including the service flow address and the corresponding second identifier. When determining the first identifier, the service flow address included in the second information carried by the data packet may be compared with the service flow addresses of each parameter group in the first information; when a service flow address matching the service flow address carried by the data packet can be found in the first information, it is determined whether there is a second identifier corresponding to the service flow address matching the service flow address carried by the data packet in the corresponding relationship between the service flow address indicated by the first information and the second identifier; when a second identifier corresponding to the service flow address matching the service flow address carried by the data packet exists in the first information, the second identifier corresponding to the service flow address matching the service flow address carried by the data packet is determined as the first identifier.
[0088] For example, Table 1 shows an example of the correspondence between the second information and the second identifier, and the second information may be a service flow address.
[0089] Table 1
[0090] Second information Second mark illustrate 192.168.1.1 XR 192.168.1.2 192.168.1.2 Using IP address as DNN 192.168.1.31 (null) Using the pre-configured DNN in the terminal 192.*.*.* DNN Use DNN in a certain address range *.*.*.* DNN Use DNN in all address ranges
[0091] It should be noted that the correspondence between the first three groups of second information and the second identifier in Table 1 can be located in different first information respectively, or any two groups can exist in the same first information at the same time, or all three groups can exist in the same first information at the same time; the correspondence between the last two groups of second information and the second identifier in Table 1 are located in different first information respectively, that is, a DNN can be configured for each address segment through the first information, or a common DNN can be configured for all address segments through the first information.
[0092] In the case where the second information carried by the data packet is 192.168.1.1, since the second identifier XR corresponding to 192.168.1.1 exists in the correspondence between the second information and the second identifier, XR is determined as the first identifier; in the case where the second information carried by the data packet is 192.168.1.2, since the second identifier 192.168.1.2 corresponding to 192.168.1.2 exists in the correspondence between the second information and the second identifier, 192.168.1.2 is determined as the first identifier; in the case where the second information carried by the data packet is 192.168.1.31, since the second identifier 192.168.1.31 does not exist in the correspondence between the second information and the second identifier, the terminal preconfigured DNN is determined as the first identifier; when the second information carried by the data packet is 192.168.255.255, since 192.168.255.255 is within the range of 192.*.*.*, and the correspondence between the second information and the second identifier exists a second identifier DNN corresponding to 192.*.*.*, therefore, the DNN corresponding to 192.*.*.* is determined as the first identifier; when the second information carried by the data packet is 192.255.255.255, since 192.255.255.255 is within the range of *.*.*.*, and the correspondence between the second information and the second identifier exists a second identifier DNN corresponding to *.*.*.*, therefore, the DNN corresponding to *.*.*.* is determined as the first identifier.
[0093] In order to improve the flexibility and success rate of obtaining the first identifier, in one embodiment, the service flow address includes at least one of the following:
[0094] IP address;
[0095] IP triplet;
[0096] IP quintuple.
[0097] Here, the service flow address can be the IP address carried in the data packet header, the IP address can include the destination IP address, and the service flow address can also be an IP triplet or an IP quintuple. The IP triplet includes the IP address, the transport protocol (the type of transport protocol used), and the port; the IP quintuple includes the destination port, the source IP address, the source port number, the destination IP address, and the transport protocol).
[0098] In order to configure session parameters corresponding to the session connection between the terminal and the network device, in one embodiment, the first identifier and the second identifier include at least one of the following:
[0099] PDU session identifier;
[0100] IP address;
[0101] DNN;
[0102] APN;
[0103] S-NSSAI.
[0104] Here, when the first identifier is determined, a first request carrying the first identifier is sent to the network device so that the network device can configure session parameters according to the first identifier and establish a session connection corresponding to the first identifier, thereby transmitting data interacting between the terminal and the network device through the established session connection.
[0105] Step 102: Send a first request to a network device.
[0106] The first request is used to request to establish a session connection and carries the first identifier.
[0107] Here, before sending the first request to the network device, the terminal can determine whether there is a session connection corresponding to the first identifier; if there is no session connection corresponding to the first identifier, the first request is sent. Among them, the terminal can search for the session connection corresponding to the first identifier in the existing session connection; if the session connection corresponding to the first identifier is not found, the first request is sent; if the session connection corresponding to the first identifier is found, the first request is not sent, that is, there is no need to request to establish the session connection corresponding to the first identifier, and data is directly transmitted on the existing session connection corresponding to the first identifier; the first request can be understood as a session establishment request.
[0108] Correspondingly, the embodiment of the present application also provides a session management method, which is applied to a network device, and the network device may be a base station, such as Figure 2 As shown, the method includes:
[0109] Step 201: Receive a first request sent by a terminal.
[0110] Among them, the first request is used to request to establish a session connection and carries a first identifier; the first identifier is determined based on the first information and the second information carried by the data packet; the first information indicates the correspondence between the second information and the second identifier; the second identifier and the first identifier are used to establish a session connection.
[0111] Here, when the network device receives the first request sent by the terminal, it can determine whether there is a session connection corresponding to the first identifier; when there is no session connection corresponding to the first identifier, the network device responds to the first request and establishes a session connection corresponding to the first identifier according to the first request. Among them, the network device can search for a session connection corresponding to the first identifier in the existing session connections; when the session connection corresponding to the first identifier is not found, the network device responds to the first request, configures the corresponding session parameters according to the first request, and establishes a session connection corresponding to the first identifier; when the session connection corresponding to the first identifier is found, the network device does not respond to the first request or refuses to respond to the first request, that is, it is not necessary to establish a session connection corresponding to the first identifier.
[0112] In one embodiment, the second information includes a service flow address and / or a FQDN.
[0113] The service flow address includes at least one of the following:
[0114] IP address;
[0115] IP triplet;
[0116] IP quintuple.
[0117] The first identifier and the second identifier include at least one of the following:
[0118] PDU session identifier;
[0119] IP address;
[0120] DNN;
[0121] APN;
[0122] S-NSSAI.
[0123] In order to enable the terminal to obtain the first information to determine the first identifier, in one embodiment, the method further includes:
[0124] The first information is sent to the terminal.
[0125] In order to make the method of obtaining the first information more convenient, in one embodiment, the first information is carried in broadcast signaling and / or a broadcast channel.
[0126] Here, the network device sends the first information in a broadcasting manner. The network device may send a broadcast signaling and / or a broadcast channel (eg, PBCH) carrying the first information, and the network device may also broadcast the first information in a broadcast channel.
[0127] The network device may send the first information after the terminal completes the attachment registration process. For example, the network device may broadcast the first information to all terminals accessing the network device through a broadcast channel. The network device may also broadcast the first information regardless of whether the terminal is successfully registered; for example, the network device directly broadcasts the first information in a broadcast channel.
[0128] In order to implement the setting and management of the first information, in one embodiment, the method further includes:
[0129] receiving third information through the first interface;
[0130] The first information is generated or updated according to the third information.
[0131] Here, the network device is provided with a first interface, and the first interface is used to set and manage the first information. The third information may be sent by an operation maintenance center (OMC, Operation Maintenance Center).
[0132] The network device can generate the initial first information based on the third information; and can also update the initial first information based on the third information. For example, the service flow address and / or FQDN and the corresponding second identifier can be added based on the third information; the invalid or expired second identifier in the first information can be deleted based on the third information; and one or more second information and / or the corresponding second identifier in the first information can be modified based on the third information. For example, in the case of a new service, the third information is the relevant information of the new service, and the relevant information of the new service can be the service flow address and / or FQDN related to the new service; the network device can add the service flow address and / or FQDN of the new service and the second identifier corresponding to the new service to the first information based on the third information.
[0133] Combine the following Figure 3 The session management method on the terminal side is further explained.
[0134] Step 301: Start the first service.
[0135] Here, the terminal starts an application in the terminal to start a first service related to the application, and generates a data packet of the first service, where the data packet carries the second information.
[0136] When the first service is a new service, a session connection needs to be established for the first service to transmit data related to the first service. The establishment of the session connection requires configuration of session parameters, that is, the first identifier needs to be obtained. Steps 302 to 307 are the process of obtaining the first identifier.
[0137] Step 302: Receive first information sent by a network device.
[0138] Here, the terminal can receive broadcast signaling or a broadcast channel (such as PBCH) broadcast by a network device and obtain the first information from the broadcast signaling or the broadcast channel, or receive the first information broadcast by the network device from the broadcast channel; the broadcast signaling can be received from the broadcast channel.
[0139] The first information indicates the corresponding relationship between the second information and the second identifier; the second information includes a service flow address and / or FQDN; the second identifier is used to establish a session connection. The service flow address includes at least one of the following: an IP address, an IP triplet, and an IP quintuple.
[0140] Step 303: Determine whether there is second information in the first information that matches the second information carried by the data packet.
[0141] Here, if the first information contains second information that matches the second information carried by the data packet, step 304 is executed; if the first information contains no second information that matches the second information carried by the data packet, the process returns to step 302.
[0142] Since it is possible that the data packet transmitted by the upper layer has been obtained, but the first information in the broadcast signaling and / or broadcast channel has not been updated, it is necessary to continue to receive the first information until the second information matching the second information carried in the data packet exists in the received first information. Of course, a preset duration or preset number of times can also be set to prevent the terminal from continuing to receive the first information indefinitely when it cannot find the second information matching the second information carried in the data packet from the received first information, thereby failing to transmit data; after the preset duration or after receiving the first information a preset number of times, if the second information matching the second information carried in the data packet still cannot be found in the first information, the first identifier is determined according to the terminal's locally preconfigured identifier for establishing a session connection or a general identifier for establishing a session connection.
[0143] Step 304: Determine a first identifier according to the first information and the second information carried by the data packet.
[0144] Here, when there is second information in the first information that matches the second information carried by the data packet, it is determined whether a second identifier corresponding to the second information matching the second information carried by the data packet can be found in the first information; when a second identifier corresponding to the second information matching the second information carried by the data packet is found in the first information, the second identifier corresponding to the second information matching the second information carried by the data packet is determined as the first identifier; when the second identifier corresponding to the second information carried by the data packet is not found in the first information, the first identifier corresponding to the service described in the data packet is determined from the identifiers pre-configured locally in the terminal for establishing a session connection, or a general identifier for establishing a session connection is determined as the first identifier.
[0145] Step 305: Determine whether there is a session connection corresponding to the first identifier.
[0146] Here, if there is no session connection corresponding to the first identifier, step 306 is executed; if there is a session connection corresponding to the first identifier, step 307 is executed.
[0147] Step 306: Send a first request to the network device according to the first identifier to establish a session connection.
[0148] For the specific implementation process of step 306, please refer to the relevant description above and will not be repeated here.
[0149] Step 307: Use the existing session connection.
[0150] Here, if a session connection corresponding to the first identifier already exists, the session connection can be directly used to transmit the relevant data of the first service without sending the first request or creating a new session connection corresponding to the first identifier.
[0151] For example, if the second information carried by the data packet of the first service is the same as the second information carried by the data packet of the same type or other services, or the IP address carried by the data packet of the first service belongs to the same address segment as the second information carried by the data packet of the same type or other services, then, before the terminal starts the first service, the network device has established a session connection corresponding to the first identifier. At this time, the terminal no longer needs to initiate a first request for the first service, but only needs to reuse the session connection corresponding to the first identifier.
[0152] Step 308: Perform data transmission on the session connection.
[0153] Here, the terminal may transmit the relevant data of the first service on the session connection established through the first request, or may transmit the relevant data of the first service on the session connection determined in step 307 .
[0154] In order to implement the method on the terminal side of the embodiment of the present application, the embodiment of the present application also provides a session management device, which is set on the terminal, such as Figure 4 As shown, the device comprises:
[0155] The determination unit 401 is used to determine a first identifier based on the first information and the second information carried by the data packet; wherein the first information indicates the correspondence between the second information and the second identifier, and the second identifier and the first identifier are used to establish a session connection.
[0156] The first sending unit 402 is used to send a first request to the network device; wherein the first request is used to request to establish a session connection and carries the first identifier.
[0157] In one embodiment, the device further comprises:
[0158] The second receiving unit is used to receive the first information sent by the network device.
[0159] In one embodiment, the first information is carried in broadcast signaling and / or a broadcast channel.
[0160] In one embodiment, when the first information contains a second identifier corresponding to the second information carried by the data packet, the first identifier is the second identifier corresponding to the second information carried by the data packet; or,
[0161] In a case where the second identifier corresponding to the second information carried by the data packet does not exist in the first information, the first identifier is an identifier preconfigured in the terminal for establishing a session connection.
[0162] In one embodiment, the second information includes a service flow address and / or a FQDN.
[0163] In one embodiment, the service flow address includes at least one of the following:
[0164] IP address;
[0165] IP triplet;
[0166] IP quintuple.
[0167] In one embodiment, the first identifier and the second identifier include at least one of the following:
[0168] PDU session identifier;
[0169] IP address;
[0170] DNN;
[0171] APN;
[0172] S-NSSAI.
[0173] In actual application, the determining unit 401 may be implemented by a processor in the session management device, and the first sending unit 402 and the second receiving unit may be implemented by the processor in the session management device in combination with a communication interface.
[0174] In order to implement the method on the network device side of the embodiment of the present application, the embodiment of the present application also provides a session management device, which is arranged on the network device, such as Figure 5 As shown, the device comprises:
[0175] The first receiving unit 501 is used to receive a first request sent by a terminal; wherein the first request is used to request to establish a session connection and carries a first identifier; the first identifier is determined based on the first information and the second information carried by the data packet; the first information indicates the correspondence between the second information and the second identifier; the second identifier and the first identifier are used to establish a session connection.
[0176] In one embodiment, the device further comprises:
[0177] The second sending unit is configured to send the first information to the terminal.
[0178] In one embodiment, the first information is carried in broadcast signaling and / or a broadcast channel.
[0179] In one embodiment, the device further comprises:
[0180] A third receiving unit, configured to receive third information through the first interface;
[0181] A management unit is used to generate or update the first information according to the third information.
[0182] In one embodiment, the second information includes a service flow address and / or a FQDN.
[0183] In practical applications, the first receiving unit 501, the second sending unit and the third receiving unit can be implemented by a processor in the session management device in combination with a communication interface, and the management unit can be implemented by a processor in the session management device.
[0184] It should be noted that: the above embodiment provides a session management device, and only uses the division of the above program modules as an example to illustrate when performing session management. In actual applications, the above processing can be assigned to different program modules as needed, that is, the internal structure of the device is divided into different program modules to complete all or part of the above-described processing. In addition, the session management device and the session management method embodiment provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0185] Based on the hardware implementation of the above program modules, and in order to implement the method on the terminal side of the embodiment of the present application, the embodiment of the present application also provides a terminal, such as Figure 6 As shown, the terminal 600 includes:
[0186] The first communication interface 601 can exchange information with other network nodes.
[0187] The first processor 602 is connected to the first communication interface 601 to implement information interaction with other network nodes, and is used to execute the methods provided by one or more technical solutions on the terminal side when running a computer program.
[0188] The first memory 603 is used to store a computer program that can be run on the first processor 602 .
[0189] Specifically, the first processor 602 is used to determine a first identifier according to the first information and the second information carried by the data packet; wherein the first information indicates a corresponding relationship between the second information and the second identifier, and the second identifier and the first identifier are used to establish a session connection;
[0190] The first communication interface 601 is used to send a first request to the network device; wherein the first request is used to request to establish a session connection and carries the first identifier.
[0191] In one embodiment, the first communication interface 601 is further used to receive the first information sent by the network device.
[0192] In one embodiment, the first information is carried in broadcast signaling and / or a broadcast channel.
[0193] In one embodiment, when the first information contains a second identifier corresponding to the second information carried by the data packet, the first identifier is the second identifier corresponding to the second information carried by the data packet; or,
[0194] In a case where the second identifier corresponding to the second information carried by the data packet does not exist in the first information, the first identifier is an identifier preconfigured in the terminal for establishing a session connection.
[0195] In one embodiment, the second information includes a service flow address and / or a fully qualified domain name FQDN.
[0196] In one embodiment, the service flow address includes at least one of the following:
[0197] IP address;
[0198] IP triplet;
[0199] IP quintuple.
[0200] In one embodiment, the first identifier and the second identifier include at least one of the following:
[0201] PDU session identifier;
[0202] IP address;
[0203] DNN;
[0204] APN;
[0205] S-NSSAI.
[0206] It should be noted that the specific processing process of the first processor 602 and the first communication interface 601 can be understood by referring to the above method.
[0207] Of course, in actual application, the various components in the terminal 600 are coupled together through the bus system 604. It can be understood that the bus system 604 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 604 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, Figure 6 Various buses are labeled as bus system 604 .
[0208] The first memory 603 in the embodiment of the present application is used to store various types of data to support the operation of the terminal 600. Examples of such data include: any computer program used to operate on the terminal 600.
[0209] The method disclosed in the above embodiment of the present application can be applied to the first processor 602, or implemented by the first processor 602. The first processor 602 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the first processor 602. The above-mentioned first processor 602 may be a general-purpose processor, a digital signal processor (DSP, Digital Signal Processor), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The first processor 602 can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor may be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiment of the present application, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium, which is located in the first memory 603, and the first processor 602 reads the information in the first memory 603 and completes the steps of the above method in combination with its hardware.
[0210] In an exemplary embodiment, the terminal 600 can be implemented by one or more application-specific integrated circuits (ASIC), DSP, programmable logic device (PLD), field-programmable gate array (FPGA), general-purpose processor, controller, microcontroller (MCU), microprocessor, or other electronic components to execute the aforementioned method.
[0211] Based on the hardware implementation of the above program modules, and in order to implement the method of the network device side of the embodiment of the present application, the embodiment of the present application also provides a network device, such as Figure 7 As shown, the network device 700 includes:
[0212] The second communication interface 701 can exchange information with other network nodes.
[0213] The second processor 702 is connected to the second communication interface 701 to implement information interaction with other network nodes, and is used to execute the methods provided by one or more technical solutions on the network device side when running a computer program.
[0214] The second memory 703 is used to store a computer program that can be run on the second processor 702 .
[0215] Specifically, the second communication interface 701 is used to receive a first request sent by a terminal; wherein,
[0216] The first request is used to request to establish a session connection and carries a first identifier; the first identifier is determined based on the first information and the second information carried by the data packet; the first information indicates the correspondence between the second information and the second identifier; the second identifier and the first identifier are used to establish a session connection.
[0217] In one embodiment, the second communication interface 701 is further used to send the first information to the terminal.
[0218] In one embodiment, the first information is carried in broadcast signaling and / or a broadcast channel.
[0219] In one embodiment, the second communication interface 701 is further used to receive third information through the first interface;
[0220] The second processor 702 is configured to generate or update the first information according to the third information.
[0221] In one embodiment, the second information includes a service flow address and / or a FQDN.
[0222] It should be noted that the specific processing process of the second processor 702 and the second communication interface 701 can be understood by referring to the above method.
[0223] Of course, in actual application, the various components in the network device 700 are coupled together through the bus system 704. It can be understood that the bus system 704 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 704 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, Figure 7 Various buses are labeled as bus system 704 .
[0224] The second memory 703 in the embodiment of the present application is used to store various types of data to support the operation of the network device 700. Examples of such data include: any computer program used to operate on the network device 700.
[0225] The method disclosed in the above embodiment of the present application can be applied to the second processor 702, or implemented by the second processor 702. The second processor 702 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of the hardware in the second processor 702 or an instruction in the form of software. The above-mentioned second processor 702 may be a general-purpose processor, a DSP, or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The second processor 702 can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiment of the present application. A general-purpose processor may be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiment of the present application, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium, which is located in the second memory 703, and the second processor 702 reads the information in the second memory 703 and completes the steps of the above method in combination with its hardware.
[0226] In an exemplary embodiment, the network device 700 may be implemented by one or more ASICs, DSPs, PLDs, CPLDs, FPGAs, general purpose processors, controllers, MCUs, Microprocessors, or other electronic components to perform the aforementioned methods.
[0227] It can be understood that the memory (first memory 603 and second memory 703) of the embodiment of the present application can be a volatile memory or a non-volatile memory, and can also include both a volatile memory and a non-volatile memory. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), and direct RAM bus random access memory (DRRAM, Direct Rambus Random Access Memory).The memory described in the embodiments of the present application is intended to include, but is not limited to, these and any other suitable types of memory.
[0228] In an exemplary embodiment, the embodiment of the present application further provides a storage medium, namely a computer storage medium, specifically a computer-readable storage medium, for example, including a first memory 603 storing a computer program, and the computer program can be executed by the first processor 602 of the terminal 600 to complete the steps of the aforementioned terminal side method. For another example, a second memory 703 storing a computer program can be executed by the second processor 702 of the network device 700 to complete the steps of the aforementioned network device side method. The computer-readable storage medium can be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface memory, optical disk, or CD-ROM.
[0229] It should be noted that “first”, “second”, etc. are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.
[0230] The term "and / or" herein is only a description of the association relationship of the associated objects, indicating that there may be three relationships. For example, A and or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the term "at least one of" or "at least one item" herein represents any combination of at least two of any one or more of a plurality of items. For example, including at least one of A, B, and C can represent including any one or more elements selected from the set consisting of A, B, and C.
[0231] In addition, the technical solutions described in the embodiments of the present application can be combined arbitrarily without conflict.
[0232] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application.
Claims
1. A session management method, characterized in that: Applied to a terminal, the method comprises: Determine a first identifier according to the first information and the second information carried by the data packet; wherein the first information indicates a corresponding relationship between the second information and the second identifier, and the second identifier and the first identifier are used to establish a session connection; Send a first request to the network device; wherein the first request is used to request to establish a session connection and carries the first identifier.
2. The method according to claim 1, characterized in that The method further comprises: Receive the first information sent by the network device.
3. The method according to claim 2, characterized in that The first information is carried in broadcast signaling and / or a broadcast channel.
4. The method according to claim 1, characterized in that: In the case where the first information contains a second identifier corresponding to the second information carried by the data packet, the first identifier is the second identifier corresponding to the second information carried by the data packet; or, In a case where the second identifier corresponding to the second information carried by the data packet does not exist in the first information, the first identifier is an identifier preconfigured in the terminal for establishing a session connection.
5. The method according to any one of claims 1 to 4, characterized in that: The second information includes a service flow address and / or a fully qualified domain name FQDN.
6. The method according to claim 5, characterized in that The service flow address includes at least one of the following: Internet Protocol (IP) address; IP triplet; IP quintuple.
7. The method according to claim 1, characterized in that The first identifier and the second identifier include at least one of the following: Protocol data unit PDU session identifier; IP address; Data network name DNN; Access network name APN; Single network slice selection auxiliary information S-NSSAI.
8. A session management method, characterized in that: Applied to a network device, the method comprises: A first request sent by a receiving terminal is received; wherein, The first request is used to request to establish a session connection and carries a first identifier; the first identifier is determined based on the first information and the second information carried by the data packet; the first information indicates the correspondence between the second information and the second identifier; the second identifier and the first identifier are used to establish a session connection.
9. The method according to claim 8, characterized in that The method further comprises: The first information is sent to the terminal.
10. The method according to claim 9, characterized in that The first information is carried in broadcast signaling and / or a broadcast channel.
11. The method according to any one of claims 8 to 10, characterized in that: The method further comprises: receiving third information through the first interface; The first information is generated or updated according to the third information.
12. The method according to any one of claims 8 to 10, characterized in that The second information includes a service flow address and / or an FQDN.
13. A session management device, characterized in that: include: A determination unit, configured to determine a first identifier according to the first information and second information carried by the data packet; wherein the first information indicates a corresponding relationship between the second information and the second identifier, and the second identifier and the first identifier are used to establish a session connection; The first sending unit is used to send a first request to the network device; wherein the first request is used to request to establish a session connection and carries the first identifier.
14. A session management device, characterized in that: include: The first receiving unit is used to receive a first request sent by a terminal; wherein: The first request is used to request to establish a session connection and carries a first identifier; the first identifier is determined based on the first information and the second information carried by the data packet; the first information indicates the correspondence between the second information and the second identifier; the second identifier and the first identifier are used to establish a session connection.
15. A terminal, characterized in that: include: A first processor and a first communication interface; wherein, The first processor is used to determine a first identifier according to the first information and second information carried by the data packet; wherein the first information indicates a corresponding relationship between the second information and the second identifier, and the second identifier and the first identifier are used to establish a session connection; The first communication interface is used to send a first request to the network device; wherein the first request is used to request to establish a session connection and carries the first identifier.
16. A network device, characterized in that: include: A second processor and a second communication interface; wherein, The second communication interface is used to receive a first request sent by a terminal; wherein, The first request is used to request to establish a session connection and carries a first identifier; the first identifier is determined based on the first information and the second information carried by the data packet; the first information indicates the correspondence between the second information and the second identifier; the second identifier and the first identifier are used to establish a session connection.
17. A communication device, characterized in that: The communication device comprises a terminal or a network device, and the communication device comprises a processor and a memory for storing a computer program that can be run on the processor. Wherein, when the processor is used to run the computer program, it executes the steps of the method described in any one of claims 1 to 7, or executes the steps of the method described in any one of claims 8 to 12.
18. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented, or the steps of the method according to any one of claims 8 to 12 are implemented.
