Network slice distribution method and device, computer equipment and storage medium

文档序号:1820207 发布日期:2021-11-09 浏览:21次 中文

阅读说明:本技术 网络切片的分配方法、装置、计算机设备和存储介质 (Network slice distribution method and device, computer equipment and storage medium ) 是由 孙磊 王莉 王维 滕蔓 凌雨诗 陈永涛 陈文文 李锦煊 张国翊 朱海龙 于 2021-06-29 设计创作,主要内容包括:本申请涉及一种网络切片的分配方法、装置、计算机设备和存储介质。网络切片管理单元根据电力设备当前已触发的目标业务的业务等级确定目标业务对应的网络等级,根据网络等级以及目标业务的历史网络资源需求量,从服务器维护的网络切片集合中,确定与网络等级以及历史网络资源需求量匹配的目标网络切片,为目标业务分配目标网络切片;本实施例中,对电力设备已触发的目标业务分配目标网络切片,对于电力设备未触发的业务暂时不分配网络切片,减少了对网络切片的使用数量,避免对未触发业务分配的网络切片造成资源浪费现象;本实施例中的目标网络切片和目标业务的实际需求匹配度更高,避免网络切片分配不合理导致的资源浪费现象,提高了资源利用率。(The application relates to a method and a device for distributing network slices, computer equipment and a storage medium. The network slice management unit determines a network grade corresponding to a target service according to the service grade of the target service triggered by the power equipment at present, determines a target network slice matched with the network grade and the historical network resource demand from a network slice set maintained by a server according to the network grade and the historical network resource demand of the target service, and allocates the target network slice to the target service; in the embodiment, the target network slices are allocated to the target services triggered by the power equipment, and the network slices are not allocated to the services not triggered by the power equipment temporarily, so that the use number of the network slices is reduced, and the resource waste phenomenon caused by the network slices allocated to the services not triggered is avoided; the matching degree of the actual requirements of the target network slice and the target service in the embodiment is higher, the resource waste phenomenon caused by unreasonable network slice distribution is avoided, and the resource utilization rate is improved.)

1. A method for allocating network slices, the method comprising:

determining a network grade corresponding to a target service according to the service grade of the target service; the target service is a service triggered by the power equipment currently, and the network slice corresponding to the network level is used for bearing the target service;

according to the network grade and the historical network resource demand of the target service, determining a target network slice matched with the network grade and the historical network resource demand from a network slice set maintained by a server;

and distributing the target network slice for the target service.

2. The method of claim 1, wherein before determining the network level corresponding to the target service according to the service level of the target service, the method further comprises:

and receiving the service level of the target service sent by the power equipment, wherein the service level is determined by the power equipment according to the network resource amount currently required by the target service.

3. The method of claim 1, wherein the determining the network level corresponding to the target service according to the service level of the target service comprises:

determining the sharing demand level of the target service according to the service level of the target service;

determining a network grade corresponding to the target service according to the sharing demand grade of the target service and a preset corresponding relation; the preset corresponding relation comprises a corresponding relation between a plurality of different sharing requirement grades and a network grade, and the network grade comprises sharing, exclusive sharing and isolation.

4. The method of claim 1, wherein determining a target network slice that satisfies a historical network resource demand of the target service from a set of network slices maintained by a server according to the network tier and the historical network resource demand comprises:

traversing the network slice set, and judging whether the current network slice in the network slice set bears the service;

if the current network slice does not carry the service, determining the current network slice as the target network slice under the condition that the network level of the current network slice is the same as the network level corresponding to the target service and the reserved RB resource quantity of the current network slice meets the historical network resource demand quantity.

5. The method of claim 4, further comprising:

if the current network slice bears services, the network level of the current network slice is shared, and the network level corresponding to the target service is shared, determining the current network slice as the target network slice when the remaining RB resource quantity of the current network slice meets the historical network resource demand quantity;

and the residual RB resource quantity of the current network slice is the residual RB resource quantity obtained by subtracting the network resource demand quantity of the service carried by the current network slice from the reserved RB resource quantity of the current network slice.

6. The method of claim 1, further comprising:

after the target network slice is distributed to the target service, judging whether the network slice set has the rest network slices which do not bear the service;

and if the remaining network slices exist, setting the states of the remaining network slices to be forbidden states, and releasing the RB resource quantity of the remaining network slices.

7. The method of claim 1, further comprising:

after the target network slice is distributed for the target service, determining a transmission power state between the power equipment and a base station according to the transmission rate of the target service in the target network slice;

and sending the transmission power state to the electric power equipment so as to enable the electric power equipment to set the transmission power of the electric power equipment according to the transmission power state.

8. An apparatus for distributing network slices, the apparatus comprising:

the first determining module is used for determining a network level corresponding to a target service according to the service level of the target service, wherein the target service is a service currently triggered by power equipment, and a network slice corresponding to the network level is used for bearing the target service;

a second determining module, configured to determine, according to the network level and historical network resource demand of the target service, a target network slice that matches the network level and the historical network resource demand from a network slice set maintained by a server;

and the distribution module is used for distributing the target network slice for the target service.

9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 7.

10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.

Technical Field

The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for allocating network slices, a computer device, and a storage medium.

Background

At present, the requirements of a power system on the time delay, capacity, safety and reliability of a power Communication network are higher and higher, and in order to reduce the time delay of the power Communication network and improve the capacity, safety and reliability of the power Communication network, a fifth Generation Mobile Communication Technology (5th Generation Mobile Communication Technology, abbreviated as 5G) is applied in the power Communication network, and the Communication resource requirements that can be met by various power services carried in the power system are ensured through a network slice of the 5G Technology, so that each service can obtain corresponding network resources according to the service requirements, and the Communication efficiency is improved.

In the traditional technology, for each service in a power system, each service corresponds to one network slice; however, services in the power system are different, and the time periods for starting each service are different, which causes waste of network slice resources at certain times and low utilization rate of the network slices.

Disclosure of Invention

In view of the foregoing, it is desirable to provide a method, an apparatus, a computer device, and a storage medium for allocating network slices, which can avoid wasting network slice resources and improve the utilization rate of network slices.

In a first aspect, a method for allocating network slices is provided, where the method includes:

determining a network grade corresponding to the target service according to the service grade of the target service; the target service is a service triggered by the power equipment at present, and the network slice corresponding to the network level is used for bearing the target service;

according to the network level and the historical network resource demand of the target service, determining a target network slice matched with the network level and the historical network resource demand from a network slice set maintained by a server;

and distributing the target network slice for the target service.

In one embodiment, before determining the network level corresponding to the target service according to the service level of the target service, the method further includes:

and receiving the service grade of the target service sent by the power equipment, wherein the service grade is determined by the power equipment according to the network resource amount currently required by the target service.

In one embodiment, determining a network level corresponding to a target service according to a service level of the target service includes:

determining the sharing demand level of the target service according to the service level of the target service;

determining a network grade corresponding to the target service according to the sharing demand grade of the target service and a preset corresponding relation; the preset corresponding relation comprises corresponding relations between a plurality of different sharing demand grades and network grades, and the network grades comprise sharing, exclusive sharing and isolation.

In one embodiment, determining a target network slice from a network slice set maintained by a server according to the network level and the historical network resource demand of the target service includes:

traversing the network slice set, and judging whether the current network slice in the network slice set bears the service;

and under the condition that the current network slice does not bear the service, determining the current network slice as the target network slice under the condition that the network level of the current network slice is the same as the network level corresponding to the target service and the reserved RB resource quantity of the current network slice meets the historical network resource demand.

In one embodiment, the method further comprises:

under the conditions that the current network slice bears services, the network level of the current network slice is shared, and the network level corresponding to the target service is shared, when the residual RB resource quantity of the current network slice meets the historical network resource demand quantity, determining the current network slice as the target network slice;

and the residual RB resource quantity of the current network slice is the residual RB resource quantity obtained by subtracting the network resource demand quantity of the service carried by the current network slice from the reserved RB resource quantity of the current network slice.

In one embodiment, the method further comprises:

after distributing the target network slices for the target service, judging whether the network slice set has the rest network slices which do not bear the service;

and under the condition that the residual network slices exist in the network slice set, setting the states of the residual network slices to be disabled, and releasing the reserved RB resource amount of the residual network slices.

In one embodiment, the method further comprises:

after a target network slice is distributed for a target service, determining a transmission power state between power equipment and a base station according to the transmission rate of the target service in the target network slice;

the transmission power status is transmitted to the electric power device so that the electric power device sets the transmission power of the electric power device according to the transmission power status.

In a second aspect, an apparatus for allocating network slices is provided, the apparatus comprising:

the first determining module is used for determining the network grade corresponding to the target service according to the service grade of the target service; the target service is a service triggered by the power equipment at present, and the network slice corresponding to the network level is used for bearing the target service;

the second determining module is used for determining a target network slice matched with the network level and the historical network resource demand from a network slice set maintained by the server according to the network level and the historical network resource demand of the target service;

and the distribution module is used for distributing the target network slice for the target service.

In a third aspect, a computer device is provided, comprising a memory and a processor, the memory storing a computer program, the processor implementing the steps of the method of the first aspect when executing the computer program.

In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, characterized in that the computer program, when executed by a processor, implements the steps of the method of the first aspect described above.

According to the method and the device for distributing the network slices, the computer equipment and the storage medium, the network slice management unit determines the network level corresponding to the target service according to the service level of the target service triggered by the power equipment at present, determines the target network slice matched with the network level and the historical network resource demand from a network slice set maintained by a server according to the network level and the historical network resource demand of the target service, and distributes the target network slice to the target service; that is to say, in the embodiment of the present application, a target network slice is allocated to a target service triggered by an electrical device, and for a service not triggered by the electrical device, a network slice is not allocated temporarily, so that the number of network slices used can be reduced, and the problem of resource waste of the network slice caused by allocating a network slice to a service not triggered in the prior art can be avoided; in addition, in this embodiment, when allocating a target network slice to a target service, the target network slice corresponding to the target service is determined according to the network level corresponding to the target service and the historical network resource demand amount of the target service, and the target network slice determined in this way has a higher matching degree with the actual demand of the target service, so that the problem of network slice resource waste caused by excessive network resources left after the target network slice bears the target service can be avoided, the resource utilization rate of the target network slice can be greatly improved, and meanwhile, the rationality of network slice allocation can be improved.

Drawings

FIG. 1 is a diagram of an exemplary implementation of a method for assigning network slices;

FIG. 2 is a flow diagram that illustrates a method for assigning network slices, according to one embodiment;

FIG. 3 is a flow chart illustrating a method for assigning network slices according to another embodiment;

FIG. 4 is a flow chart illustrating a method for assigning network slices according to another embodiment;

FIG. 5 is a flowchart illustrating a method for assigning network slices according to another embodiment;

FIG. 6 is a flowchart illustrating a method for assigning network slices according to another embodiment;

FIG. 7 is a block diagram of an apparatus for distributing network slices in one embodiment;

FIG. 8 is a diagram illustrating an internal structure of a computer device according to an embodiment.

Detailed Description

In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.

The network slice allocation method provided by the application can be applied to the application environment shown in fig. 1. The power equipment 101 communicates with the server 102 through a network, and the server 102 may allocate different network slices to different services running on the power equipment 101, so that the services in the power equipment 101 may communicate with the server 102 through the network slices corresponding to the services; optionally, the server 102 may be configured with a network slice management unit, through which network slices are allocated for different services of the power device, and the network slice management unit may also manage the network slices. The power equipment 101 may be various terminal equipment in a power communication network, including but not limited to power information acquisition equipment, power inspection equipment, command scheduling equipment, wireless trunking communication equipment, and the like; the server 102 may be implemented as a stand-alone server or as a server cluster comprised of multiple servers.

In one embodiment, as shown in fig. 2, a method for allocating network slices is provided, which is described by taking the method as an example applied to the network slice management unit in fig. 1, and includes the following steps:

step 201, determining a network level corresponding to the target service according to the service level of the target service.

The target service is a service currently triggered by the power equipment, and the network slice corresponding to the network level is used for bearing the target service.

The 5G technology is applied to the power communication network, so that different services of power equipment can be networked as required, namely, network slices corresponding to the service types are distributed according to the service types of the services so as to meet the communication requirements of the services; the required communication requirements are different for different traffic types, e.g.: enhanced services like tunnel robot routing inspection, smart lamp pole monitoring and the like need shorter time delay requirements, and similarly power distribution automation needs high throughput and low time delay requirements; therefore, according to the service type of the service, the network slice corresponding to the service can be selected to carry the network communication data of the service, and the data processing rate and the response rate of the service are improved.

In the prior art, a network slice is allocated to each service in the power equipment, although the processing rate of each service can be improved, the services in the power communication network are different, and the adoption of the network slice allocation method in the prior art can cause the excessive number of network slices, the heavy task of the network slice management unit and inconvenience for the operation, maintenance and management of each network slice. In addition, for each service in the power communication network, the starting time period of each service is also different, and for the services that are not started, the resources of the network slice allocated to the services will be wasted, resulting in low utilization rate of the resources.

Therefore, the method for allocating network slices is provided in the embodiment of the present application, and is applied to a network slice management unit, when a power device triggers a target service, the network slice management unit may determine, according to a service level of the target service, a network level corresponding to the target service, that is, a network level of a network slice required by the target service; optionally, the service level of the target service may be a service level determined comprehensively according to the relevant service information of the target service, and the service level may represent the emergency degree of the target service, may also represent the priority degree of the target service, may also represent the resource demand of the target service, and so on; the service class may be a specific class value, such as: primary, secondary, tertiary, and may also be degrees of rank, such as: low, medium, high, and may also be rank values in multiple dimensions, such as: two-dimensional ranking including urgency and priority, such as: low three, which can be expressed as a low level of urgency with a three level of priority; etc., it should be noted that the setting of the service level in this embodiment is not limited.

Optionally, the network slice management unit may determine, according to the service level of the target service and a preset mapping relationship, a network level corresponding to the service level; or matching the network grade corresponding to the service grade according to a preset algorithm; determining a network grade corresponding to the service grade according to the service grade and a preset conversion method; in this embodiment, the method for determining the network level according to the service level is not limited, as long as the network level can be determined according to the service level of the target service. In addition, the network level corresponding to the target service, that is, the network level of the network slice corresponding to the target service, may include sharing, isolating, and exclusive sharing, etc. And determining a network slice capable of bearing the target service according to the network grade corresponding to the target service, wherein when the network grade of the network slice is consistent with the network grade corresponding to the target service, the network slice can be used for bearing the target service.

Step 202, according to the network level and the historical network resource demand of the target service, determining a target network slice matched with the network level and the historical network resource demand from a network slice set maintained by a server.

The server may maintain a plurality of network slices created in advance, and collectively place the network slices created in advance in a network slice set, where the network slice set may include at least one of identification information of each network slice, a network level corresponding to each network slice, reserved RB resources corresponding to each network slice, identification information of a service that each network slice has carried, and the like.

Optionally, after determining the network level of the network slice required by the target service according to the service level of the target service, the network slice management unit may determine, from the network slice set, a target network slice matched with the network level and the historical network resource demand of the target service according to the network level and the historical network resource demand of the target service; optionally, the network slice management unit may screen out a candidate network slice subset that matches both the network level and the historical network resource demand according to the network level and the network level of each network slice in the network slice set, and the historical network resource demand and the reserved RB resource of each network slice in the network slice set, where the network level of each network slice in the candidate network slice subset is consistent with the network level corresponding to the target service, and the reserved RB resource of each network slice in the candidate network slice subset can satisfy the historical network resource demand of the target service; then, the network slice management unit may determine a target network slice from the candidate network slice subset, and use the target network slice as the network slice corresponding to the target service to carry the target service; the network slice management unit may randomly select one network slice from the candidate network slice subset as the target network slice, may select a network slice with the most advanced sequence as the target network slice according to the sequence of each network slice, and may select a network slice with the least reserved RB resources as the target network slice, which is not limited in this embodiment.

Optionally, the historical network resource demand of the target service may be the maximum network resource demand in multiple historical time periods, may also be the average network resource demand in multiple historical time periods, and may also be the network resource demand of each historical time period, and the like, which is not limited in this embodiment.

Step 203, the target network slice is allocated to the target service.

Specifically, after determining a target network slice according to a network level corresponding to a target service and a historical network resource demand of the target service, the network slice management unit may allocate the target network slice to the target service; optionally, the network slice management unit may establish a mapping relationship between the target service and the target network slice, and may send the mapping relationship to the electrical device, so that when the electrical device runs the target service, the service data generated by the target service may be transmitted and communicated through the target network slice.

In the method for distributing the network slices, a network slice management unit determines a network level corresponding to a target service according to the service level of the target service triggered by the power equipment at present, determines a target network slice matched with the network level and historical network resource demand from a network slice set maintained by a server according to the network level and the historical network resource demand of the target service, and distributes the target network slice to the target service; that is to say, in the embodiment of the present application, a target network slice is allocated to a target service triggered by an electrical device, and for a service not triggered by the electrical device, a network slice is not allocated temporarily, so that the number of network slices used can be reduced, and the problem of resource waste of the network slice caused by allocating a network slice to a service not triggered in the prior art can be avoided; in addition, in this embodiment, when allocating a target network slice to a target service, the target network slice corresponding to the target service is determined according to the network level corresponding to the target service and the historical network resource demand amount of the target service, and the target network slice determined in this way has a higher matching degree with the actual demand of the target service, so that the problem of network slice resource waste caused by excessive network resources left after the target network slice bears the target service can be avoided, the resource utilization rate of the target network slice can be greatly improved, and meanwhile, the rationality of network slice allocation can be improved.

In an optional embodiment of the present application, before determining the network level corresponding to the target service according to the service level of the target service, the network slice management unit may further receive the service level of the target service sent by the electrical power device, where the service level is determined by the electrical power device according to the amount of network resources currently required by the target service. Optionally, in the power device, the triggered time periods of the services are different, when the target service is triggered, the power device may determine the service level of the target service according to the network resource amount currently required by the target service, the power device may preset a mapping relationship between different network resource amounts and different service levels, and the service level of the target service may be determined according to the mapping relationship and the network resource amount currently required by the target service; optionally, after the target service is triggered, the power device may estimate the network resource amount currently required by the target service according to the actual operating condition of the current power device, or may determine the network resource amount currently required by the target service according to historical operating data of the target service, and the like.

In this embodiment, before determining the network level corresponding to the target service according to the service level of the target service, the network slice management unit receives the service level of the target service determined by the power device according to the network resource amount currently required by the target service, that is, after the target service is triggered, the power device determines the service level of the target service according to the network resource amount of the target service, and then sends the service level of the target service to the network slice management unit, so that the service level of the target service acquired by the network slice management unit is more accurate, the accuracy and the rationality of the service level are improved, and further, the accuracy of the target network slice matched with the target service can be improved.

Fig. 3 is a flowchart illustrating a network slice allocation method in another embodiment. In this embodiment, what is involved is an optional implementation process for determining a network level corresponding to a target service according to a service level of the target service, as shown in fig. 3, on the basis of the above embodiment, step 201 includes:

step 301, determining the sharing demand level of the target service according to the service level of the target service.

The sharing demand level of the target service can be used to characterize the sharing degree of the target service.

Optionally, when determining the sharing requirement level of the target service according to the service level of the target service, the network slice management unit may determine the sharing requirement level of the target service according to the service level of the target service and a preset corresponding relationship, where the preset corresponding relationship includes corresponding relationships between different service levels and different sharing requirement levels; optionally, the preset corresponding relationship may also include a plurality of different sub-corresponding relationships, for example: the preset corresponding relationship may include a first sub corresponding relationship and a second sub corresponding relationship, the network slice management unit may determine an intermediate result according to the service level of the target service and the first sub corresponding relationship, and may determine the sharing requirement level of the target service according to the intermediate result and the second sub corresponding relationship, where the intermediate result may indirectly represent the corresponding relationship between the service level of the target service and the sharing requirement level of the target service.

In an optional implementation manner of this embodiment, the network slice management unit may analyze the service level of the target service in a manner of edge cloud resource calculation to obtain analysis results such as a service type, a delay requirement, a throughput requirement, and a reliability requirement of the target service; according to the analysis result, the service type, the delay requirement and the reliability requirement of the target service can be determined as the delay constraint condition of the target service, and the throughput requirement of the target service is determined as the data throughput of the target service in unit time; then, determining the delay grade of the target service according to the delay constraint condition and the first corresponding relation of the target service, determining the data grade of the target service according to the data throughput of the target service in unit time and the corresponding relation, then performing weighted average according to the delay grade of the target service and the data grade of the target service respectively and corresponding weights to obtain a weighted result, and determining the priority processing grade of the target service according to the weighted result and the third corresponding relation; the priority processing level of the target service can be used for representing the priority processing degree between the target service and other triggered services; further, the sharing demand level of the target service may be determined according to the priority processing level of the target service and the fourth corresponding relationship.

Optionally, after determining the priority level of the target service, the method may further obtain the association with the target serviceAfter determining that the plurality of associated services are also triggered, determining a priority level of the associated services according to the method discussed above; the associated service and the target service may be services running on the same power equipment, or services running on different power equipment; then, the priority level of the target service and the priority level of the associated service may be added, and the added result is taken as the priority level of the target service; the priority of the target service can be used for representing the priority response degree between the target service and other triggered services; further, the sharing demand level of the target service may be determined according to the priority of the target service and the fifth correspondence. For example: the priority processing level of the target service X is XWThe associated service associated with the target service X includes associated service O, associated service P, and associated service Q, where the priority processing level of the associated service O is OWThe priority processing level of the associated service P is P5WWith 3, the priority level of the associated service Q is QWWhen all the associated service O, the associated service P and the associated service Q are triggered, the priority of the target service X is XW+OW+PW+QWWhen the associated service O is not triggered and the associated service P and the associated service Q are triggered, the priority of the target service X is X +5+3+7 is 20W+PW+QW=5+3+7=15。

Step 302, determining a network level corresponding to the target service according to the sharing demand level of the target service and a preset corresponding relation.

The preset corresponding relation comprises corresponding relations between a plurality of different sharing demand grades and network grades, and the network grades comprise sharing, exclusive sharing and isolation. For a network slice with a shared network level, multiple services may be carried, that is, multiple services may all multiplex the network slice, for example: the network slice A can carry a service A and a service B; for a network slice with an exclusive network level, only one service can be carried, and each network slice exclusively shares all resources, for example: the network slice A can only be used by the tenant B; for the network slices with isolated network levels, only one service can be borne, the same logic resource and physical resource are used among the network slices, but different network parameters or application parameters need to be configured to form two network slices; or different logical resources are used between the network slices, but the physical resources are the same, for example, two network slices are respectively realized by two logical resources (virtual machines) virtualized on one physical resource (host); or different physical resources are used between network slices; for example: virtual machine a and virtual machine B are on different hosts.

Optionally, in the preset corresponding relationship, for different sharing requirement level intervals, different network levels may be corresponded, that is, the sharing requirement level may be divided into three different intervals, which respectively correspond to three different network levels; optionally, when the sharing demand level is lower, the corresponding network level may be an exclusive share; when the sharing demand level is medium or equal, the corresponding network level is isolation; when the sharing demand level is higher, the corresponding network level is shared; for example: if the sharing demand level of the vehicle charging service is lower, the network level of the network slice allocated to the vehicle charging service can be set to be exclusive, so that the network slice allocated to the vehicle charging service cannot be reused by other services.

In this embodiment, the network slice management unit determines the sharing requirement level of the target service according to the service level of the target service, and further determines the network level corresponding to the target service according to the sharing requirement level of the target service and the preset corresponding relationship; that is to say, in this embodiment, the network slice management unit determines the network level corresponding to the target service through a finer granularity, so that the determined network level corresponding to the target service is more accurate according to the service level of the target service, and the accurate positioning of the network level of the network slice required by the target service can be improved.

Fig. 4 is a flowchart illustrating a method for allocating network slices in another embodiment. In this embodiment, an optional implementation process of determining a target network slice satisfying a historical network resource demand from a network slice set maintained by a server according to the network level and the historical network resource demand of the target service is involved, as shown in fig. 4, on the basis of the foregoing embodiment, the foregoing step 202 includes:

step 401, traversing the network slice set, and determining whether a current network slice in the network slice set carries a service.

The network slice set may include a plurality of network slices created in advance by the network slice management unit, and may further include identification information of a service that each network slice has carried, or status information of whether each network slice carries the service, or the like.

Optionally, when allocating a target network slice to a target service, the network slice management unit may traverse each network slice in the network slice set and determine whether a current network slice in the network slice set carries the service; optionally, it may be determined whether the current network slice carries the service according to the state information of each network slice, or it may be determined whether the current network slice carries the service according to the identification information of the service that has been carried by each network slice, and of course, it may also be determined whether the current network slice carries the service by other manners, for example: whether the RB resource amount of the current network slice is the same as the resource amount allocated to the current network slice when the current network slice is created is determined, so as to determine whether the current network slice carries services, and the like.

And 402, under the condition that the current network slice does not bear the service, and under the condition that the network level of the current network slice is the same as the network level corresponding to the target service and the reserved RB resource quantity of the current network slice meets the historical network resource demand, determining the current network slice as the target network slice.

Optionally, the network slice management unit determines the current network slice as the target network slice when the network level of the current network slice is the same as the network level corresponding to the target service and the reserved RB resource amount of the current network slice meets the historical network resource demand amount under the condition that the current network slice is judged not to carry the service; that is, under the condition that the current network slice does not carry the service, if the network level corresponding to the target service is shared, the network level is allocated to the target service as the shared network slice; if the network grade corresponding to the target service is isolation, distributing network slices with the isolated network grade to the target service; if the network grade corresponding to the target service is exclusive, allocating network slices with the network grade of exclusive sharing for the target service; and the reserved RB resource quantity of the network slice allocated to the target service can meet the historical network resource demand quantity of the target service.

In the embodiment, whether the current network slice in the network slice set bears the service is judged by traversing the network slice set, and under the condition that the current network slice does not bear the service, the current network slice is determined as the target network slice under the condition that the network level of the current network slice is the same as the network level corresponding to the target service and the reserved RB resource quantity of the current network slice meets the historical network resource demand quantity; that is to say, in this embodiment, the target network slice corresponding to the target service can be determined according to the network level of the network slice required by the target service and the historical network resource demand of the target service, so that it can be ensured that the target network slice allocated to the target service can meet the network resource demand required by the target service, a situation that the target network slice allocated to the target service cannot meet the network resource demand required by the target service is avoided, and the reasonability of network slice allocation can be improved.

In an optional embodiment of the present application, when the network slice management unit determines that the current network slice already carries a service, the network level of the current network slice is shared, and the network level corresponding to the target service is shared, and when the remaining RB resource amount of the current network slice meets the historical network resource demand amount, the current network slice is determined as the target network slice;

and the residual RB resource quantity of the current network slice is the residual RB resource quantity obtained by subtracting the network resource demand quantity of the service carried by the current network slice from the reserved RB resource quantity of the current network slice.

Optionally, when the network slice management unit determines that the current network slice already carries a service, the network level of the current network slice is shared, and the network level corresponding to the target service is shared, that is, when the network level of the current network slice is shared and the network level of the network slice required by the target service is also shared, the current network slice already carries other services and can also carry the target service, that is, the current network slice can carry multiple services in the same time period; in this case, since other services carried by the current network slice already occupy part of resources of the current network slice, it needs to be determined whether remaining RB resource amounts of the current network slice after carrying other services can satisfy the historical network resource demand amount of the target service, and when the remaining RB resource amounts of the current network slice can satisfy the historical network resource demand amount of the target service, it indicates that the target service can multiplex the current network slice at this time, that is, the current network slice can be determined as the target network slice corresponding to the target service.

Optionally, when the target network slice is determined according to the historical network resource demand of the target service, whether the current network slice can be used as the target network slice corresponding to the target service or not may be determined according to the service carried by the current network slice and the network resource demand required by the target service in the next several time periods; for example: the historical network resource demand of the target service can comprise network resource quantities of different time periods of each day in multiple historical days, and the network resource quantity required by the target service in each different time period of each day can be calculated according to the historical network resource demand; the same method can calculate the network resource quantity needed by the service carried by the current network slice in different time periods in a day; based on this, the network resource amount needed by the target service and the service carried by the current network slice in the next several time periods can be determined; for example: the current time period is from 7 am to 8 am, and the next 5 time periods (taking 1 hour as a time period), the amounts of network resources required by the target service are a1, a2, a3, a4, and a5, respectively, and the amounts of network resources required by the service carried by the current network slice are b1, b2, b3, b4, and b5, respectively, so that the amounts of network resources required by the target service and the service carried by the current network slice in the next 5 time periods are: c1 ═ a1+ b1, c2 ═ a2+ b2, c3 ═ a3+ b3, c4 ═ a4+ b4, c5 ═ a5+ b5, and when the reserved RB resource amount of the current network slice can satisfy the network resource amount required when the target traffic and the traffic carried by the current network slice simultaneously multiplex the current network slice in the next 5 time periods, the current network slice can be used as the target network slice of the target traffic.

Optionally, under the condition that the reserved RB resource amounts of the current network slice can all satisfy the network resource amounts required when the target service and the service carried by the current network slice are simultaneously multiplexed in the next 5 time periods, it may be further determined that when the target service and the service carried by the current network slice are simultaneously multiplexed, the remaining RB resource amount of the current network slice in each next time period may be present, and if the remaining RB resource amount of each time period exceeds the preset resource threshold, it may be indicated that when the target service and the service carried by the current network slice are simultaneously multiplexed, the current network slice still has a large remaining RB resource amount, which easily causes waste of the RB resource amount of the current network slice; at this time, the current network slice may not be the target network slice corresponding to the target service; continuously traversing other network slices in the network slice set; if the remaining RB resource amount of the current network slice in each of the following time periods does not exceed the preset resource threshold, the current network slice may be used as the target network slice corresponding to the target service.

In this embodiment, when the current network slice already carries a service, the network level of the current network slice is shared, and the network level corresponding to the target service is shared, and when the remaining RB resource amount of the current network slice meets the historical network resource demand amount, the current network slice is determined as the target network slice; that is to say, in this embodiment, the network level corresponding to the target service is a shared target service, and the network level that has already carried the service can be multiplexed into a shared network slice, that is, the network slice whose network level is shared can carry multiple services at the same time period, and provides multiplexing resources for the multiple services, so that it is possible to avoid allocating a network slice to each service, and reduce the number of network slices used, and at the same time, it is possible to improve the utilization rate of the network slice resources by multiplexing the network slice resources.

Fig. 5 is a flowchart illustrating a method for allocating network slices in another embodiment. In this embodiment, an optional implementation procedure for releasing the reserved RB resource amount of a network slice not carrying a service is involved, as shown in fig. 5, on the basis of the foregoing embodiment, the foregoing method further includes:

step 501, after allocating a target network slice to a target service, determining whether a network slice set has a remaining network slice not carrying the service.

Optionally, after allocating the target network slice to the target service, the network slice management unit may traverse each network slice in the network slice set, and determine whether there is a remaining network slice not carrying the service in the network slice set, where the method for determining whether there is a remaining network slice not carrying the service in the network slice set may refer to the determination of whether the network slice carries the service in step 401, which is not described herein again.

Step 502, under the condition that the remaining network slices exist in the network slice set, setting the states of the remaining network slices to a disabled state, and releasing the reserved RB resource amount of the remaining network slices.

Optionally, in a case that there are remaining network slices in the network slice set, that is, these remaining network slices temporarily do not carry any traffic, at this time, the state of the remaining network slices may be set to a disabled state, that is, the state of the core network to tenant server (home subscriber server) UEUsageType mapping associated with the remaining network slices that do not carry the corresponding traffic may be configured to an unavailable state; further, the reserved RB resource amount of the remaining network slice may be released. Optionally, the network slice management unit may set, after allocating corresponding target network slices to all currently triggered target services, states of remaining network slices not carrying any service in the network slice set to a disabled state, and release reserved RB resource amounts of the remaining network slices.

Optionally, when the target service runs at a high load, the network slice management unit may allocate all or part of the released reserved RB resource amount of each remaining network slice to the target network slice corresponding to the target service, so as to avoid a situation that the target service is under-utilized in resources at the high load.

In this embodiment, after allocating a target network slice to a target service, a network slice management unit determines whether a remaining network slice not carrying the service exists in a network slice set, and sets the state of the remaining network slice to a disabled state when the remaining network slice exists in the network slice set, and releases the reserved RB resource amount of the remaining network slice, which can avoid waste of the entire network resource, and in addition, can solve the problem of insufficient resource usage of the service under a high load, improve flexible allocation capability of the network resource, and improve the utilization rate of the network resource.

Fig. 6 is a flowchart illustrating a method for allocating network slices in another embodiment. The present embodiment relates to an optional implementation process for adjusting the transmission power state of the power device according to the transmission rate of the target network slice, as shown in fig. 6, on the basis of the foregoing embodiment, the method further includes:

step 601, after allocating a target network slice to a target service, determining a transmission power state between the power equipment and the base station according to a transmission rate of the target service in the target network slice.

Optionally, the transmission power state may include three power states, i.e., a high power state, a medium power state, and a low power state, and a mapping table between different transmission rate intervals and different transmission power states may be preset in the server.

Optionally, after allocating the target network slice to the target service, the network slice management unit may determine, according to the transmission rate of the target service in the target network slice and the preset mapping table, a transmission power state between the power device and the base station, where the power device operates the target service, that is, when the transmission rate of the target service reaches a certain threshold, the network slice management unit may determine a corresponding transmission power state; optionally, when the target network slice carries a plurality of services and each service runs in a different electrical device, the transmission power state between the electrical device corresponding to each service and the base station corresponding to the electrical device may be determined according to the transmission rate of each service in the target network slice and the preset mapping table.

Optionally, when the target network slice carries multiple services and at least two services operate in the same power device, determining a service from the at least two services, and determining a transmission power state between the power device and the base station corresponding to the service according to a transmission rate of the service in the target network slice and the preset mapping table; optionally, one service may be selected from the at least two services, or a service with the highest transmission rate in the target network slice may be selected from the at least two services to determine the transmission power state.

Optionally, in this embodiment, the transmission power state between the power device and the base station is determined according to the transmission rate of the target service in the target network slice, and the conversion may also be performed by using an existing conversion method, which is not limited in this embodiment.

Step 602, transmitting the transmission power state to the electric device, so that the electric device sets the transmission power of the electric device according to the transmission power state.

Specifically, after the network slice management unit determines a transmission power state between the power device and the base station corresponding to the target service, the transmission power state may be transmitted to the power device, so that the power device may set the transmission power of the power device according to the transmission power state.

In this embodiment, after allocating a target network slice to a target service, a network slice management unit determines a transmission power state between an electrical device and a base station according to a transmission rate of the target service in the target network slice, and sends the transmission power state to the electrical device, so that the electrical device sets a transmission power of the electrical device according to the transmission power state; that is to say, in this embodiment, the transmission power state between the power device and the base station may be adjusted in real time according to the actual transmission rate of the target service in the network slice, so as to achieve the optimal transmission power between the power device and the base station, reduce the power loss of the power device, and improve the overall performance of the power device.

It should be understood that although the various steps in the flow charts of fig. 2-6 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-6 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps.

In one embodiment, as shown in fig. 7, there is provided a network slice allocation apparatus, including: a first determining module 701, a second determining module 702, and an allocating module 703, wherein:

a first determining module 701, configured to determine, according to a service level of a target service, a network level corresponding to the target service; the target service is a service triggered by the power equipment at present, and the network slice corresponding to the network level is used for bearing the target service;

a second determining module 702, configured to determine, according to the network level and the historical network resource demand of the target service, a target network slice that matches the network level and the historical network resource demand from a network slice set maintained by a server;

an allocating module 703 is configured to allocate a target network slice to a target service.

In one embodiment, the apparatus further comprises: a receiving module; the receiving module is used for receiving the service level of the target service sent by the power equipment before determining the network level corresponding to the target service according to the service level of the target service, wherein the service level is determined by the power equipment according to the network resource amount currently required by the target service.

In one embodiment, the first determining module 701 includes a first determining unit and a second determining unit; the first determining unit is used for determining the sharing demand level of the target service according to the service level of the target service; the second determining unit is used for determining the network level corresponding to the target service according to the sharing demand level of the target service and the preset corresponding relation; the preset corresponding relation comprises corresponding relations between a plurality of different sharing demand grades and network grades, and the network grades comprise sharing, exclusive sharing and isolation.

In one embodiment, the second determining module 702 comprises a judging unit and a determining unit; the judging unit is used for traversing the network slice set and judging whether the current network slice in the network slice set bears the service or not; and the determining unit is used for determining the current network slice as the target network slice under the condition that the current network slice does not bear the service, the network level of the current network slice is the same as the network level corresponding to the target service, and the reserved RB resource quantity of the current network slice meets the historical network resource demand quantity.

In one embodiment, the determining unit is further configured to determine, when the current network slice already carries the service and the network level of the current network slice is shared and the network level corresponding to the target service is shared, the current network slice as the target network slice when the remaining RB resource amount of the current network slice meets the historical network resource demand amount; and the residual RB resource quantity of the current network slice is the residual RB resource quantity obtained by subtracting the network resource demand quantity of the service carried by the current network slice from the reserved RB resource quantity of the current network slice.

In one embodiment, the apparatus further comprises: a release module; the release module is used for judging whether the network slice set has the rest network slices which do not bear the service or not after distributing the target network slices for the target service; and under the condition that the residual network slices exist in the network slice set, setting the states of the residual network slices to be disabled, and releasing the reserved RB resource amount of the residual network slices.

In one embodiment, the apparatus further comprises: a sending module; the sending module is used for determining the transmission power state between the power equipment and the base station according to the transmission rate of the target service in the target network slice after the target network slice is distributed to the target service; the transmission power status is transmitted to the electric power device so that the electric power device sets the transmission power of the electric power device according to the transmission power status.

For specific definition of the network slice allocation apparatus, reference may be made to the above definition of the network slice allocation method, which is not described herein again. The modules in the distribution device of the network slice may be implemented in whole or in part by software, hardware, and combinations thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.

In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 8. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing a network slice set and mapping relations between different services and network slices, and operation data of each service, including historical network resource amount data. The network interface of the computer device is used for communicating with an external terminal or power equipment through network connection. The computer program is executed by a processor to implement a method of network slice allocation.

Those skilled in the art will appreciate that the architecture shown in fig. 8 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.

In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:

determining a network grade corresponding to the target service according to the service grade of the target service; the target service is a service triggered by the power equipment at present, and the network slice corresponding to the network level is used for bearing the target service;

according to the network level and the historical network resource demand of the target service, determining a target network slice matched with the network level and the historical network resource demand from a network slice set maintained by a server;

and distributing the target network slice for the target service.

In one embodiment, the processor, when executing the computer program, further performs the steps of: before determining the network level corresponding to the target service according to the service level of the target service, receiving the service level of the target service sent by the power equipment, wherein the service level is determined by the power equipment according to the network resource amount currently required by the target service.

In one embodiment, the processor, when executing the computer program, further performs the steps of: determining the sharing demand level of the target service according to the service level of the target service; determining a network grade corresponding to the target service according to the sharing demand grade of the target service and a preset corresponding relation; the preset corresponding relation comprises corresponding relations between a plurality of different sharing demand grades and network grades, and the network grades comprise sharing, exclusive sharing and isolation.

In one embodiment, the processor, when executing the computer program, further performs the steps of: traversing the network slice set, and judging whether the current network slice in the network slice set bears the service; and under the condition that the current network slice does not bear the service, determining the current network slice as the target network slice under the condition that the network level of the current network slice is the same as the network level corresponding to the target service and the reserved RB resource quantity of the current network slice meets the historical network resource demand.

In one embodiment, the processor, when executing the computer program, further performs the steps of: under the conditions that the current network slice bears services, the network level of the current network slice is shared, and the network level corresponding to the target service is shared, when the residual RB resource quantity of the current network slice meets the historical network resource demand quantity, determining the current network slice as the target network slice; and the residual RB resource quantity of the current network slice is the residual RB resource quantity obtained by subtracting the network resource demand quantity of the service carried by the current network slice from the reserved RB resource quantity of the current network slice.

In one embodiment, the processor, when executing the computer program, further performs the steps of: after distributing the target network slices for the target service, judging whether the network slice set has the rest network slices which do not bear the service; and under the condition that the residual network slices exist in the network slice set, setting the states of the residual network slices to be disabled, and releasing the reserved RB resource amount of the residual network slices.

In one embodiment, the processor, when executing the computer program, further performs the steps of: after a target network slice is distributed for a target service, determining a transmission power state between power equipment and a base station according to the transmission rate of the target service in the target network slice; the transmission power status is transmitted to the electric power device so that the electric power device sets the transmission power of the electric power device according to the transmission power status.

In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:

determining a network grade corresponding to the target service according to the service grade of the target service; the target service is a service triggered by the power equipment at present, and the network slice corresponding to the network level is used for bearing the target service;

according to the network level and the historical network resource demand of the target service, determining a target network slice matched with the network level and the historical network resource demand from a network slice set maintained by a server;

and distributing the target network slice for the target service.

In one embodiment, the computer program when executed by the processor further performs the steps of: before determining the network level corresponding to the target service according to the service level of the target service, receiving the service level of the target service sent by the power equipment, wherein the service level is determined by the power equipment according to the network resource amount currently required by the target service.

In one embodiment, the computer program when executed by the processor further performs the steps of: determining the sharing demand level of the target service according to the service level of the target service; determining a network grade corresponding to the target service according to the sharing demand grade of the target service and a preset corresponding relation; the preset corresponding relation comprises corresponding relations between a plurality of different sharing demand grades and network grades, and the network grades comprise sharing, exclusive sharing and isolation.

In one embodiment, the computer program when executed by the processor further performs the steps of: traversing the network slice set, and judging whether the current network slice in the network slice set bears the service; and under the condition that the current network slice does not bear the service, determining the current network slice as the target network slice under the condition that the network level of the current network slice is the same as the network level corresponding to the target service and the reserved RB resource quantity of the current network slice meets the historical network resource demand.

In one embodiment, the computer program when executed by the processor further performs the steps of: under the conditions that the current network slice bears services, the network level of the current network slice is shared, and the network level corresponding to the target service is shared, when the residual RB resource quantity of the current network slice meets the historical network resource demand quantity, determining the current network slice as the target network slice; and the residual RB resource quantity of the current network slice is the residual RB resource quantity obtained by subtracting the network resource demand quantity of the service carried by the current network slice from the reserved RB resource quantity of the current network slice.

In one embodiment, the computer program when executed by the processor further performs the steps of: after distributing the target network slices for the target service, judging whether the network slice set has the rest network slices which do not bear the service; and under the condition that the residual network slices exist in the network slice set, setting the states of the residual network slices to be disabled, and releasing the reserved RB resource amount of the residual network slices.

In one embodiment, the computer program when executed by the processor further performs the steps of: after a target network slice is distributed for a target service, determining a transmission power state between power equipment and a base station according to the transmission rate of the target service in the target network slice; the transmission power status is transmitted to the electric power device so that the electric power device sets the transmission power of the electric power device according to the transmission power status.

It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.

The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.

The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

20页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种智能电网供电系统的计算卸载与资源分配方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类