Network slice switching method, terminal, storage medium and electronic device
By displaying and managing multiple network slice lists on the network sharing terminal, the client is allowed to select and switch target slices, which solves the problem of low network slice configuration efficiency in the existing technology and realizes a more flexible network sharing function.
Patent Information
- Application Number
- CN202010605221.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-29
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2040-06-29
AI Technical Summary
In the existing technology, network slicing configuration efficiency is low during network sharing, clients cannot select and change service types, and network slicing configuration is inflexible.
By displaying and managing multiple network slice lists after the second terminal establishes a connection with the first terminal, the client is allowed to select and switch target network slices, thereby realizing display, selection and switching of network slices.
It improves the efficiency of network slicing configuration, allows clients to dynamically select and switch network slicing according to needs, and improves the flexibility and user experience of network sharing functions.
Smart Images

Figure CN113965463B
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of communications, and in particular, to a network slice switching method and terminal, a storage medium, and an electronic device. Background Art
[0002] In the prior art, in network sharing, only the mobile phone that opens the network sharing can configure the service type, and the client cannot select and change the service type. The configured service type is only a certain type of data service, and cannot specify a certain slice. The service type can only be selected in advance. After the client connects to the network sharing, the network sharing terminal can no longer configure the service type or select the slice.
[0003] That is to say, in the prior art, the efficiency of network slice configuration in the network sharing process is low. Summary of the invention
[0004] Embodiments of the present invention provide a network slice switching method and terminal, a storage medium and an electronic device to at least solve the problem of low efficiency of network slice configuration in related technologies.
[0005] According to one embodiment of the present invention, a network slice switching method is provided, comprising: when a second terminal establishes a connection with a first terminal, the second terminal displays a network slice list, wherein the network slice list includes multiple first network slices, and the first network slices provide network data services for the second terminal; the second terminal receives a selection instruction, wherein the selection instruction is used to select a target network slice from the network slice list; the second terminal sends a target identifier of the target network slice to the first terminal, so that the first terminal switches a current network slice to the target network slice, wherein the current network slice is a network slice used by the first terminal to provide the network data service to the second terminal when the second terminal establishes a connection with the first terminal.
[0006] In an exemplary embodiment, after the second terminal establishes a connection with the first terminal and before the second terminal displays the network slice list, the method also includes: the second terminal obtains the first network slice list of the first terminal; the second terminal obtains the second network slice list corresponding to the second account logged in to the second terminal; the second terminal merges the first network slice list and the second network slice list into the network slice list.
[0007] In an exemplary embodiment, the second terminal obtains the second network slice list corresponding to the second account logged in to the second terminal, including: the second terminal sends an acquisition request to a server corresponding to the second account, wherein the acquisition request is used to request the second network slice list; the second terminal receives the second network slice list returned by the server.
[0008] In an exemplary embodiment, after the second terminal establishes a connection with the first terminal and after the second terminal displays the network slice list, the method further includes: receiving a login instruction, wherein the login instruction is used to log in to a target page, and the target page includes a second network slice; receiving a purchase instruction, wherein the purchase instruction is used to purchase the second network slice.
[0009] In an exemplary embodiment, after receiving the purchase instruction, the method further includes: if the purchase of the second network slice is successful, integrating the second network slice into the network slice list.
[0010] In an exemplary embodiment, after the second terminal establishes a connection with the first terminal, the second terminal displays the network slice list including: the second terminal displays the slice package name, slice data rate, slice network delay and slice name of each network slice in the network slice list.
[0011] According to another embodiment of the present invention, a network slice switching method is provided, including: when a second terminal establishes a connection with a first terminal, the first terminal receives a switching instruction sent by the second terminal, wherein the switching instruction includes a target identifier of a target network slice, and the first terminal is used to use the target network slice to provide network data services for the second terminal, and the target network slice is a network slice in a network slice list displayed by the second terminal, and the network slice list includes multiple network slices; the first terminal switches the current network slice to the target network slice, wherein the current network slice is the network slice used by the first terminal to provide data network services to the second terminal when the second terminal establishes a connection with the first terminal.
[0012] In an exemplary embodiment, after the second terminal establishes a connection with the first terminal and before the first terminal receives a switching instruction sent by the second terminal, the method also includes: the first terminal sends the first network slice list of the first terminal to the second terminal, so that the second terminal merges the first network slice list and the second network slice list into the network slice list, wherein the second network slice list is the network slice list corresponding to the second account logged in to the second terminal.
[0013] In an exemplary embodiment, the first terminal switches the current network slice to the target network slice, including: the first terminal sends a data connection activation request to a wireless data connection virtual device interface, and the data connection activation request includes a target identifier of the target network slice; the first terminal establishes a connection between the first terminal and the wireless data connection virtual device interface.
[0014] In an exemplary embodiment, when the second terminal establishes a connection with the first terminal, the method also includes: the first terminal uses the system default network slice as the current network slice, or the first terminal uses the user preset network slice as the current network slice.
[0015] According to another embodiment of the present invention, a first terminal is provided, comprising: a receiving unit, for receiving a switching instruction sent by the second terminal when the second terminal establishes a connection with the first terminal, wherein the switching instruction includes a target identifier of a target network slice, and the first terminal is used to use the target network slice to provide network data services for the second terminal, and the target network slice is a network slice in a network slice list displayed by the second terminal, and the network slice list includes multiple network slices; a switching unit, for switching a current network slice to the target network slice, wherein the current network slice is a network slice used by the first terminal to provide data network services to the second terminal when the second terminal establishes a connection with the first terminal.
[0016] In an exemplary embodiment, the first terminal also includes: a sending unit, which is used to send the first network slice list of the first terminal to the second terminal after the second terminal establishes a connection with the first terminal and before the first terminal receives a switching instruction sent by the second terminal, so that the second terminal merges the first network slice list and the second network slice list into the network slice list, wherein the second network slice list is the network slice list corresponding to the second account logged in to the second terminal.
[0017] In an exemplary embodiment, the switching unit includes: a sending module for sending a data connection activation request to the wireless data connection virtual device interface, wherein the data connection activation request includes a target identifier of the target network slice; and an establishing module for establishing a connection between the first terminal and the wireless data connection virtual device interface.
[0018] In an exemplary embodiment, the first terminal also includes: a determination unit, used to use the system default network slice as the current network slice when the second terminal establishes a connection with the first terminal, or the first terminal uses the user preset network slice as the current network slice.
[0019] According to another embodiment of the present invention, there is provided a second terminal, comprising: a display unit, for displaying a network slice list when the second terminal establishes a connection with a first terminal, wherein the network slice list includes multiple first network slices, and the first network slices provide network data services for the second terminal; a first receiving unit, for receiving a selection instruction, wherein the selection instruction is used to select a target network slice from the network slice list; and a sending unit, for sending a target identifier of the target network slice to the first terminal, so that the first terminal switches a current network slice to the target network slice, wherein the current network slice is a network slice used by the first terminal to provide the network data service to the second terminal when the second terminal establishes a connection with the first terminal.
[0020] In an exemplary embodiment, the second terminal also includes: a first acquisition unit, used to acquire a first network slice list of the first terminal after the second terminal establishes a connection with the first terminal and before the second terminal displays the network slice list; a second acquisition unit, used to acquire a second network slice list corresponding to a second account logged in to the second terminal; and a merging unit, used to merge the first network slice list and the second network slice list into the network slice list.
[0021] In an exemplary embodiment, the second acquisition unit includes: a sending module, configured to send an acquisition request to a server corresponding to the second account, wherein the acquisition request is used to request the second network slice list;
[0022] A receiving module is used to receive the second network slice list returned by the server.
[0023] In an exemplary embodiment, the second terminal also includes: a second receiving unit, used to receive a login instruction after the second terminal establishes a connection with the first terminal and after the second terminal displays the network slice list, wherein the login instruction is used to log in to a target page, and the target page includes the second network slice; a third receiving unit, used to receive a purchase instruction, wherein the purchase instruction is used to purchase the second network slice.
[0024] In an exemplary embodiment, the second terminal also includes: an integration unit, configured to integrate the second network slice into the network slice list after receiving the purchase instruction and if the purchase of the second network slice is successful.
[0025] In an exemplary embodiment, the display unit includes: a display module, which is used to display the slice package name, slice data rate, slice network delay and slice name of each network slice in the network slice list after the second terminal establishes a connection with the first terminal.
[0026] According to yet another embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any one of the above method embodiments when run.
[0027] According to yet another embodiment of the present invention, there is provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0028] Through the embodiment of the present invention, after the first terminal establishes a connection with the second terminal, the second terminal can display multiple network slices, and can control the modification of the network slice of the first terminal according to the instruction. Thus, the display selection and switching of the network slices in the network sharing process are realized. Therefore, the problem of low efficiency of network slice configuration can be solved, and the configuration efficiency of network slices can be improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 is a hardware structure block diagram of a mobile terminal according to a network slice switching method according to an embodiment of the present invention;
[0030] Figure 2 is a flowchart of a network slice switching method according to an embodiment of the present invention;
[0031] Figure 3 is a software module interaction diagram of a network slice switching method according to an embodiment of the present invention;
[0032] Figure 4 is a schematic diagram of module interaction of a network slice switching method according to an embodiment of the present invention;
[0033] Figure 5 is a schematic diagram of a content data packet format according to a network slice switching method according to an embodiment of the present invention;
[0034] Figure 6 This is a schematic diagram of the control signaling data packet format of the network slice switching method according to an embodiment of the present invention;
[0035] Figure 7 is a flowchart of a network slice switching method according to an embodiment of the present invention;
[0036] Figure 8 is a schematic diagram of the structure of a second terminal according to an embodiment of the present invention;
[0037] Fig. 9 is a schematic structural diagram of a first terminal according to an embodiment of the present invention;. DETAILED DESCRIPTION
[0038] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings and in combination with the embodiments.
[0039] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0040] 5G network slicing technology (Network Slicing). Network slicing has become the most ideal 5G network architecture recognized by operators such as China Mobile, South Korea's KT, SK Telecom, Japan's KDDI and NTT, as well as equipment manufacturers such as Ericsson, Nokia, and Huawei.
[0041] The simplest understanding of 5G network slicing is to cut a physical network into multiple virtual end-to-end networks. Each virtual network, including the devices, access, transmission and core networks within the network, is logically independent. A failure in any virtual network will not affect other virtual networks. Each virtual network has different functional characteristics and is oriented to different needs and services.
[0042] 5G slicing is a future technology trend. However, there are relatively few applications for this technology at present. Once 5G and slicing technology become popular, the development of 5G slicing functions will explode. Usb and WiFi network shared data cards and the main functions of mobile phones can currently share 5G network bandwidth, but do not support the purchase and selection of 5G slices.
[0043] The embodiment of the present invention optimizes and transforms the USB and Wifi hotspot network sharing functions of the terminal, and provides the client with existing 5G network slice presentation, network slice purchase, network slice selection or switching functions. The client can select the slice for the terminal to share the network, improve the network sharing function of the terminal, and provide a complete 5G network sharing slice usage function. The embodiment of the present invention is applicable to data cards and smart mobile terminals. Client users and client applications can select the required 5G slices as needed, providing users with new 5G technology experience.
[0044] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 1 is a hardware structure block diagram of a mobile terminal of a network slice switching method according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0045] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the network slice switching method in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, the above-mentioned network slice switching method is realized. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the mobile terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.
[0046] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0047] In this embodiment, a network slice switching method is provided. Figure 2 is a flow chart of a network slice switching method according to an embodiment of the present invention. Figure 2As shown, the process includes the following steps:
[0048] Step S202: When the second terminal establishes a connection with the first terminal, the second terminal displays a network slice list, wherein the network slice list includes a plurality of first network slices, and the first network slices provide network data services for the second terminal;
[0049] Step S204: the second terminal receives a selection instruction, wherein the selection instruction is used to select a target network slice from the network slice list;
[0050] Step S206, the second terminal sends the target identifier of the target network slice to the first terminal, so that the first terminal switches the current network slice to the target network slice, wherein the current network slice is the network slice used by the first terminal to provide the network data service to the second terminal when the second terminal establishes a connection with the first terminal.
[0051] Among them, after the second terminal establishes a connection with the first terminal and before the second terminal displays the network slice list, the method also includes: the second terminal obtains the first network slice list of the first terminal; the second terminal obtains the second network slice list corresponding to the second account logged in to the second terminal; the second terminal merges the first network slice list and the second network slice list into the network slice list.
[0052] Among them, the second terminal obtains the second network slice list corresponding to the second account logged in to the second terminal, including: the second terminal sends an acquisition request to the server corresponding to the second account, wherein the acquisition request is used to request the second network slice list; the second terminal receives the second network slice list returned by the server.
[0053] Among them, after the second terminal establishes a connection with the first terminal, and after the second terminal displays the network slice list, the method also includes: receiving a login instruction, wherein the login instruction is used to log in to a target page, and the target page includes a second network slice; receiving a purchase instruction, wherein the purchase instruction is used to purchase the second network slice.
[0054] Among them, after receiving the purchase instruction, the method also includes: if the purchase of the second network slice is successful, integrating the second network slice into the network slice list.
[0055] Among them, after the second terminal establishes a connection with the first terminal, the second terminal displays the network slice list, including: the second terminal displays the slice package name, slice data rate, slice network delay and slice name of each network slice in the network slice list.
[0056] Through the above steps, after the first terminal and the second terminal are connected, the second terminal can display multiple network slices, and can control the modification of the network slice of the first terminal according to the instruction. Thus, the display selection and switching of the network slices in the network sharing process are realized. Therefore, the problem of low efficiency of network slice configuration can be solved, and the configuration efficiency of network slices can be improved.
[0057] The following are some specific examples to illustrate the three major application scenarios of 5G: eMBB (Enhanced Mobile Broadband), uRLLC (Ultra-reliable and Low Latency Communication), and mMTC (Massive Machine Type Communication). These are three types of communication services defined based on the different requirements of the network for the number of users, QoS, bandwidth, etc., corresponding to three network slices.
[0058] Network slicing (or simply slicing) can be a network package that provides network services to users.
[0059] Network slicing is not limited to eMBB, uRLLC, and mMTC. Operators can slice the physical network into multiple virtual networks based on different application scenarios. Usually, the network allocates eMBB slices to smart terminal devices such as mobile phones, and can also allocate slices with different QoS to adapt to different application scenarios.
[0060] When a mobile phone registers for a 5G network, it negotiates with the network or is provided with a network slice set NSSAI (Network Slice Selection Assistance Information) by the network to obtain slice-related information, including the DNN (Data Network Name) within the slice.
[0061] The mobile phone contains URSP (UE Route Selection Policy), which contains NSSP (Network Slice Selection Policy). The application in the mobile phone selects slices according to NSSP. The elements of NSSP rules include DNN, Application ID, etc. The application can select elements to match NSSP. The operator can pre-configure URSP for the UE, or the PCF can dynamically issue / update URSP.
[0062] Typically, the terminal system uses DNN elements to select slices, activates the DNN of the corresponding slice, and then uses it after establishing a connection.
[0063] If the terminal wants to purchase slice services, it can select a slice package in the network mall provided by the operator. After the purchase is successful, the slice mall provides the terminal application with DNN parameters. At the same time, the slice mall system sends a slice contract change instruction to the 5G network UDM and a slice URSP change instruction to the PCF. The UDM updates the user slice subscription information to the UDR for storage. The PCF can update the Subscribed S-NSSAIs to the mobile phone: subscribe to S-NSSAI, and update the corresponding URSP rules. After that, the terminal application can use DNN to activate data services and select the data connection to the corresponding slice.
[0064] The slice list obtained during the mobile phone registration process and the subsequent purchase of slices involve multiple user data management (including contract relationship and policy data) modules of the 5G core network. The detailed explanations are as follows:
[0065] UDM: Unified Data Management, responsible for the management of user identification, contract data, authentication data, and user service network element registration management (such as AMF, SMF, etc. that currently provide services to the terminal. For example, when the user switches the AMF to access, UDM will also initiate a deregistration message to the old AMF, requiring the old AMF to delete user-related information).
[0066] AUSF: Authentication Server Function, AUSF is used to receive the request from AMF (access and mobility management function, AMF) to authenticate the UE, request the key from UDM, and then forward the key issued by UDM to AMF for authentication processing.
[0067] PCF: Policy Control function, supports a unified policy framework to manage network behavior, provides policy rules to network entities for implementation, and accesses subscription information of the unified data repository (UDR)
[0068] UDR: Unified Data Repository, used by UDM to store subscription data or read subscription data and PCF to store policy data or read policy data.
[0069] Figure 3 is an optional software module interaction diagram. Figure 3 As shown, the solid line is the user data flow, and the dotted line is the control data flow.
[0070] The 5G device terminal (the first terminal in this application) has a network sharing control module and a slice management module, wherein the network sharing control module is an existing module of the operating system, and the present invention modifies it to add a slice control process; the slice management module is a newly added module, which can query supported slices, report new slices, and select slice activation functions. The slice management module can provide a UI interface for users to select slices used for the network sharing function on the 5G terminal side.
[0071] The network sharing client mobile phone or PC (the second terminal in this application) adds a slice selection front-end application and a slice purchase front-end application. The two can be implemented as one application. When the client mobile phone or PC is connected to the 5G terminal via a WiFi hotspot or USB sharing, it first establishes a WiFi or USB bridge with the 5G terminal mobile phone. The front-end application can send instructions to the 5G terminal to query the available slices obtained by the terminal. The 5G terminal will feedback the slices that can be used for network sharing to the front-end slice selection client. At the same time, the front-end application logs in to the slice mall through the shared default internet connection to query the slices that the client customer has subscribed to. The slice mall system sends a slice contract query instruction to the 5G network UDM. After querying that the user has subscribed to the slice, or after purchasing the slice, it sends a slice change to the PCF. The PCF sends a signaling to the 5G terminal to update the NSSAI and URSP rules. At this time, the 5G terminal has added the slices authorized by the client user, and the merged slices that the 5G terminal can use for sharing are presented to the client user.
[0072] If the network sharing client user feels that the network speed is not enough and needs to purchase a better slice, he can buy a slice in the slice mall at any time. Before purchasing, the client must be able to connect to the Internet through the network sharing of the 5G terminal and connect to the slice mall through the Internet. The slice mall can be provided by the operator, the terminal manufacturer, or a third party (such as Tencent, JD.com, Alipay, etc.)
[0073] After the slice query is completed, or the slice purchase is updated, the front-end application presents the network slice characteristics (slice package name, rate, latency) to the user for selection. After the user selects the slice, the 5G terminal activates the slice and replaces the default internet connection with the activated slice connection.
[0074] The embodiment of the present invention is applicable to 5G data card and 5G smart terminal projects, and can be completely implemented by software. There are two implementation schemes, and the detailed steps are as follows:
[0075] As mentioned below, the 5G terminal or data card that provides network sharing is described as the first terminal device, and the PC or terminal device that is connected using USB sharing or WiFi hotspot sharing is described as the second terminal device.
[0076] The first implementation:
[0077] Step S101: The first terminal device turns on the USB user sharing function or the WiFi hotspot function in the control interface.
[0078] Step S102: The second terminal device is connected to the USB or WLAN of the first terminal device. If it is a WiFi hotspot, this step is postponed until the user selects the slicing step.
[0079] Step S103: The network sharing module of the first terminal device enables the kernel IP forwarding function.
[0080] Step S104: The network sharing module of the first terminal device starts the internal LAN DNS domain name resolution service.
[0081] Step S105: The network sharing module of the first terminal device enables the internal LAN DHCP dynamic address allocation function.
[0082] Step S106: The network sharing module of the first terminal device requests a slice data connection from the slice management module and enters a waiting mode.
[0083] Step S107: The slice management module of the first terminal device chooses to activate the system default slice connection or activates the slice connection specified by the user.
[0084] Step S108: After the slice of the first terminal device is connected, the slice management module obtains the name of the wireless data connection virtual device interface of the slice connection and reports it to the network sharing module.
[0085] Step S109: the network sharing module of the first terminal device establishes routing bridge connection and data packet intranet and extranet address conversion between the USB or WLAN internal device interface and the wireless data connection virtual device interface.
[0086] Step S110: The slice management application front end of the second terminal device sends a slice query command to the slice management module of the first terminal device through the USB, WLAN channel or the Internet channel. If it is an Internet channel, an external Internet server needs to be established. The server receives the second terminal device instruction through the Internet and forwards the instruction to the slice management module of the first terminal device through the Internet.
[0087] Step S111: The slice management module of the first terminal device receives the slice query instruction of the second terminal device, queries the modem for the slice list information allowed by the network when the terminal is registered or the latest slice list information updated by the network, and the first terminal device reports the obtained slice list to the application front end of the second terminal device. Network slicing is used to provide network data services
[0088] Step S112: The slice management application front end of the second terminal device logs in to the slice mall server via the internet. The login account is the customer account of the second terminal. The slice mall is queried for the slices that the customer has purchased. The slice mall returns the slice list information.
[0089] Step S113: The slice management application front end of the second terminal device integrates the slice list obtained in the above two steps and presents it to the user for selection. The slice information presented includes but is not limited to the slice package name, slice data rate, slice network delay, DNN, etc.
[0090] Step S114: The slice management application front end of the second terminal device integrates the slice list obtained in the above two steps and presents it to the user for selection. The slice information presented includes but is not limited to the slice package name, slice data rate, slice network delay, DNN, etc.
[0091] Step S115: The user selects a slice to be used in the slice management application front end of the second terminal device. If the slice is a network slice that has been obtained by the first device terminal, the matching elements of the slice (such as DNN) are sent to the slice management module of the first terminal device. The slice management module of the first terminal initiates a data connection activation request for the slice. After the data connection is successfully established, after obtaining the name of the wireless data connection virtual device interface, the network sharing module is notified to re-establish the routing bridge between the USB or WLAN internal device interface and the new wireless data connection virtual device interface and the intranet and extranet address conversion of the data packet. Slice selection is completed.
[0092] If the slice to be selected by the client user is related to the client user, is not already available on the second terminal device, and is not purchased in advance by the user, and needs to be purchased from the slice mall, proceed to the next step.
[0093] Step S116: The slice management application front end of the second terminal device queries the slice management module of the first device to obtain the IMEI / IMSI device identifier, SIM card user identifier, operator information, etc. of the first device terminal.
[0094] Step S117: The slice management application front end of the second terminal device sends the first terminal information obtained in the previous step and the selected slice to the slice mall, requesting a slice package change for the first terminal; if the slice package purchased by the user does not meet the requirements, the user logs in to the slice mall, pays for and selects a slice package, and requests a slice package change for the first terminal.
[0095] Step S118: The slice mall sends a slice signing and change instruction to the 5G network UDM of the first terminal device through the slice orchestration and management system. The UDM completes the slice change registration to the UDR and sends a slice change instruction to the PCF. The PCF sends a signaling to the first terminal device to update the slice list NSSAI and URSP slice matching rules.
[0096] Step S119: The slice management module of the first terminal device receives the NSSAI and URSP update events, and reports the updated slice set to the slice management application front end of the second terminal device.
[0097] Step S120: The slice management application front end of the second terminal device receives a slice set update message. If the slice selected by the user is in this slice set, it can be confirmed that the slice package is successfully selected through the slice mall, and the matching elements of the slice (such as DNN) are sent to the slice management module of the first terminal device.
[0098] Step S121: The slice management module of the first terminal initiates a data connection activation request for the slice. After the data connection is successfully established, after obtaining the name of the wireless data connection virtual device interface, the network sharing module is notified to re-establish the routing bridge between the USB or WLAN internal device interface and the new wireless data connection virtual device interface and the intranet and extranet address conversion of the data packet. The slice selection is completed.
[0099] The second implementation scheme: The scheme without modifying the original system network sharing module
[0100] Step S201: The first terminal device turns on the USB user sharing function or the WiFi hotspot function in the control interface.
[0101] Step S202: The second terminal device is connected to the USB or WLAN of the first terminal device. If it is a WiFi hotspot, this step is postponed until the user selects the slicing step.
[0102] Step S203: The network sharing module of the first terminal device turns on the kernel IP forwarding function.
[0103] Step S204: The network sharing module of the first terminal device starts the internal LAN DNS domain name resolution service.
[0104] Step S205: The network sharing module of the first terminal device enables the internal LAN DHCP dynamic address allocation function.
[0105] Step S206: The network sharing module of the first terminal device requests a slice data connection from the slice management module and enters a waiting mode.
[0106] Step S207: The slice management module of the first terminal device chooses to activate the system default slice connection or activates the slice connection specified by the user.
[0107] Step S208: The slice management module of the first terminal device creates a virtual I / O interface device and reports the device interface name (e.g. Slice0) to the network sharing module. Figure 4 shown.
[0108] Step S209: the network sharing module of the first terminal device establishes routing bridge connection and intranet and extranet address conversion of data packets between the USB or WLAN internal device interface and the virtual I / O interface device (Slice0).
[0109] At this time, the slice management module of the first terminal device and the slice management front-end application of the second terminal device transmit signaling through the connection between Slice0 and USB (Rndis0) / Wlan, but this pipeline also carries data transmission. A local area network is built between the first terminal device and the second terminal device, so what is transmitted between them is Ethernet data packets, and the content is IP data packets.
[0110] Then it is necessary to define the format of the signaling data packet to distinguish the user content data packet. The difference between the control signaling data packet and the user content data packet format can be as follows: Figure 5 , 6 shown. Figure 5 is the content packet format, Figure 6 This is the control signaling data packet format.
[0111] Step S210: This step can be performed or not performed for the time being: the slice management module of the first terminal device chooses to activate the system default slice connection or activates the slice connection specified by the user, obtains the wireless data connection virtual device interface (for example, Rmnet0), and the slice management module builds a data transmission pipeline between Slice0 and Rmnet0. If this step is executed, the second terminal device now has the ability to access the internet.
[0112] Step S211: The slice management application front end of the second terminal device sends a slice query command to the slice management module of the first terminal device through the USB, WLAN channel or the Internet channel. If the second terminal device has Internet capabilities in the previous step, the Internet can be used to send instructions, and the data packet format described in step S209 can be used to send instructions from the USB or WLAN device port. An external Internet server can be established, and the server receives the second terminal device instruction through the Internet, and forwards the instruction to the slice management module of the first terminal device through the Internet.
[0113] Step S212: The slice management module of the first terminal device receives the slice query instruction of the second terminal device, queries the modem for the slice list information allowed by the network when the terminal is registered or the latest slice list information updated by the network, and the first terminal device reports the obtained slice list to the application front end of the second terminal device.
[0114] Step S213: The slice management application front end of the second terminal device logs in to the slice mall server via the internet. The login account is the customer account of the second terminal. The slice mall is queried for the slices that the customer has purchased. The slice mall returns the slice list information.
[0115] Step S214: The slice management application front end of the second terminal device integrates the slice list obtained in the above two steps and presents it to the user for selection. The slice information presented includes but is not limited to the slice package name, slice data rate, slice network delay, DNN, etc.
[0116] Step S215: The slice management application front end of the second terminal device integrates the slice list obtained in the above two steps and presents it to the user for selection. The slice information presented includes but is not limited to the slice package name, slice data rate, slice network delay, DNN, etc.
[0117] Step S216: The user selects a slice to be used in the slice management application front end of the second terminal device. If the slice is a network slice that has been obtained by the first device terminal, the matching elements of the slice (such as DNN) are sent to the slice management module of the first terminal device. The slice management module of the first terminal initiates a data connection activation request for the slice. After the data connection is successfully established, after obtaining the name of the wireless data connection virtual device interface, for example (Rmnet_n), the slice management module rebuilds the data transmission pipeline between Slice0 and Rmnet_n, and the slice selection is completed.
[0118] If the slice to be selected by the client user is related to the client user, is not already available on the second terminal device, and is not purchased in advance by the user, and needs to be purchased from the slice mall, proceed to the next step.
[0119] Step S217: The slice management application front end of the second terminal device queries the slice management module of the first device to obtain the IMEI / IMSI device identifier, SIM card user identifier, operator information, etc. of the first device terminal.
[0120] Step S218: The slice management application front end of the second terminal device sends the first terminal information obtained in the previous step and the selected slice to the slice mall, requesting a change in the slice package of the first terminal; if the slice package purchased by the user does not meet the requirements, the user logs in to the slice mall, pays for and selects a slice package, and requests a change in the slice package of the first terminal.
[0121] Step S219: The slice mall sends a slice signing and change instruction to the 5G network UDM of the first terminal device through the slice orchestration and management system. The UDM completes the slice change registration to the UDR and sends a slice change instruction to the PCF. The PCF sends a signaling to the first terminal device to update the slice list NSSAI and the URSP slice matching rules.
[0122] Step S220: The slice management module of the first terminal device receives the NSSAI and URSP update events, and reports the updated slice set to the slice management application front end of the second terminal device.
[0123] Step S221: The slice management application front end of the second terminal device receives a slice set update message. If the slice selected by the user is in this slice set, it can be confirmed that the slice package is successfully selected through the slice mall, and the matching elements of the slice (such as DNN) are sent to the slice management module of the first terminal device.
[0124] Step S222: The slice management module of the first terminal initiates a data connection activation request for the slice. After the data connection is successfully established, after obtaining the name of the wireless data connection virtual device interface, for example (Rmnet_n), the slice management module rebuilds the data transmission pipeline between Slice0 and Rmnet_n, and the slice selection is completed.
[0125] For WiFi hotspots, there may be multiple clients connected to the WiFi hotspot. If a client needs to change the slice, it needs to have the identity of an administrator and initiate an identity authentication request to the slice management module. After the authentication is passed, the hotspot slice can be changed. It can be set whether to allow other users to connect to the slice. If not, other clients cannot use the slice to access the Internet. Because USB sharing is the only client, there is no need to consider identity authentication.
[0126] The foreground interactive interface control part of the embodiment of the present invention is in the second terminal. The interface presents available slices to the user. The presented slice information includes but is not limited to slice package name, slice data rate, slice network delay, DNN, etc.
[0127] The user can choose to use one of the slices through this interface. This interface provides a slice store presentation, where you can access a web page, and the user can purchase slices in this interface.
[0128] Optionally, a 5G terminal (first terminal) may provide an interface for configuring the slice management module, which may configure a list of slices allowed to be shared and a slice to be used by default.
[0129] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0130] This embodiment also provides a network slice switching method. Figure 7 is a flow chart of a network slice switching method according to an embodiment of the present invention. Figure 7 As shown, the process includes the following steps:
[0131] S702: When the second terminal establishes a connection with the first terminal, the first terminal receives a switching instruction sent by the second terminal, wherein the switching instruction includes a target identifier of a target network slice, and the first terminal is used to use the target network slice to provide a network data service for the second terminal, and the target network slice is a network slice in a network slice list displayed by the second terminal, and the network slice list includes multiple network slices;
[0132] S704, the first terminal switches the current network slice to the target network slice, wherein the current network slice is the network slice used by the first terminal to provide data network services to the second terminal when the second terminal establishes a connection with the first terminal.
[0133] The specific content of this network slice switching method can be referred to the above content and will not be repeated here.
[0134] In this embodiment, a second terminal is also provided, and the second terminal is used to implement the above-mentioned embodiment and preferred implementation mode, and the descriptions have been made no further. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware is also possible and conceived.
[0135] Figure 8 is a structural block diagram of a second terminal according to an embodiment of the present invention, such as Figure 8 As shown, the device comprises:
[0136] A display unit 802 is configured to display a network slice list when the second terminal is connected to the first terminal, wherein the network slice list includes a plurality of first network slices, and the first network slices provide network data services for the second terminal;
[0137] A first receiving unit 804 is configured to receive a selection instruction, wherein the selection instruction is used to select a target network slice from the network slice list;
[0138] The sending unit 806 is used to send the target identifier of the target network slice to the first terminal, so that the first terminal switches the current network slice to the target network slice, wherein the current network slice is the network slice used by the first terminal to provide the network data service to the second terminal when the second terminal establishes a connection with the first terminal.
[0139] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.
[0140] In this embodiment, a first terminal is also provided, and the first terminal is used to implement the above-mentioned embodiment and preferred implementation mode, and the descriptions have been made no further. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware is also possible and conceivable.
[0141] Fig. 9 is a structural block diagram of a first terminal according to an embodiment of the present invention, such as Fig. 9 As shown, the device comprises:
[0142] The receiving unit 902 is configured to receive a switching instruction sent by the second terminal when the second terminal establishes a connection with the first terminal, wherein the switching instruction includes a target identifier of a target network slice, and the first terminal is configured to use the target network slice to provide a network data service for the second terminal, and the target network slice is a network slice in a network slice list displayed by the second terminal, and the network slice list includes multiple network slices;
[0143] The switching unit 904 is used to switch the current network slice to the target network slice, wherein the current network slice is the network slice used by the first terminal to provide data network services to the second terminal when the second terminal establishes a connection with the first terminal.
[0144] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.
[0145] An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0146] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.
[0147] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0148] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0149] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.
[0150] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0151] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A network slice switching method, characterized in that: include: When the second terminal establishes a connection with the first terminal, the second terminal displays a network slice list, wherein the network slice list includes a plurality of first network slices, and the first network slices provide network data services for the second terminal; The second terminal receives a selection instruction, wherein the selection instruction is used to select a target network slice from the network slice list; The second terminal sends the target identifier of the target network slice to the first terminal, so that the first terminal switches the current network slice to the target network slice, wherein the current network slice is the network slice used by the first terminal to provide the network data service to the second terminal when the second terminal establishes a connection with the first terminal.
2. The method according to claim 1, characterized in that After the second terminal establishes a connection with the first terminal and before the second terminal displays the network slice list, the method further includes: The second terminal obtains a first network slice list of the first terminal; The second terminal obtains, by the second network slice list corresponding to the second account logged in to the second terminal; The second terminal merges the first network slice list and the second network slice list into the network slice list.
3. The method according to claim 2, characterized in that The second terminal acquiring the second network slice list corresponding to the second account logged in to the second terminal includes: The second terminal sends an acquisition request to a server corresponding to the second account, wherein the acquisition request is used to request the second network slice list; The second terminal receives the second network slice list returned by the server.
4. The method according to claim 1, characterized in that: After the second terminal establishes a connection with the first terminal, and after the second terminal displays the network slice list, the method further includes: Receiving a login instruction, wherein the login instruction is used to log in to a target page, and the target page includes a second network slice; Receive a purchase instruction, wherein the purchase instruction is used to purchase the second network slice.
5. The method according to claim 4, characterized in that After receiving the purchase instruction, the method further includes: In case the purchase of the second network slice is successful, the second network slice is integrated into the network slice list.
6. The method according to any one of claims 1 to 5, characterized in that: After the second terminal establishes a connection with the first terminal, the second terminal displays the network slice list including: The second terminal displays the slice package name, slice data rate, slice network delay and slice name of each network slice in the network slice list.
7. A network slice switching method, characterized in that: include: When the second terminal establishes a connection with the first terminal, the first terminal receives a switching instruction sent by the second terminal, wherein the switching instruction includes a target identifier of a target network slice, and the first terminal is used to use the target network slice to provide a network data service for the second terminal, and the target network slice is a network slice in a network slice list displayed by the second terminal, and the network slice list includes multiple network slices; The first terminal switches the current network slice to the target network slice, wherein the current network slice is a network slice used by the first terminal to provide data network services to the second terminal when the second terminal establishes a connection with the first terminal.
8. The method according to claim 7, characterized in that After the second terminal establishes a connection with the first terminal and before the first terminal receives a switching instruction sent by the second terminal, the method further includes: The first terminal sends the first network slice list of the first terminal to the second terminal, so that the second terminal merges the first network slice list and the second network slice list into the network slice list, wherein the second network slice list is the network slice list corresponding to the second account logged in to the second terminal.
9. The method according to claim 8, characterized in that The first terminal switching the current network slice to the target network slice includes: The first terminal sends a data connection activation request to the wireless data connection virtual device interface, where the data connection activation request includes a target identifier of the target network slice; The first terminal establishes a connection between the first terminal and the wireless data connection virtual device interface.
10. The method according to claim 7, characterized in that When the second terminal establishes a connection with the first terminal, the method further includes: The first terminal uses the system default network slice as the current network slice, or the first terminal uses the user preset network slice as the current network slice.
11. A second terminal, characterized in that: include: A display unit, configured to display a network slice list when the second terminal establishes a connection with the first terminal, wherein the network slice list includes a plurality of first network slices, and the first network slices provide network data services for the second terminal; A first receiving unit, configured to receive a selection instruction, wherein the selection instruction is used to select a target network slice from the network slice list; A sending unit is used to send the target identifier of the target network slice to the first terminal, so that the first terminal switches the current network slice to the target network slice, wherein the current network slice is the network slice used by the first terminal to provide the network data service to the second terminal when the second terminal establishes a connection with the first terminal.
12. A first terminal, characterized in that: include: A receiving unit, configured to receive a switching instruction sent by the second terminal when the second terminal establishes a connection with the first terminal, wherein the switching instruction includes a target identifier of a target network slice, and the first terminal is configured to use the target network slice to provide a network data service for the second terminal, and the target network slice is a network slice in a network slice list displayed by the second terminal, and the network slice list includes multiple network slices; A switching unit, used to switch the current network slice to the target network slice, wherein the current network slice is a network slice used by the first terminal to provide data network services to the second terminal when the second terminal establishes a connection with the first terminal.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program is configured to execute the method described in any one of claims 1 to 6, or execute the method described in any one of claims 7 to 10 when running.
14. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to execute the method described in any one of claims 1 to 6, or to execute the method described in any one of claims 7 to 10.
