Network Slice Allocation Method, Terminal and Storage Medium
By monitoring the application type and selecting pre-matched network slices, the problem of improper allocation of application network slices in terminal devices is solved, dynamic allocation according to needs is achieved, and network performance and resource utilization efficiency are improved.
Patent Information
- Application Number
- CN202010599503.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-28
- Publication Date
- 2025-07-25
- Estimated Expiration
- 2040-06-28
AI Technical Summary
In the prior art, terminal devices cannot effectively allocate network slices according to different needs of applications, resulting in the inability to meet the network performance needs of various applications.
By monitoring the running status of the application, determining the application type it belongs to, and selecting the appropriate slice from the pre-matched network slices to allocate it to the application, the terminal device's built-in processor and memory execute corresponding instructions to implement this process.
It realizes dynamic allocation of network slices according to the needs of the application, meets the network performance needs of different applications, and improves the utilization efficiency of network resources and user experience.
Smart Images

Figure CN113852995B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of communications, and particularly to a method for allocating network slices, a terminal, and a storage medium. Background Art
[0002] Network slicing is a way of networking on demand, which allows an operator to separate multiple virtual end-to-end networks on a unified infrastructure. Each network slice is logically isolated from the radio access network to the bearer network and then to the core network to adapt to various types of applications. Among them, each network slice includes at least a radio sub-slice, a bearer sub-slice, and a core network sub-slice.
[0003] If different slices need to be allocated to different applications, it is necessary to pre-configure URSP (UERoute Selection Policy) in the terminal or obtain URSP from a network-side device. Since URSP contains NSSP (Network Slice Selection Policy), and NSSP contains rule elements such as DNN (Data Network Name) and / or Application ID (Application Identity card), when an application in the terminal initiates a data connection through DNN and / or Application ID, etc., the slices can be matched through the rule elements in NSSP, so as to allocate the required network slices for different applications. However, even if URSP is configured in the terminal, most current applications do not initiate data connections through DNN and / or Application ID, etc., and thus cannot allocate the required network slices for different applications. Summary of the Invention
[0004] The purpose of the embodiments of the present application is to provide a method for allocating network slices, a terminal, and a storage medium, which can allocate network slices according to the requirements of an application.
[0005] To achieve the above purpose, the embodiments of the present application provide a method for allocating network slices, including: if an application in a running state is monitored, determining the application type to which the application belongs; selecting at least one network slice from the network slices corresponding to the application type and allocating it to the application; where the network slices corresponding to the application type refer to the network slices pre-matched for the application type.
[0006] To achieve the above object, an embodiment of the present application further provides a terminal, including: at least one processor; and a memory communicatively connected to the at least one processor; wherein, the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the above-mentioned network slice allocation method.
[0007] To achieve the above object, an embodiment of the present application further provides a computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the above-mentioned network slice allocation method is implemented.
[0008] Compared with the prior art, in an embodiment of the present application, if an application program in a running state is monitored, the application type to which the application program belongs is determined; at least one network slice is selected from the network slices corresponding to the application type and allocated to the application program; wherein, the network slices corresponding to the application type refer to the network slices pre-matched for the application type. Since different application types of application programs have different network performance requirements for network slices, the network slices pre-matched for the application type are the network slices that meet the requirements of the application program. If an application program in a running state is monitored, first determine the application type of the application program, and then select at least one network slice from the network slices corresponding to the application type and allocate it to the application program, so that the network slice allocated to the application program is the network slice that meets its requirements, that is, the allocation of network slices according to the requirements of the application program is realized. Description of the Drawings
[0009] Figure 1 is a flowchart of the network slice allocation method in the first embodiment of the present application;
[0010] Figure 2 is a flowchart of pre-matching network slices for application types in the first embodiment of the present application;
[0011] Figure 3 is a flowchart of the network slice allocation method in the second embodiment of the present application;
[0012] Figure 4 is a flowchart of the network slice allocation method in the third embodiment of the present application;
[0013] Figure 5 is a flowchart of the network slice allocation method in the fourth embodiment of the present application;
[0014] Figure 6 is a schematic structural diagram of the terminal in the fifth embodiment of the present application. Detailed Embodiments
[0015] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the following will elaborate on each embodiment of this application in conjunction with the accompanying drawings. However, those of ordinary skill in the art can understand that in each embodiment of this application, many technical details are provided to help readers better understand this application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical solutions claimed in this application can still be implemented. The division of the following embodiments is for convenience of description and should not constitute any limitation on the specific implementation of this application. The various embodiments can be combined and cross-referenced with each other on the premise of not being contradictory.
[0016] The first embodiment of this application relates to a method for allocating network slices, which is applied to a terminal, such as a mobile phone, etc.
[0017] The specific process of the method for allocating network slices in this embodiment is as Figure 1 shown and includes:
[0018] Step 101: If an application program in the running state is detected, determine the application type to which the application program belongs.
[0019] Step 102: Select at least one network slice from the network slices corresponding to the application type and allocate it to the application program; where the network slices corresponding to the application type refer to the network slices pre-matched for the application type.
[0020] Specifically, the terminal classifies each application program according to the main service type of the application program to obtain each application type. The application types include, but are not limited to, the following categories: video, communication, payment, etc. Since the application types of application programs are different and the requirements for the network performance of network slices are different, the terminal can pre-match network slices for each application type according to the requirements of the application programs in the application type and store the corresponding relationship between the application type and the network slice. In this way, the network slices pre-matched for the application type can be known by querying the corresponding relationship. The corresponding relationship between the application type and the network slice can be stored in the form of a table, etc., and this embodiment does not make specific limitations.
[0021] The terminal can monitor each application in real time or monitor each application according to a preset period. The preset period can be set according to actual needs and is not specifically limited in this embodiment. If the terminal detects that there is an application in a running state, it determines the application type to which the running application belongs, and then by querying the corresponding relationship between the application type and the network slice, it can determine the network slice corresponding to the application and select at least one network slice from them to allocate to the application. For example: If the terminal detects that application A and application B are in a running state, the application type to which application A belongs is a video service, and the application type to which application B belongs is a communication service. The network slices corresponding to the video service are network slice 1, network slice 2, and network slice 3, and the network slices corresponding to the communication service are network slice 4 and network slice 5. Then, at least one network slice is selected from network slice 1, network slice 2, and network slice 3 and allocated to application A, and at least one network slice is selected from network slice 4 and network slice 5 and allocated to application B.
[0022] In an example, the specific flowchart for pre - allocating network slices for application types is as Figure 2 shown, including:
[0023] Step 1021, obtain a number of network slices through the built - in first non - data card and activate the network slices.
[0024] Specifically, the terminal manufacturer subscribes to the network slice service from the network operator in advance. When the terminal wants to use the network slice service provided by the network, the terminal needs to register in the network through the non-data card as follows: The terminal sends a registration request message, Registration Request, to the network side through the non-data card, and the registration request message carries Request-NSSAI (Request Network Slice Selection Assistance Information). After receiving the registration request message, the network side queries the subscription information of the terminal manufacturer and verifies which NSSAIs (Network Slice Selection Assistance Information) in the Request-NSSAI are allowed according to the Subscribed S-NSSAIs (Subscribed Single Network Slice Selection Assistance Information) included in the subscription message, and brings them to the terminal through the Allowed NSSAI (Allowed Network Slice Selection Assistance Information) in the registration acceptance message, Registration Accept. The terminal determines the network slices allowed by the network for the non-data card of the terminal according to the Allowed NSSAI; where NSSAI is a set of S-NSSAIs (Single Network Slice Selection Assistance Information), and one S-NSSAI identifies one network slice. In this embodiment, the terminal is registered in the network through the first non-data card built in the terminal, so that the network slices allowed by the network for the first non-data card of the terminal can be determined according to the Allowed NSSAI, that is, several network slices are obtained through the first non-data card, and the network slices carry DNN parameters. The network slices establish data connections in advance according to the DNN parameters to make the network slices in an active state. When the application needs to use the network slice, a data connection can be established without initiating a data connection.
[0025] Step 1022: Classify each application program according to the main service type of each application program.
[0026] Step 1023: Match several network slices with each application type according to the requirements of each application type for the network performance of the network slice.
[0027] In one example, the terminal classifies each application according to the main service type of the application to obtain each application type. The application types include, but are not limited to, the following categories: video, communication, payment, etc. For example, application A can execute service a and service b. Service a is a video service and service b is a communication service. However, service a is the main service of application A, so the application type of application A is video. Since the application types of applications are different and the requirements for the network performance of network slices are different, the terminal can match several network slices with each application type according to the requirements of the applications in the application type, and store the corresponding relationship between the application type and several network slices. For example, if the requirement of the video application is high bandwidth, then match the video application with network slices 1, 2, and 3 with high-speed service quality. If the requirement of the communication application is low bandwidth, then match the communication application with network slices 4 and 5 with low-speed service quality, and store the corresponding relationship between video and network slices 1, 2, 3, and the corresponding relationship between communication and network slices 4, 5. In another example, the terminal can classify the applications according to the application types preset by the user and the requirements of each application type for the applications, and then match several network slices with each application type in advance according to the requirements of the applications in the application type for the network performance of the network slices, and store the corresponding relationship between the application type and the network slices.
[0028] The terminal activates the network slices in advance so that the network slices matched to each application type are all in the active state. When the application needs to use the network slice, it can establish a data connection without initiating a data connection.
[0029] In one example, select at least one network slice from the network slices corresponding to the application type and allocate it to the application, including: if the application is in the foreground running state, select L network slices with higher network performance from the K network slices corresponding to the application type, and allocate the L network slices to the application; or, if the application is in the background running state and no other running applications belonging to the same application type as the application are detected, select L network slices with higher network performance from the K network slices corresponding to the application type, and allocate the L network slices to the application; where L and K are both integers greater than zero, and L is less than or equal to K.
[0030] Specifically, network performance refers to the quality of service of network slices, such as: high-rate quality of service, medium-rate quality of service, low-rate quality of service, low-latency and high-reliability quality of service, etc. Among them, network slices with high-rate quality of service and low-latency and high-reliability quality of service can be considered as network slices with relatively high network performance. For example: the network slices corresponding to the application type are 3, namely the network slices with high-rate quality of service, medium-rate quality of service, and low-latency and high-reliability quality of service; if application A is in the foreground running state, it can select 2 network slices with relatively high network performance from the 3 network slices, that is, allocate the network slices with high-rate quality of service and low-latency and high-reliability quality of service to application A. If application A is in the background running state and no other running applications of the same application type as application A are detected, it can select 2 network slices with relatively high network performance from the 3 network slices, that is, allocate the network slices with high-rate quality of service and low-latency and high-reliability quality of service to application A. When the application is in the foreground running state, and when the application is in the background running state and no other running applications of the same application type as the application are detected, the application can arbitrarily select from the network slices corresponding to the application type, and selecting network slices with relatively high network performance and allocating them to the application can make the application run better.
[0031] If the application switches from the foreground running state to the background running state and no other running applications of the same application type as the application are detected, select L network slices with relatively high network performance from the K network slices corresponding to the application type, and allocate the L network slices to the application; if the application switches from the background running state to the foreground running state, select L network slices with relatively high network performance from the K network slices corresponding to the application type, and allocate the L network slices to the application.
[0032] In one example, if the application is in the foreground running state, arbitrarily select L network slices from the K network slices corresponding to the application type and allocate them to the application, where L is less than or equal to K. If the application is in the background running state and no other running applications of the same application type as the application are detected, arbitrarily select L network slices from the K network slices corresponding to the application type and allocate them to the application, where L is less than or equal to K.
[0033] In one example, if the application is in the foreground running state and other applications of the same application type in the background running state are detected, select L network slices with higher network performance from the K network slices corresponding to the application type, and allocate the L network slices to the application, where L is less than K. Specifically, the application in the foreground running state selects some network slices with higher network performance from the network slices corresponding to the application type, and the other applications in the background running state can use the remaining network slices. By this method, the allocation of network slices can be made more reasonable, so that the other applications of the same application type in the background running state also have available network slices.
[0034] In one example, if the application is in the foreground running state and other applications of the same application type in the background running state are detected, select L network slices from the K network slices corresponding to the application type, and allocate the L network slices to the application, where L is less than K. Specifically, the application in the foreground running state selects some network slices from the network slices corresponding to the application type, and the other applications in the background running state can use the remaining network slices. By this method, the allocation of network slices can be made more reasonable, so that the other applications of the same application type in the background running state also have available network slices.
[0035] In one example, after selecting L network slices with higher network performance from the K network slices corresponding to the application type and allocating the L network slices to the application when the application is in the foreground running state and other applications of the same application type in the background running state are detected, it further includes: selecting at least one network slice from the remaining (K - L) network slices and allocating it to the other applications. By this method, at least one network slice is selected from the remaining network slices and allocated to the other applications in the background running state, so that the other applications in the background running state also have available network slices.
[0036] In one example, selecting at least one network slice from the remaining (K - L) network slices and allocating it to the other applications includes: if there are multiple other applications, according to the priorities of the other applications and the network performance of the remaining (K - L) network slices, selecting at least one network slice from the remaining (K - L) network slices and allocating it to the other applications; where the higher the priority of the other application, the higher the network performance of the allocated network slice.
[0037] Specifically, the terminal pre-stores the correspondence between application programs and priorities under each application type. By querying the correspondence, the priorities of the application programs can be known, and the higher the priority of an application program, the higher the requirement for the network performance of the network slice. Therefore, the terminal can select at least one network slice from the remaining (K - L) network slices and allocate it to other application programs according to the priorities of the application programs running in the background. Moreover, the higher the priority of other application programs, the higher the network performance of the allocated network slice. When the number of network slices of other application programs running in the background is greater than (K - L), the same network slice can be allocated to application programs with lower priorities. For example: If there are 3 other application programs running in the background, namely B, C, and D, and the priority order is B > C > D, if the number of remaining network slices is 3, and network slices 1 and 2 are network slices with medium-rate quality of service, and network slice 3 is a network slice with low-rate quality of service, then network slices 1 and 2 are allocated to application programs B and C, and network slice 3 is allocated to application program D. If the number of remaining network slices is 2, and network slices 1 and 2 are a network slice with medium-rate quality of service and a network slice with low-rate quality of service respectively, then network slice 1 is allocated to application program B, and network slice 2 is allocated to application programs C and D. Since the priorities of application programs are different, the requirements for the network performance of network slices are also different. Therefore, allocating the remaining network slices according to the priorities of application programs can allocate the remaining network slices more reasonably.
[0038] In an example, if an application program is running in the background and no other running application programs of the same application type as the application program are detected, any L network slices are selected from the K network slices corresponding to the application type and allocated to the application program, where L is less than or equal to K.
[0039] In an example, if an application program is running in the background and other application programs of the same application type as the application program running in the background are detected, at least one network slice is selected from the K network slices corresponding to the application type and allocated to each application program running in the background.
[0040] In an example, if an application program is running in the background and other application programs of the same application type as the application program running in the background are detected, at least one network slice is selected from the K network slices corresponding to the application type and allocated to each application program running in the background according to the priorities of each application program running in the background and the network performance of the network slices corresponding to the application type.
[0041] In this embodiment, if an application program in a running state is detected, determine the application type to which the application program belongs; select at least one network slice from the network slices corresponding to the application type and allocate it to the application program; wherein, the network slices corresponding to the application type refer to the network slices pre-allocated for the application type. Since different application types of application programs have different network performance requirements for network slices, the network slices pre-allocated for the application type are the network slices that meet the requirements of the application program. If an application program in a running state is detected, first determine the application type of the application program, and then select at least one network slice from the network slices corresponding to the application type and allocate it to the application program, so that the network slice allocated to the application program is the network slice that meets its requirements, that is, the allocation of network slices is realized according to the requirements of the application program.
[0042] The second embodiment of this application relates to a method for allocating network slices. The second embodiment is substantially the same as the first embodiment, and the main difference is that: after selecting at least one network slice and allocating it to the application program, it further includes: if it is detected that the network performance requirements of the application program for the network slice change, determine the reason for the change in the network performance requirements, and adjust the network slice allocated to the application program according to the reason.
[0043] The specific flowchart of the method for allocating network slices in this embodiment is as Figure 3 shown, and includes:
[0044] Step 201, if an application program in a running state is detected, determine the application type to which the application program belongs.
[0045] Step 202, select at least one network slice from the network slices corresponding to the application type and allocate it to the application program; wherein, the network slices corresponding to the application type refer to the network slices pre-matched for the application type.
[0046] Among them, steps 201-202 are similar to steps 101-102 in the first embodiment and will not be elaborated here.
[0047] Step 203, if it is detected that the network performance requirements of the application program for the network slice change, determine the reason for the change in the network performance requirements, and adjust the network slice allocated to the application program according to the reason.
[0048] Specifically, during the running process of an application, changes will occur, such as changes in the running state, changes in the executed services, changes in the number of executed services, etc. These changes will cause the network performance requirements of the application for network slices to change. When it is detected that the network performance requirements of the application for network slices change, first determine the reason for the change in the network performance requirements, and then adjust the network slices allocated to the network program according to the reason. Through such a method, the network slices allocated to the application can be adjusted according to the reason for the change in the network performance requirements of the application for network slices, making the allocation more reasonable.
[0049] In one example, adjusting the network slices allocated to the application according to the reason includes: if the reason is that the application type to which the current service of the application belongs has changed, select at least one network slice from the network slices corresponding to the changed application type and allocate it to the application; if the reason is that the number of socket requests and / or download threads of the application decreases, reduce the network slices allocated to the application; if the reason is that the application is frozen, cancel the network slices allocated to the application.
[0050] Specifically, an application may be able to execute multiple services. The terminal can determine the current service of the application by monitoring the data protocol used by the application. For example: if the data protocol used by the application is the UDP / RTP / RTSP protocol, it is determined that the current service of the application is a video service; if the data protocol used by the application is the SSL protocol, it is determined that the current service of the application is a payment service; if the data protocol used by the application is the Http protocol, it is determined that the current service of the application is a communication service. If the application type to which the current service of the application belongs changes, it means that the requirements of the application for network slices have changed. Select at least one network slice from the network slices corresponding to the changed application type and allocate it to the application. The specific process of allocating the selected at least one network slice to the application is similar to step 102 in the first embodiment and will not be elaborated here. If the number of socket requests and / or download threads of the application decreases, it means that the requirements of the application for network slices decrease at this time, and then reduce the network slices allocated to the application. For example: if the number of socket requests and / or download threads always remains single, and the number of network slices already allocated to application A is network slice 1 and network slice 2, where network slice 1 is a network slice with high-rate quality of service and network slice 2 is a network slice with medium-rate quality of service, then reduce the network slices allocated to the application and only leave network slice 1 with higher network performance for application A. If the application is frozen, it means that the application does not need to perform data transmission, and then cancel the network slices already allocated to the application.
[0051] In this embodiment, the terminal can adjust the network slice allocated to the application according to the reason for the change in the requirements of the application, making the allocation more reasonable.
[0052] The third embodiment of this application relates to a method for allocating network slices. The third embodiment is substantially the same as the first embodiment, and the main difference is that: after selecting at least one network slice to allocate to the application, it further includes: if it is detected that the battery power is less than a preset value, the network slice allocated to the application can be adjusted.
[0053] The specific flowchart of the method for allocating network slices in this embodiment is as Figure 4 shown and includes:
[0054] Step 301, if an application in a running state is detected, determine the application type to which the application belongs.
[0055] Step 302, select at least one network slice from the network slices corresponding to the application type and allocate it to the application; wherein, the network slices corresponding to the application type refer to the network slices pre-matched for the application type.
[0056] Among them, steps 301-302 are similar to steps 101-102 in the first embodiment and will not be elaborated here.
[0057] Step 303, if it is detected that the battery power is less than a preset value, reduce the network slice allocated to the application in the foreground running state, and / or, when the number of network slices allocated to the application in the background running state is greater than 1, make all applications in the background running state use one network slice, and when the number of network slices allocated to the application in the background running state is equal to 1, cancel the network slice allocated to the application in the background running state.
[0058] Specifically, the preset value can be set according to actual needs, and this embodiment does not make specific limitations. When it is detected that the battery power is less than the preset value, it means that the battery power is too low at this time. The terminal can reduce the network slice allocated to the application in the foreground running state, but at least one network slice still needs to be reserved for the application in the foreground running state to use, and / or, when the number of network slices allocated to the application in the background running state is greater than 1, make all applications in the background running state use one network slice.
[0059] When it is detected that the battery power is less than a preset value, the terminal may reduce the network slices allocated to the applications running in the foreground, but at least one network slice still needs to be reserved for the applications running in the foreground, and / or, when the number of network slices allocated to the applications running in the background is equal to 1, cancel the network slices allocated to the applications running in the background.
[0060] In one example, if it is monitored that the battery power is less than a preset value, reduce the network slices allocated to the applications running in the foreground, and / or, when the number of network slices allocated to the applications running in the background is greater than 1, cancel the network slices allocated to the applications running in the background.
[0061] In one example, after selecting at least one network slice and allocating it to an application, it further includes: if it is monitored that the network performance requirement of the application for the network slice changes, determine the reason for the change in the network performance requirement, and adjust the network slice allocated to the application according to the reason.
[0062] In this embodiment, the terminal can adjust the allocation of network slices according to the battery power, thereby saving the power consumption of the battery.
[0063] The fourth embodiment of the present application relates to a method for allocating network slices. The fourth embodiment is substantially the same as the first embodiment, and the main difference is that: the network slices matched to each application type are the network slices obtained through the built-in first non-data card. After selecting at least one network slice and allocating it to the application, it further includes: if it is monitored that the quality index value of the network slice allowed by the network for the first non-data card is less than the preset index value, determine the network slice allowed by the network for the second non-data card; if the network slice allowed by the second non-data card meets the requirements of each application type for the network slice, reset the network slices corresponding to each application type.
[0064] The specific flowchart of the method for allocating network slices in this embodiment is as Figure 5 shown, including:
[0065] Step 401, if it is monitored that there is an application running, determine the application type to which the application belongs.
[0066] Step 402, select at least one network slice from the network slices corresponding to the application type and allocate it to the application; where the network slices corresponding to the application type refer to the network slices pre-matched to the application type.
[0067] Among them, steps 401-502 are similar to steps 101-102 in the first embodiment, and will not be elaborated here.
[0068] Step 403: If it is monitored that the network performance index value of the network slice obtained through the first non-data card is less than the preset index value, obtain the network slice through the built-in second non-data card.
[0069] Specifically, the preset index value can be set according to actual needs, and no specific limitation is made in this embodiment. There are at least two non-data cards in the terminal. The network slice matched to each application type is the network slice obtained through the built-in first non-data card. If the terminal monitors that the network performance index value of the network slice obtained through the first non-data card is less than the preset index value, it means that the current network slice cannot meet the network performance requirements of the application program. Then the terminal registers in the network through the second non-data card to determine the network slice allowed by the network for the second non-data card to use, that is, obtain the network slice through the second non-data card. The specific method for determining the network slice allowed by the network for the second non-data card to use is similar to step 1021 in the first embodiment and will not be elaborated here.
[0070] Step 404: If the network slice obtained through the second non-data card can meet the service requirements of each application type, re-match the network slice for each application type according to the network slice obtained through the second non-data card.
[0071] Specifically, after obtaining the network slice through the second non-data card, if the network slice obtained through the second non-data card can meet the service requirements of each application type, re-match the network slice for each application type according to the network slice obtained through the second non-data card, that is, pre-match the network slice obtained through the second non-data card for each application type. The specific method for pre-matching the network slice obtained through the second non-data card for each application type is similar to steps 1022 and 1023 in the first embodiment and will not be elaborated here.
[0072] In an example, after selecting at least one network slice to be allocated to the application program, it further includes: if it is monitored that the network performance requirement of the application program for the network slice changes, determine the reason for the change in the network performance requirement, and adjust the network slice allocated to the application program according to the reason.
[0073] In an example, after selecting at least one network slice to be allocated to the application program, it further includes: if it is monitored that the battery power is less than the preset value, reduce the network slice allocated to the application program in the foreground running state, and / or, when the number of network slices allocated to the application program in the background running state is greater than 1, make all the application programs in the background running state use one network slice, and when the number of network slices allocated to the application program in the background running state is equal to 1, cancel the network slice allocated to the application program in the background running state.
[0074] In one example, after selecting at least one network slice to be allocated to an application, it further includes: if it is monitored that the network performance requirements of the application for the network slice change, determining the reason for the change in the network performance requirements, and adjusting the network slice allocated to the application according to the reason; and if it is monitored that the battery power is less than a preset value, reducing the network slice allocated to the application running in the foreground, and / or, when the number of network slices allocated to the application running in the background is greater than 1, enabling all applications running in the background to use one network slice, and when the number of network slices allocated to the application running in the background is equal to 1, canceling the allocation of the network slice to the application running in the background.
[0075] In this embodiment, the terminal can meet the requirements of the application for the network slice by switching the use of non-data cards.
[0076] The fifth embodiment of the present application relates to a terminal, as Figure 6 shown, including: at least one processor 501; and a memory 502 communicatively connected to the at least one processor 501; wherein, the memory 502 stores instructions executable by the at least one processor 501, and the instructions are executed by the at least one processor 501 to enable the at least one processor 501 to execute the above-mentioned network slice allocation method.
[0077] Among them, the memory and the processor are connected by a bus. The bus can include any number of interconnected buses and bridges, and the bus connects various circuits of one or more processors and memories together. The bus can also connect various other circuits such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art, so they will not be further described herein. The bus interface provides an interface between the bus and the transceiver. The transceiver can be an element or multiple elements, such as multiple receivers and transmitters, and provides a unit for communicating with various other devices on the transmission medium. The data processed by the processor is transmitted on the wireless medium through the antenna. Further, the antenna also receives data and transmits the data to the processor.
[0078] The processor is responsible for managing the bus and general processing, and can also provide various functions, including timing, peripheral interface, voltage regulation, power management, and other control functions. The memory can be used to store the data used by the processor when executing operations.
[0079] The sixth embodiment of the present application relates to a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the above method embodiment is implemented.
[0080] That is, those skilled in the art can understand that all or part of the steps in the methods of the above embodiments can be completed by instructing relevant hardware through a program. The program is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, a chip, etc.) or a processor to execute all or part of the steps of the methods described in various embodiments of the present application. The aforementioned storage medium includes: various media that can store program codes such as USB flash drives, mobile hard disks, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks, or optical discs.
[0081] Those of ordinary skill in the art can understand that the above embodiments are specific embodiments for implementing the present application. In actual applications, various changes can be made to them in form and details without departing from the spirit and scope of the present application.
Claims
1. A method for allocating network slices, characterized in that, Including: If it is detected that an application is in a running state, determine the application type to which the application belongs; Select at least one network slice from the network slices corresponding to the application type and allocate it to the application; wherein, the network slices corresponding to the application type refer to the network slices pre-matched for the application type; The step of selecting at least one network slice from the network slices corresponding to the application type and allocating it to the application includes: If the application is in the foreground running state and other applications of the same application type in the background running state are detected, select L network slices with higher network performance from the K network slices corresponding to the application type, and allocate the L network slices to the application, where L is less than K; or, If the application is in the background running state and no other applications of the same application type in the running state are detected, select L network slices with higher network performance from the K network slices corresponding to the application type, and allocate the L network slices to the application, where both L and K are integers greater than zero, and L is less than or equal to K.
2. The method for allocating network slices according to claim 1, wherein After the step of selecting L network slices with higher network performance from the K network slices corresponding to the application type and allocating the L network slices to the application when the application is in the foreground running state and other applications of the same application type in the background running state are detected, it further includes: Select at least one network slice from the remaining (K - L) network slices and allocate it to the other application.
3. The allocation method of the network slice according to claim 2, wherein The step of selecting at least one network slice from the remaining (K - L) network slices and allocating it to the other application includes: If there are multiple such other applications, select at least one network slice from the remaining (K - L) network slices and allocate it to the other application according to the priorities of the other applications and the network performance of the remaining (K - L) network slices; wherein, the higher the priority of the other application, the higher the network performance of the allocated network slice.
4. The method for allocating network slices according to claim 1, wherein After the step of selecting at least one network slice and allocating it to the application, it further includes: If it is detected that the requirement for the network performance of the network slice by the application changes, determine the reason for the change in the requirement for the network performance, and adjust the network slice allocated to the application according to the reason.
5. The allocation method of the network slice according to claim 4, characterized in that The step of adjusting the network slice allocated to the application according to the reason includes: If the reason is that the application type to which the current service of the application belongs has changed, select at least one network slice from the network slices corresponding to the changed application type and allocate it to the application; If the reason is that the number of socket requests and / or download threads of the application decreases, reduce the network slices allocated to the application; If the reason is that the application is frozen, cancel the network slices allocated to the application.
6. The method for allocating a network slice according to claim 1, wherein After selecting at least one network slice and allocating it to the application, the following steps are further included: If it is monitored that the battery power is less than a preset value, reduce the network slices allocated to the applications running in the foreground, and / or, when the number of network slices allocated to the applications running in the background is greater than 1, make all the applications running in the background use one network slice, and when the number of network slices allocated to the applications running in the background is equal to 1, cancel the network slices allocated to the applications running in the background.
7. The allocation method of the network slice according to claim 1, wherein The network slices matched to each application type are the network slices obtained through the built-in first non-data card; After selecting at least one network slice and allocating it to the application, the following steps are further included: If it is monitored that the network performance index value of the network slice obtained through the first non-data card is less than the preset index value, obtain network slices through the built-in second non-data card; If the network slices obtained through the second non-data card can meet the service requirements of each application type, re-match network slices for each application type according to the network slices obtained through the second non-data card.
8. The allocation method of the network slice according to claim 1, wherein, Match network slices for the application type in the following way in advance: Obtain a number of network slices through the built-in first non-data card and activate the network slices; Classify each application according to the main service type of each application; Match the number of network slices and each application type according to the requirements of each application type for the network performance of the network slice.
9. A terminal, characterized in that, It includes: At least one processor; And, A memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the network slice allocation method according to any one of claims 1 to 8.
10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the network slice allocation method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Selection method, device and system of network slice
CN109429277A