Private network session establishment method and device, computer equipment and storage medium
By selecting the target network among multiple private data networks contracted at the home location and establishing a private network session, the problem of private network session interruption caused by home location faults is solved and the stability of the private network business is ensured.
Patent Information
- Application Number
- CN202410788525.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-19
- Publication Date
- 2024-08-23
AI Technical Summary
When a dual-domain private network session is established, a network element failure in the home location causes the private network session between the home location and the visited location to be interrupted, affecting the normal processing of private network services.
The user terminal selects the target data network among at least two private data networks contracted at home, and sends a private network session establishment request to the home session management function network element of the target data network to ensure that the session establishment is completed after receiving a response. Prevent session interruption.
When the home session management function network element is abnormal, the target network can be selected through multiple private data networks to prevent the interruption of private sessions and ensure the normal processing of private network services.
Smart Images

Figure CN118540762A
Abstract
Description
Technical Field
[0001] The present application relates to the field of wireless communication technology, and in particular to a method, device, computer equipment and storage medium for establishing a private network session. Background Art
[0002] When establishing a session for a dual-domain private network, a private network session can be established between the home location and the visited location through a unique private data network carrying a home location identifier issued in the dynamic diversion rules of the dual-domain private network.
[0003] However, when a network element at the home location fails, the private network session between the home location and the visited location will be interrupted, affecting the normal processing of private network services. Summary of the invention
[0004] Based on this, it is necessary to provide a method, device, computer equipment and storage medium for establishing a private network session that can prevent the interruption of the private network session between the home location and the visited location in order to address the above technical problems.
[0005] In a first aspect, the present application provides a method for establishing a private network session. The method comprises:
[0006] Selecting a target data network from at least two dedicated data networks subscribed by the user terminal at the home location;
[0007] Sending a private network session establishment request to a home session management function network element corresponding to the target data network through the target data network;
[0008] When receiving the private network session establishment response fed back by the home session management function network element, the private network session establishment between the home session management function network element is completed.
[0009] In one of the embodiments, selecting a target data network from at least two dedicated data networks subscribed by the user terminal in the home location includes:
[0010] Obtaining the data network serial number corresponding to each dedicated data network signed by the user terminal at the home location;
[0011] A target data network is selected from each dedicated data network according to the data network sequence number corresponding to each dedicated data network.
[0012] In one embodiment, selecting a target data network from each dedicated data network according to a data network sequence number corresponding to each dedicated data network includes:
[0013] Selecting a reference data network from each dedicated data network; wherein the reference data network is a data network corresponding to a dedicated network session of another terminal, or a data network corresponding to an abnormal dedicated network session of a user terminal;
[0014] A target data network is selected from each dedicated data network according to a reference network serial number corresponding to the reference data network and a data network serial number corresponding to each dedicated data network.
[0015] In one embodiment, selecting a target data network from each dedicated data network according to a reference network sequence number corresponding to the reference data network and a data network sequence number corresponding to each dedicated data network includes:
[0016] Selecting a data network sequence number different from the reference network sequence number from the data network sequence numbers corresponding to the dedicated data networks as the target network sequence number;
[0017] The dedicated data network corresponding to the target network sequence number is used as the target data network.
[0018] In one embodiment, the method further comprises:
[0019] If no private network session establishment response is received from the home session management function network element, a new target data network is selected from at least two private data networks signed by the user terminal in the home location, and the operation of sending a private network session establishment request to the home session management function network element corresponding to the target data network through the target data network is returned.
[0020] In one of the embodiments, selecting a target data network from at least two dedicated data networks subscribed by the user terminal in the home location includes:
[0021] Determine the type of the user terminal;
[0022] In the case that the user terminal belongs to a multi-campus home type, a target data network is selected from at least two dedicated data networks subscribed by the user terminal in the home location.
[0023] In one embodiment, the determining the belonging type of the user terminal includes:
[0024] Verify whether the private network data network name included in the dynamic diversion rule in the session policy carries a multi-campus identifier; wherein the session policy is a policy issued by the home location policy control function network element to the visited location session management function network element after the user terminal initiates a public network session establishment request through the universal data network;
[0025] If so, it is determined that the user terminal belongs to a multi-campus belonging type.
[0026] In a second aspect, the present application also provides a device for establishing a private network session. The device includes:
[0027] A selection module, configured to select a target data network from at least two dedicated data networks subscribed by the user terminal at a home location;
[0028] A sending module, used to send a private network session establishment request to a home session management function network element corresponding to the target data network through the target data network;
[0029] The receiving module is used to complete the establishment of the private network session with the home session management function network element when receiving the private network session establishment response fed back by the home session management function network element.
[0030] In a third aspect, the present application further provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:
[0031] Selecting a target data network from at least two dedicated data networks subscribed by the user terminal at the home location;
[0032] Sending a private network session establishment request to a home session management function network element corresponding to the target data network through the target data network;
[0033] When receiving the private network session establishment response fed back by the home session management function network element, the private network session establishment between the home session management function network element is completed.
[0034] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0035] Selecting a target data network from at least two dedicated data networks subscribed by the user terminal at the home location;
[0036] Sending a private network session establishment request to a home session management function network element corresponding to the target data network through the target data network;
[0037] When receiving the private network session establishment response fed back by the home session management function network element, the private network session establishment between the home session management function network element is completed.
[0038] In a fifth aspect, the present application further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0039] Selecting a target data network from at least two dedicated data networks subscribed by the user terminal at the home location;
[0040] Sending a private network session establishment request to a home session management function network element corresponding to the target data network through the target data network;
[0041] When receiving the private network session establishment response fed back by the home session management function network element, the private network session establishment between the home session management function network element is completed.
[0042] The above-mentioned private network session establishment method, device, computer equipment and storage medium select a target data network from at least two private data networks signed by the user terminal, and then send a private network session establishment request to the home session management function network element corresponding to the target data network according to the target data network, so as to complete the establishment of the private network session with the home session management function network element when receiving the private network session establishment response fed back by the home session management function network element. According to the above content, it can be known that when establishing a private network session, the present application does not establish a private network session based on the only private data network signed by the user terminal in the home location, but determines the target data network based on at least two private data networks signed by the user terminal in the home location, and then, based on the target data network, the visited location session management function network element sends a private network session establishment request to the home location session management function network element corresponding to the target data network, so that after the visited location session management function network element receives the private network session establishment response, it is determined that a private session between the home location session management function network element and the visited location session management function network element can be established through the target data network. Compared with the situation where the user terminal has only one private data network signed in the home location, the present application can select a target data network from multiple private data networks that can normally establish a private network session, thereby preventing the private session from being interrupted due to an abnormality of the home location session management function network element, and ensuring the normal processing of private network services. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 An application environment diagram of a method for establishing a private network session provided in an embodiment of the present application;
[0044] Figure 2 A flowchart of a first method for establishing a private network session provided in an embodiment of the present application;
[0045] Figure 3 A flowchart of a second method for establishing a private network session provided in an embodiment of the present application;
[0046] Figure 4A flowchart of a third method for establishing a private network session provided in an embodiment of the present application;
[0047] Figure 5 A flowchart of a fourth method for establishing a private network session provided in an embodiment of the present application;
[0048] Figure 6 A flowchart of a method for establishing a private network session provided in an embodiment of the present application;
[0049] Figure 7 A structural block diagram of a private network session establishment device provided in an embodiment of the present application;
[0050] Figure 8 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0051] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0052] It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. In the description of the present application, the description of the reference terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representation of the above terms is not necessarily for the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art can combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples without contradicting each other.
[0053] The private network session establishment method provided in the embodiment of the present application can be applied to Figure 1In the application environment shown. Among them, the user terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. By selecting the target data network from at least two private data networks signed by the user terminal, and then sending a private network session establishment request to the home session management function network element corresponding to the target data network according to the target data network, so as to complete the establishment of the private network session with the home session management function network element when receiving the private network session establishment response fed back by the home session management function network element. Among them, the user terminal 102 can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices, and the Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The server 104 can be implemented with an independent server or a server cluster consisting of multiple servers.
[0054] In one embodiment, Figure 2 As shown, a method for establishing a private network session is provided, and the method is applied to Figure 1 The terminal 102 in the example is used as an example to illustrate, and the following steps are included:
[0055] S201, selecting a target data network from at least two dedicated data networks subscribed by a user terminal in a home location.
[0056] It should be noted that, when selecting a target data network, the present application may implement data network screening of at least two dedicated data networks subscribed by the user terminal at the home location based on pre-set screening rules, and then determine the target data network based on the screening results.
[0057] To further illustrate, the screening condition corresponding to the target data network is recorded in the screening rule, and therefore, the dedicated data network that meets the screening condition among at least two dedicated data networks subscribed by the terminal in the home location is used as the target data network.
[0058] In one embodiment of the present application, each dedicated data network can be numbered to obtain a data network serial number corresponding to each dedicated data network, and the screening rule can be that the target data network is the data network serial number of the target data network using the sum of the data network number of the dedicated data network used when the last private network session was established and a preset value; wherein the preset value can be 1.
[0059] Specifically, if there are three dedicated data networks in total, the three dedicated data networks are CTNET.AUTO.A (dedicated data network in location A), CTNET.AUTO.B (dedicated data network in location B) and CTNET.AUTO.C (dedicated data network in location C); among them, the data network sequence number of CTNET.AUTO.A is 1, the data network sequence number of CTNET.AUTO.B is 2, and the data network sequence number of CTNET.AUTO.C is 3. If the dedicated data network used when establishing a dedicated session last time is CTNET.AUTO.A, and the data network sequence number of CTNET.AUTO.A is 1, then the data network sequence number of the target data network is determined to be 1+1=2, and CTNET.AUTO.B with a data network sequence number of 2 is used as the target data network.
[0060] Furthermore, if the dedicated data network used in the last dedicated session establishment is CTNET.AUTO.C, and the data network number of CTNET.AUTO.C is 3, then the data network number of the target data network is determined to be 3+1=4. Since CTNET.AUTO.C is the dedicated data network with the largest data network number, the data network number of CTNET.AUTO.A can be used as the data network number corresponding to the data network number of CTNET.AUTO.C plus 1 through the polling mechanism. Therefore, if the dedicated data network used in the last dedicated session establishment is CTNET.AUTO.C, CTNET.AUTO.A with a data network number of 1 is used as the target data network.
[0061] In one embodiment of the present application, each dedicated data network can be numbered to obtain a data network serial number corresponding to each dedicated data network, and the screening rule can be to use any other data network different from the dedicated data network used when establishing the last private network session as the target data network.
[0062] Specifically, if there are three dedicated data networks in total, the three dedicated data networks are CTNET.AUTO.A, CTNET.AUTO.B and CTNET.AUTO.C; among them, the data network number of CTNET.AUTO.A is 1, the data network number of CTNET.AUTO.B is 2, and the data network number of CTNET.AUTO.C is 3. If the dedicated data network used when the last dedicated session was established is CTNET.AUTO.B, and the data network number of CTNET.AUTO.B is 2; then any data network number is selected from other data network numbers different from data network number 2, and the selected data network number is 1, then CTNET.AUTO.A corresponding to data network number 1 is used as the target data network.
[0063] It should be noted that before selecting the target data network from at least two dedicated data networks signed by the user terminal at the home location, the user terminal also needs to establish a public network session to implement the step of establishing a private network session by selecting the target data network from at least two dedicated data networks signed by the user terminal at the home location on the premise that the public network session is successfully established.
[0064] Specifically, the user terminal can subscribe to a universal data network and at least two private data networks at the unified data management network element (UDM) at the home location. The user terminal initiates a public network session establishment request through the universal data network. The policy control function network element (PCF) at the home location sends the session policy subscribed under the universal data network to the session management function network element (SMF) at the visited location. The session policy includes dynamic diversion rules for private network sessions to achieve public network session establishment. After the public network session is established, the public network traffic is locally accessed to the public network through the user plane function network element (UPF) at the visited location.
[0065] S202, sending a private network session establishment request to a home session management function network element corresponding to the target data network through the target data network.
[0066] It should be noted that when it is necessary to send a private network session establishment request to the home session management function network element corresponding to the target data network, a query instruction can be sent to the home network storage function (NFRepository Function, NRF) of the target data network's home location according to the target data network, so that the home network storage function queries the home session management function network element of the target data network's home location, and then sends a private network session establishment request to the home session management function network element corresponding to the target data network.
[0067] In one embodiment of the present application, after determining the target data network, the location identifier corresponding to the target data network can be determined, and the location of the target data network can be determined to be location A. Then, a query instruction is sent to the location network storage function of location A, so that the network storage function of location A queries the location session management function network element of location A, and then, a private network session establishment request is sent to the location session management function network element of location A.
[0068] S203, upon receiving the private network session establishment response fed back by the home session management function network element, complete the establishment of the private network session with the home session management function network element.
[0069] It should be noted that if a private network session establishment response is received from the home session management function network element, it proves that the visited session management function network element is able to establish a private network session with the home session management function network element corresponding to the target data network. Therefore, a private network N4 session is established between the visited session management function network element and the visited user plane function network element to complete the establishment of the private network session with the home session management function network element.
[0070] The above-mentioned private network session establishment method selects a target data network from at least two private data networks subscribed by the user terminal, and then sends a private network session establishment request to the home session management function network element corresponding to the target data network according to the target data network, so as to complete the establishment of the private network session with the home session management function network element when receiving the private network session establishment response fed back by the home session management function network element. According to the above content, it can be known that when establishing a private network session, the present application does not establish a private network session based on the only private data network signed by the user terminal in the home location, but determines the target data network based on at least two private data networks signed by the user terminal in the home location, and then, based on the target data network, the visited location session management function network element sends a private network session establishment request to the home location session management function network element corresponding to the target data network, so that after the visited location session management function network element receives the private network session establishment response, it is determined that a private session between the home location session management function network element and the visited location session management function network element can be established through the target data network. Compared with the situation where the user terminal has only one private data network signed in the home location, the present application can select a target data network from multiple private data networks that can normally establish a private network session, thereby preventing the private session from being interrupted due to an abnormality of the home location session management function network element, and ensuring the normal processing of private network services.
[0071] In one embodiment, if a private network session establishment response is not received from the home session management function network element, a new target data network is selected from at least two private data networks signed by the user terminal in the home location, and the operation of sending a private network session establishment request to the home session management function network element corresponding to the target data network through the target data network is returned.
[0072] Among them, failure to receive a private network session establishment response fed back by the home session management function network element may include the following two situations: (1) receiving a private network session establishment failure response fed back by the home session management function network element; (2) failing to receive a private network session establishment response fed back by the home session management function network element within a preset time period.
[0073] In one embodiment of the present application, after determining the target data network, the home location identifier corresponding to the target data network can be determined, and the home location of the target data network can be determined to be A. Then, a query instruction is sent to the home location network storage function of A, so that the network storage function of A queries the home location session management function network element of A, and then, a private network session establishment request is sent to the home location session management function network element of A; if the home location session management function network element of A or the home location user plane function network element of A fails, resulting in the failure to receive the private network session establishment response fed back by the home location session management function network element, therefore, the target data network is re-determined, and then, the home location of the target data network is determined to be B, and a query instruction is sent to the home location network storage function of B, so that the network storage function of B queries the home location session management function network element of B, and then, a private network session establishment request is sent to the home location session management function network element of B, and when the private network session establishment response fed back by the home location session management function network element of B is received, the private network session establishment between the home location session management function network element and the home location session management function network element is completed.
[0074] The above-mentioned private network session establishment method determines a new target data network when no private network session establishment response is received from the home session management function network element, and returns to execute the step of sending a private network session establishment request to the home session management function network element corresponding to the target data network, thereby selecting a target data network from multiple private data networks that can normally establish a private network session, effectively preventing the private session from being interrupted due to an abnormality of the home session management function network element, and ensuring the normal processing of the private network service.
[0075] In one embodiment, if Figure 3 As shown, when it is necessary to select a target data network from at least two dedicated data networks subscribed by the user terminal in the home location, the following contents may be specifically included:
[0076] S301, obtaining data network serial numbers corresponding to each dedicated data network subscribed by the user terminal at the home location.
[0077] It should be noted that in order to ensure that the target data network can be successfully selected from various dedicated data networks in the future, each dedicated data network can be assigned a unique corresponding data network serial number to implement the operation of obtaining the data network serial numbers corresponding to each dedicated data network signed by the user terminal at the home location.
[0078] To further illustrate, a unique corresponding data network serial number may be assigned to each dedicated data network based on a pre-set serial number assignment rule.
[0079] In one embodiment of the present application, it can be pre-specified that each dedicated data network is assigned a unique corresponding data network serial number in the order in which the user terminal signs the contract at the home location; then the signing time corresponding to each dedicated data network is determined, and then the dedicated data networks are sorted in the order of the signing time to obtain the sorted dedicated data networks, and sequential data network serial numbers are assigned in the order of the sorted dedicated data networks, so as to implement the operation of obtaining the data network serial numbers corresponding to the dedicated data networks signed by the user terminal at the home location.
[0080] In one embodiment of the present application, it can be pre-specified that each dedicated data network is randomly sorted to obtain each randomly sorted dedicated data network, and then, sequential data network numbers are assigned in order according to the sequence of the sorted dedicated data networks to implement the operation of obtaining the data network numbers corresponding to each dedicated data network signed by the user terminal at the home location.
[0081] S302: Select a target data network from each dedicated data network according to the data network sequence number corresponding to each dedicated data network.
[0082] It should be noted that when it is necessary to select a target data network from various dedicated data networks, the following may be specifically included: selecting a reference data network from various dedicated data networks; selecting a target data network from various dedicated data networks based on the reference network serial number corresponding to the reference data network and the data network serial number corresponding to each dedicated data network.
[0083] The reference data network is a data network corresponding to a private network session of other terminals, or a data network corresponding to an abnormal private network session of a user terminal.
[0084] To further illustrate, when selecting a target data network from each dedicated data network based on the reference network number corresponding to the reference data network and the data network number corresponding to each dedicated data network, the following contents may be included: from the data network numbers corresponding to each dedicated data network, a data network number different from the reference network number is selected as the target network number; and the dedicated data network corresponding to the target network number is used as the target data network.
[0085] In one embodiment of the present application, if there are three dedicated data networks in total, the three dedicated data networks are CTNET.AUTO.A, CTNET.AUTO.B and CTNET.AUTO.C; wherein the data network number of CTNET.AUTO.A is 1, the data network number of CTNET.AUTO.B is 2, and the data network number of CTNET.AUTO.C is 3, and the screening rule may be that the target data network is the result of the sum operation of the reference network number of the reference data network and the preset value as the data network number of the target data network; wherein the preset value may be 1. If the reference data network corresponding to the private network session of other terminals is CTNET.AUTO.A, and the reference network number of CTNET.AUTO.A is 1, then the data network number of the target data network is determined to be 1+1=2, and CTNET.AUTO.B with the data network number 2 is used as the target data network.
[0086] In one embodiment of the present application, if there are three dedicated data networks in total, the three dedicated data networks are CTNET.AUTO.A, CTNET.AUTO.B and CTNET.AUTO.C; wherein the data network number of CTNET.AUTO.A is 1, the data network number of CTNET.AUTO.B is 2, and the data network number of CTNET.AUTO.C is 3, and the screening rule may be that the target data network is the result of the sum operation of the reference network number of the reference data network and the preset value, as the data network number of the target data network; wherein the preset value may be 1. The reference data network corresponding to the abnormal private network session of the user terminal is CTNET.AUTO.B, and the reference network number of CTNET.AUTO.B is 2, then the data network number of the target data network is determined to be 2+1=3, and CTNET.AUTO.C with the data network number 3 is used as the target data network.
[0087] The above-mentioned method for establishing a private network session obtains the data network serial numbers corresponding to the private data networks signed by the user terminal in the home location, and selects the target data network from at least two private data networks signed by the user terminal according to the data network needs, thereby ensuring that the subsequent application can select the target data network that can normally establish a private network session from multiple private data networks, thereby preventing the private session from being interrupted due to anomalies of the session management function network element in the home location, and ensuring the normal processing of private network services.
[0088] In one embodiment, if Figure 4 As shown, when it is necessary to select a target data network from at least two dedicated data networks subscribed by the user terminal in the home location, the following contents may be specifically included:
[0089] S401, determining the belonging type of the user terminal.
[0090] It should be noted that when determining the belonging type of a user terminal, the following may be specifically included: verifying whether the private network data network name contained in the dynamic diversion rule in the session policy carries a multi-campus identifier; wherein the session policy is the policy issued by the belonging location policy control function network element to the visited location session management function network element after the user terminal initiates a public network session establishment request through the general data network; if so, it is determined that the user terminal belongs to the multi-campus belonging type.
[0091] The multi-campus identification can be represented as a 'MULTI' identification. Therefore, when determining the attribution type of the user terminal, it is to verify whether each dedicated data network contracted by the user terminal in the attribution location has a 'MULTI' identification.
[0092] Specifically, after the user terminal initiates a public network session establishment request through the general data network, the policy control function network element of the home location sends the session policy signed under the general data network to the session management function network element of the visited location. The session policy includes dynamic diversion rules for private network sessions, and verifies whether the private network data network name included in the dynamic diversion rules carries the 'MULTI' identifier. If so, it is determined that the user terminal belongs to the multi-campus home type; if the private network data network name carries a province identifier, it is determined that the user terminal does not belong to the multi-campus home type.
[0093] S402: When the user terminal belongs to a multi-campus home type, a target data network is selected from at least two dedicated data networks subscribed by the user terminal in the home location.
[0094] In one embodiment of the present application, if each dedicated data network contracted by the user terminal at the home location carries a 'MULTI' logo, it is determined that the user terminal belongs to a multi-campus home type; if each dedicated data network contracted by the user terminal at the home location does not carry a 'MULTI' logo, it is determined that the user terminal does not belong to a multi-campus home type; further, in the case that the user terminal belongs to a multi-campus home type, the target data network is selected from at least two dedicated data networks contracted by the user terminal at the home location.
[0095] In another embodiment of the present application, if the dedicated data networks subscribed by the user terminal in the home location do not have a 'MULTI' identifier, but directly have a province identifier, it is determined that the user terminal does not belong to the multi-campus home type.
[0096] To further illustrate, if each dedicated data network contracted by the user terminal at the home location carries a 'MULTI' identifier, then according to the dynamic diversion rule obtained by the target terminal after the public network session is established, the 'MULTI' identifier is removed, and the home location identifiers of each dedicated data network contracted by the user terminal at the home location are respectively assigned in a preset order, and then the process of selecting the target data network from at least two dedicated data networks contracted by the user terminal at the home location is executed.
[0097] The above-mentioned private network session establishment method, by determining the attribution type of the user terminal, ensures that the subsequent process of selecting the target data network from at least two private data networks signed by the user terminal at the attribution location can proceed smoothly, thereby ensuring that the private network session can be established smoothly.
[0098] In one embodiment, if Figure 5 As shown in the figure, when a private network session needs to be established with the home session management function network element:
[0099] S501, the visited location session management function network element obtains the data network serial number corresponding to each dedicated data network subscribed by the user terminal in the home location.
[0100] S502: The visited location session management function network element selects a reference data network from various dedicated data networks.
[0101] S503, the visited location session management function network element selects a data network number different from the reference network number from the data network numbers corresponding to the dedicated data networks as the determined target network number.
[0102] S504: The visited location session management function network element uses the dedicated data network corresponding to the target network sequence number as the target data network.
[0103] S505, the visited location session management function network element sends a private network session establishment request to the home location session management function network element corresponding to the target data network through the target data network.
[0104] S506, when receiving the private network session establishment response fed back by the home session management function network element, the visited session management function network element completes the establishment of the private network session with the home session management function network element.
[0105] In one embodiment of the present application, Figure 6As shown, the user terminal can subscribe to a universal data network and at least two private data networks at the unified data management network element (UDM) at the home location. The user terminal initiates a public network session establishment request through the universal data network. The policy control function network element (PCF) at the home location sends the session policy subscribed under the universal data network to the session management function network element (SMF) at the visited location. The session policy includes dynamic diversion rules for private network sessions to achieve public network session establishment. After the public network session is established, the public network traffic is locally accessed to the public network through the user plane function network element (UPF) at the visited location. The visited location session management function network element selects a target data network from at least two dedicated data networks subscribed by the user terminal in the home location, and sends a private network session establishment request to the home location session management function network element corresponding to the target data network through the target data network, so that when receiving the private network session establishment response fed back by the home location session management function network element, the visited location session management function network element establishes a private network N4 session with the visited location user plane function network element (User plane Function, UPF) to complete the establishment of the private network session with the home location session management function network element.
[0106] The above-mentioned private network session establishment method selects a target data network from at least two private data networks subscribed by the user terminal, and then sends a private network session establishment request to the home session management function network element corresponding to the target data network according to the target data network, so as to complete the establishment of the private network session with the home session management function network element when receiving the private network session establishment response fed back by the home session management function network element. According to the above content, it can be known that when establishing a private network session, the present application does not establish a private network session based on the only private data network signed by the user terminal in the home location, but determines the target data network based on at least two private data networks signed by the user terminal in the home location, and then, based on the target data network, the visited location session management function network element sends a private network session establishment request to the home location session management function network element corresponding to the target data network, so that after the visited location session management function network element receives the private network session establishment response, it is determined that a private session between the home location session management function network element and the visited location session management function network element can be established through the target data network. Compared with the situation where the user terminal has only one private data network signed in the home location, the present application can select a target data network from multiple private data networks that can normally establish a private network session, thereby preventing the private session from being interrupted due to an abnormality of the home location session management function network element, and ensuring the normal processing of private network services.
[0107] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0108] Based on the same inventive concept, the embodiment of the present application also provides a private network session establishment device for implementing the private network session establishment method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more private network session establishment device embodiments provided below can refer to the limitations of the private network session establishment method above, and will not be repeated here.
[0109] In one embodiment, Figure 7 As shown, a private network session establishment device is provided, comprising: a selection module 10, a sending module 20 and a receiving module 30, wherein:
[0110] The selection module 10 is used to select a target data network from at least two dedicated data networks subscribed by the user terminal in the home location.
[0111] The sending module 20 is used to send a private network session establishment request to a home session management function network element corresponding to the target data network through the target data network.
[0112] The receiving module 30 is used to complete the establishment of the private network session with the home session management function network element when receiving the private network session establishment response fed back by the home session management function network element.
[0113] In one embodiment, data network serial numbers corresponding to the dedicated data networks subscribed by the user terminal at the home location are obtained; and a target data network is selected from the dedicated data networks according to the data network serial numbers corresponding to the dedicated data networks.
[0114] In one embodiment, a reference data network is selected from various dedicated data networks; wherein the reference data network is a data network corresponding to a dedicated network session of other terminals, or a data network corresponding to an abnormal private network session of a user terminal; and a target data network is selected from various dedicated data networks based on a reference network serial number corresponding to the reference data network and a data network serial number corresponding to each dedicated data network.
[0115] In one embodiment, a data network number different from the reference network number is selected from the data network numbers corresponding to the dedicated data networks as the target network number; and the dedicated data network corresponding to the target network number is used as the target data network.
[0116] In one embodiment, if a private network session establishment response is not received from the home session management function network element, a new target data network is selected from at least two private data networks signed by the user terminal in the home location, and the operation of sending a private network session establishment request to the home session management function network element corresponding to the target data network through the target data network is returned.
[0117] In one embodiment, the user terminal is judged on its belonging type; when the user terminal belongs to a multi-campus belonging type, a target data network is selected from at least two dedicated data networks subscribed by the user terminal in the belonging location.
[0118] In one embodiment, it is verified whether the private network data network name included in the dynamic diversion rule in the session policy carries a multi-campus identifier; wherein the session policy is a policy issued by the home location policy control function network element to the visited location session management function network element after the user terminal initiates a public network session establishment request through the general data network; if so, it is determined that the user terminal belongs to the multi-campus home type.
[0119] The above-mentioned private network session establishment device selects a target data network from at least two private data networks signed by the user terminal, and then sends a private network session establishment request to the home session management function network element corresponding to the target data network according to the target data network, so as to complete the establishment of the private network session with the home session management function network element when receiving the private network session establishment response fed back by the home session management function network element. According to the above content, it can be known that when establishing a private network session, the present application does not establish a private network session based on the only private data network signed by the user terminal in the home location, but determines the target data network based on at least two private data networks signed by the user terminal in the home location, and then, based on the target data network, the visited location session management function network element sends a private network session establishment request to the home location session management function network element corresponding to the target data network, so that after the visited location session management function network element receives the private network session establishment response, it is determined that a private session between the home location session management function network element and the visited location session management function network element can be established through the target data network. Compared with the situation where the user terminal has only one private data network signed in the home location, the present application can select a target data network from multiple private data networks that can normally establish a private network session, thereby preventing the private session from being interrupted due to an abnormality of the home location session management function network element, and ensuring the normal processing of private network services.
[0120] Each module in the above-mentioned private network session establishment device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module above.
[0121] In one embodiment, a computer device is provided. The computer device may be a user terminal, and its internal structure diagram may be as follows: Figure 8As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external user terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a method for establishing a private network session is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0122] Those skilled in the art will understand that Figure 8 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0123] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0124] Selecting a target data network from at least two dedicated data networks subscribed by the user terminal at the home location;
[0125] Sending a private network session establishment request to a home session management function network element corresponding to the target data network through the target data network;
[0126] When receiving the private network session establishment response fed back by the home session management function network element, the private network session establishment between the home session management function network element is completed.
[0127] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0128] Obtaining the data network serial number corresponding to each dedicated data network signed by the user terminal at the home location;
[0129] A target data network is selected from each dedicated data network according to the data network sequence number corresponding to each dedicated data network.
[0130] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0131] Selecting a reference data network from each dedicated data network; wherein the reference data network is a data network corresponding to a dedicated network session of another terminal, or a data network corresponding to an abnormal dedicated network session of a user terminal;
[0132] A target data network is selected from each dedicated data network according to a reference network serial number corresponding to the reference data network and a data network serial number corresponding to each dedicated data network.
[0133] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0134] Selecting a data network sequence number different from the reference network sequence number from the data network sequence numbers corresponding to the dedicated data networks as the target network sequence number;
[0135] The dedicated data network corresponding to the target network sequence number is used as the target data network.
[0136] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0137] If no private network session establishment response is received from the home session management function network element, a new target data network is selected from at least two private data networks signed by the user terminal in the home location, and the operation of sending a private network session establishment request to the home session management function network element corresponding to the target data network through the target data network is returned.
[0138] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0139] Determine the type of the user terminal;
[0140] In the case where the user terminal belongs to a multi-campus home type, a target data network is selected from at least two dedicated data networks subscribed by the user terminal in the home location.
[0141] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0142] Verify whether the private network data network name included in the dynamic diversion rule in the session policy carries the multi-campus identifier; the session policy is the policy issued by the home policy control function network element to the visited session management function network element after the user terminal initiates a public network session establishment request through the general data network;
[0143] If so, it is determined that the user terminal belongs to the multi-campus belonging type.
[0144] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0145] Selecting a target data network from at least two dedicated data networks subscribed by the user terminal at the home location;
[0146] Sending a private network session establishment request to a home session management function network element corresponding to the target data network through the target data network;
[0147] When receiving the private network session establishment response fed back by the home session management function network element, the private network session establishment between the home session management function network element is completed.
[0148] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0149] Obtaining the data network serial number corresponding to each dedicated data network signed by the user terminal at the home location;
[0150] A target data network is selected from each dedicated data network according to the data network sequence number corresponding to each dedicated data network.
[0151] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0152] Selecting a reference data network from each dedicated data network; wherein the reference data network is a data network corresponding to a dedicated network session of another terminal, or a data network corresponding to an abnormal dedicated network session of a user terminal;
[0153] A target data network is selected from each dedicated data network according to a reference network serial number corresponding to the reference data network and a data network serial number corresponding to each dedicated data network.
[0154] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0155] Selecting a data network sequence number different from the reference network sequence number from the data network sequence numbers corresponding to the dedicated data networks as the target network sequence number;
[0156] The dedicated data network corresponding to the target network sequence number is used as the target data network.
[0157] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0158] If no private network session establishment response is received from the home session management function network element, a new target data network is selected from at least two private data networks signed by the user terminal in the home location, and the operation of sending a private network session establishment request to the home session management function network element corresponding to the target data network through the target data network is returned.
[0159] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0160] Determine the type of the user terminal;
[0161] In the case where the user terminal belongs to a multi-campus home type, a target data network is selected from at least two dedicated data networks subscribed by the user terminal in the home location.
[0162] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0163] Verify whether the private network data network name included in the dynamic diversion rule in the session policy carries the multi-campus identifier; the session policy is the policy issued by the home policy control function network element to the visited session management function network element after the user terminal initiates a public network session establishment request through the general data network;
[0164] If so, it is determined that the user terminal belongs to the multi-campus belonging type.
[0165] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0166] Selecting a target data network from at least two dedicated data networks subscribed by the user terminal at the home location;
[0167] Sending a private network session establishment request to a home session management function network element corresponding to the target data network through the target data network;
[0168] When receiving the private network session establishment response fed back by the home session management function network element, the private network session establishment between the home session management function network element is completed.
[0169] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0170] Obtaining the data network serial number corresponding to each dedicated data network signed by the user terminal at the home location;
[0171] A target data network is selected from each dedicated data network according to the data network sequence number corresponding to each dedicated data network.
[0172] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0173] Selecting a reference data network from each dedicated data network; wherein the reference data network is a data network corresponding to a dedicated network session of another terminal, or a data network corresponding to an abnormal dedicated network session of a user terminal;
[0174] A target data network is selected from each dedicated data network according to a reference network serial number corresponding to the reference data network and a data network serial number corresponding to each dedicated data network.
[0175] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0176] Selecting a data network sequence number different from the reference network sequence number from the data network sequence numbers corresponding to the dedicated data networks as the target network sequence number;
[0177] The dedicated data network corresponding to the target network sequence number is used as the target data network.
[0178] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0179] If no private network session establishment response is received from the home session management function network element, a new target data network is selected from at least two private data networks signed by the user terminal in the home location, and the operation of sending a private network session establishment request to the home session management function network element corresponding to the target data network through the target data network is returned.
[0180] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0181] Determine the type of the user terminal;
[0182] In the case where the user terminal belongs to a multi-campus home type, a target data network is selected from at least two dedicated data networks subscribed by the user terminal in the home location.
[0183] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0184] Verify whether the private network data network name included in the dynamic diversion rule in the session policy carries the multi-campus identifier; the session policy is the policy issued by the home policy control function network element to the visited session management function network element after the user terminal initiates a public network session establishment request through the general data network;
[0185] If so, it is determined that the user terminal belongs to the multi-campus belonging type.
[0186] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.
[0187] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0188] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0189] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for establishing a private network session, characterized in that: Applied to a visited location session management function network element, the method includes: Selecting a target data network from at least two dedicated data networks subscribed by the user terminal at the home location; Sending a private network session establishment request to a home session management function network element corresponding to the target data network through the target data network; When receiving the private network session establishment response fed back by the home session management function network element, the private network session establishment between the home session management function network element is completed.
2. The method according to claim 1, characterized in that The step of selecting a target data network from at least two dedicated data networks subscribed by the user terminal in the home location includes: Obtaining the data network serial number corresponding to each dedicated data network signed by the user terminal at the home location; A target data network is selected from each dedicated data network according to the data network sequence number corresponding to each dedicated data network.
3. The method according to claim 2, characterized in that The step of selecting a target data network from each dedicated data network according to the data network sequence number corresponding to each dedicated data network includes: Selecting a reference data network from each dedicated data network; wherein the reference data network is a data network corresponding to a dedicated network session of another terminal, or a data network corresponding to an abnormal dedicated network session of a user terminal; A target data network is selected from each dedicated data network according to a reference network serial number corresponding to the reference data network and a data network serial number corresponding to each dedicated data network.
4. The method according to claim 3, characterized in that The step of selecting a target data network from each dedicated data network according to a reference network sequence number corresponding to the reference data network and a data network sequence number corresponding to each dedicated data network comprises: Selecting a data network sequence number different from the reference network sequence number from the data network sequence numbers corresponding to the dedicated data networks as the target network sequence number; The dedicated data network corresponding to the target network sequence number is used as the target data network.
5. The method according to claim 1, characterized in that The method further comprises: If no private network session establishment response is received from the home session management function network element, a new target data network is selected from at least two private data networks signed by the user terminal in the home location, and the operation of sending a private network session establishment request to the home session management function network element corresponding to the target data network through the target data network is returned.
6. The method according to claim 1, characterized in that The step of selecting a target data network from at least two dedicated data networks subscribed by the user terminal in the home location includes: Determine the type of the user terminal; In the case that the user terminal belongs to a multi-campus home type, a target data network is selected from at least two dedicated data networks subscribed by the user terminal in the home location.
7. The method according to claim 6, characterized in that The determining the belonging type of the user terminal includes: Verify whether the private network data network name included in the dynamic diversion rule in the session policy carries a multi-campus identifier; wherein the session policy is a policy issued by the home location policy control function network element to the visited location session management function network element after the user terminal initiates a public network session establishment request through the universal data network; If so, it is determined that the user terminal belongs to a multi-campus belonging type.
8. A device for establishing a private network session, characterized in that: The device comprises: A selection module, configured to select a target data network from at least two dedicated data networks subscribed by the user terminal at a home location; A sending module, used to send a private network session establishment request to a home session management function network element corresponding to the target data network through the target data network; The receiving module is used to complete the establishment of the private network session with the home session management function network element when receiving the private network session establishment response fed back by the home session management function network element.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.
