Disclosure of Invention
In view of the foregoing, it is desirable to provide a slice resource allocation method, apparatus, computer device, and storage medium capable of improving the response and processing speed of burst traffic services and improving the reliability of power devices.
In a first aspect, a method for allocating slice resources is provided, the method comprising:
determining slice configuration information according to the operation information of the power equipment, and sending the slice configuration information to the base station; the slice configuration information comprises bandwidth allocation information of each network slice in a plurality of network slices corresponding to a plurality of services of the power equipment, wherein the bandwidth allocation information is used for indicating a target resource for bearing emergency services in resources of the network slice corresponding to the bandwidth allocation information;
And when the target emergency service is triggered, sending a connection request to the base station, wherein the connection request is used for indicating the base station to allocate target resources for the target emergency service according to the slice configuration information.
In one embodiment, determining slice configuration information from operational information of a power device includes:
determining Subscriber Identity Module (SIM) card resource allocation information of the power equipment according to the operation information of the power equipment;
and determining slice configuration information according to the SIM card resource allocation information.
In one embodiment, the operation information of the power device includes an emergency degree of a traffic type of each network slice, and a maximum transmission bandwidth of each network slice; according to the operation information of the power equipment, determining the SIM card resource allocation information of the power equipment comprises the following steps:
determining SIM card resource allocation information of the power equipment according to the urgency of the service type of each network slice and the maximum transmission bandwidth of each network slice; the SIM card resource allocation information comprises an emergency bandwidth of the SIM card;
determining slice configuration information according to the SIM card resource allocation information, including:
determining slice configuration information according to the emergency bandwidth of the SIM card; the slice configuration information includes an emergency bandwidth for each network slice.
In one embodiment, the operation information of the power device includes a priority of a traffic type of each network slice, and a minimum transmission bandwidth of each network slice; according to the operation information of the power equipment, determining the SIM card resource allocation information of the power equipment comprises the following steps:
determining SIM card resource allocation information of the power equipment according to the priority of the service type of each network slice and the minimum transmission bandwidth of each network slice; the SIM card resource allocation information comprises reserved bandwidth of the SIM card;
determining slice configuration information according to the SIM card resource allocation information, including:
determining slice configuration information according to the reserved bandwidth of the SIM card; the slice configuration information includes reserved bandwidth for each network slice.
In one embodiment, the operation information of the power device includes a priority of a traffic type of each network slice, and a reference transmission bandwidth of each network slice; according to the operation information of the power equipment, determining the SIM card resource allocation information of the power equipment comprises the following steps:
determining SIM card resource allocation information of the power equipment according to the priority of the service type of each network slice and the reference transmission bandwidth of each network slice; the SIM card resource allocation information comprises the current bandwidth of the SIM card;
Determining slice configuration information according to the SIM card resource allocation information, including:
determining slice configuration information according to the current bandwidth of the SIM card; the slice configuration information includes a current bandwidth for each network slice.
In one embodiment, the operation information of the power device further includes environmental information of a current location of the power device, and a current data amount of the power device, and the method further includes:
determining the priority of the service type of each network slice according to the environment information and a preset mapping relation; the preset mapping relation comprises a plurality of corresponding relations between different environment information and the priority of the service type of each network slice;
and determining the minimum transmission bandwidth of each network slice according to the priority of the service type of each network slice, the current data quantity of the power equipment and the number of the network slices.
In one embodiment, the method further comprises:
acquiring environmental information of the current position of the power equipment according to a preset period, and judging whether the environmental information changes or not;
under the condition that the environment information changes, generating new slice configuration information according to the currently acquired environment information, and sending a slice configuration information update message to the base station, wherein the slice configuration information update message is used for indicating the base station to update the slice configuration information according to the new slice configuration information.
In a second aspect, there is provided a slice resource allocation apparatus, the apparatus comprising:
the first determining module is used for determining slice configuration information according to the operation information of the power equipment and sending the slice configuration information to the base station; the slice configuration information comprises bandwidth allocation information of each network slice in a plurality of network slices corresponding to a plurality of services of the power equipment, wherein the bandwidth allocation information is used for indicating a target resource for bearing emergency services in resources of the network slice corresponding to the bandwidth allocation information;
and the sending module is used for sending a connection request to the base station when the target emergency service is triggered, wherein the connection request is used for indicating the base station to allocate target resources for the target emergency service according to the slice configuration information.
In a third aspect, there is provided a computer device comprising a memory storing a computer program and a processor implementing the steps of the method of the first aspect described above when the computer program is executed by the processor.
In a fourth aspect, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method of the first aspect described above.
According to the slice resource allocation method, the slice resource allocation device, the computer equipment and the storage medium, the power equipment determines target resources for bearing emergency services in resources of each network slice corresponding to the power equipment according to the running information of the power equipment, obtains slice configuration information, and sends the slice configuration information to the base station; when the power equipment triggers the target emergency service, the power equipment sends a connection request to the base station, so that the base station distributes target resources for the target emergency service according to the slice configuration information after receiving the connection request; that is, in this embodiment, when an emergency service occurs, a target resource for processing the emergency service may be allocated to a network slice corresponding to the emergency service, so that the target resource may respond to service data of the emergency service in time, and may respond to an operation of service data of the emergency service without waiting for other service data processing in a current bandwidth resource to complete, which may solve the problem in the prior art that the current bandwidth resource cannot respond to the emergency service in time, resulting in a slower processing speed of the emergency service, thereby improving response and processing speed of the emergency service, and further, may also improve reliability of the power device.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
The slice resource allocation method provided by the application can be applied to an application environment shown in fig. 1. Wherein the power device 101 communicates with the base station 102 via a network. The power device 101 may be a terminal device that successfully establishes a signaling connection with a network slice of the base station 102, where the terminal device that successfully establishes a signaling connection with the network slice of the base station 102 may be a terminal device that is successfully registered on an AMF (Action Message Format, abbreviated as AMF) network protocol, and an nsai (Network Slice Selection Assistance Information, abbreviated as nsai) allowed in a user context of the terminal device includes an S-nsai (Single Network Slice Selection Assistance Information, abbreviated as S-nsai) corresponding to the network slice, and a connection state of the terminal device is in a connection state (CM-CONNECTED). The power device may communicate with a base station via an operator network, and the base station 102 may allocate network resources for the network slice corresponding to the power device 101. The power device 101 may be various terminal devices in a power communication network, including but not limited to a power information acquisition device, a power inspection device, a command and dispatch device, a video conference device, a wireless cluster communication device, and the like; the base station 102 may be a 5G base station.
In one embodiment, as shown in fig. 2, a slice resource allocation method is provided, and the method is applied to the power equipment in fig. 1 for illustration, and includes the following steps:
step 201, slice configuration information is determined according to operation information of the power equipment, and the slice configuration information is sent to the base station.
The slice configuration information comprises bandwidth allocation information of each network slice in a plurality of network slices corresponding to a plurality of services of the power equipment, wherein the bandwidth allocation information is used for indicating a target resource for bearing emergency services in resources of the network slice corresponding to the bandwidth allocation information.
One power device may run a plurality of services, and after the 5G technology is applied to the power system, one network slice may be allocated to each service running on the power device, or one network slice may be allocated to a plurality of services; the service data generated by each service is transmitted in network communication through the bandwidth resource of the corresponding network slice, alternatively, one service may generate a plurality of different types of service data, for example: the data of the business in normal operation, the alarm data in error and the like can be called as emergency business when the business is abnormal or the business operates in error; however, for different types of service data of a service, different bandwidth resources in the corresponding network slice of the service can be processed; that is, the resources of the network slice may be divided into a target resource carrying service data of the traffic in a normal state and a target resource carrying service data of the traffic in an abnormal state.
Optionally, the power equipment may determine bandwidth allocation information of each network slice corresponding to the power equipment according to current real-time operation information of the power equipment, where the bandwidth allocation information includes a target resource for carrying emergency services in resources of the network slice; alternatively, the real-time operation information of the power device may include a bandwidth demand of each service, and then, a target resource required by each service in an emergency may be determined according to the bandwidth demand of each service; optionally, the bandwidth demand of each service may be multiplied by a preset proportion parameter to obtain a target resource required by each service in an emergency; further, bandwidth allocation information of each network slice may be determined according to target resources required by each service in an emergency; for example: in the case that one network slice carries one service, the target resource required by the service in the emergency can be determined as the target resource for carrying the emergency service in the resources of the network slice; in the case that one network slice carries a plurality of services, the sum of target resources required by the plurality of services in the emergency can be used as the target resource for carrying the emergency service in the resources of the network slice. By the method, the bandwidth allocation information of each network slice corresponding to the power equipment can be determined, namely, the slice configuration information of each network slice corresponding to the power equipment can be obtained.
After the power equipment determines slice configuration information according to the running information of the power equipment, the slice configuration information can be sent to the base station, so that the slice configuration information of the power equipment is stored in the base station which is in signaling connection with the power equipment, and the base station can allocate target resources for each network slice of the power equipment according to the slice configuration information.
Step 202, when triggering the target emergency service, sending a connection request to the base station, where the connection request is used to instruct the base station to allocate target resources for the target emergency service according to the slice configuration information.
Optionally, when an emergency occurs in the power equipment, the power equipment triggers a target emergency service and sends a connection request to the base station, wherein the connection request can include identification information of the target emergency service; after receiving a connection request sent by the power equipment, the base station determines a network slice corresponding to the target emergency service according to the connection request and the identification information of the target emergency service, and further allocates a target resource for bearing the emergency service to the network slice according to the pre-stored slice allocation information of the power equipment; further, the network slice may respond to the service data of the target emergency business through the target resource.
In the slice resource allocation method, the power equipment determines a target resource for bearing emergency service in resources of each network slice corresponding to the power equipment according to the running information of the power equipment, obtains slice configuration information, and sends the slice configuration information to the base station; when the power equipment triggers the target emergency service, the power equipment sends a connection request to the base station, so that the base station distributes target resources for the target emergency service according to the slice configuration information after receiving the connection request; that is, in this embodiment, when an emergency service occurs, a target resource for processing the emergency service may be allocated to a network slice corresponding to the emergency service, so that the target resource may respond to service data of the emergency service in time, and may respond to an operation of service data of the emergency service without waiting for other service data processing in a current bandwidth resource to complete, which may solve the problem in the prior art that the current bandwidth resource cannot respond to the emergency service in time, resulting in a slower processing speed of the emergency service, thereby improving response and processing speed of the emergency service, and further, may also improve reliability of the power device.
Fig. 3 is a flow chart of a slice resource allocation method in another embodiment. This embodiment relates to an optional implementation process of determining slice configuration information according to operation information of a power device, as shown in fig. 3, where, based on the foregoing embodiment, the foregoing step 201 includes:
step 301, determining Subscriber Identity Module (SIM) card resource allocation information of the power equipment according to the operation information of the power equipment.
When the power equipment performs network communication through the operator network, a subscriber identification (Subscriber Identity Module, abbreviated as SIM) card issued by the operator is required to be used, the SIM card has a certain resource, and the sum of bandwidth resources of each network slice in slice configuration information corresponding to the power equipment cannot exceed the resource of the SIM card.
Optionally, when determining slice configuration information of each network slice, the power device may determine SIM card resource allocation information of the power device according to operation information of the power device, that is, may determine bandwidth resources allocated for emergency services in the SIM card resource; optionally, the operation information of the power equipment may include a bandwidth demand of each service, and may also include a historical bandwidth resource of each service; the power device may determine SIM card resource allocation information according to the bandwidth requirements of each service, for example: the bandwidth resource allocated for the emergency service in the SIM card resource, namely the SIM card resource allocation information, can be obtained after the sum of the bandwidth requirements of each service is multiplied by a preset coefficient; the power device may also determine SIM card resource allocation information according to the historical bandwidth resource amounts of each service, for example: the resource average value of the historical bandwidth resource quantity of each service can be determined, and the bandwidth resource allocated for the emergency service in the SIM card resource, namely the SIM card resource allocation information, can be obtained after the resource average value of each service is multiplied by a preset coefficient. It should be noted that, in this embodiment, the determination manner of the SIM card resource allocation information is not limited, and may be determined according to actual situations and any algorithm.
Step 302, determining slice configuration information according to the SIM card resource allocation information.
Optionally, after determining the SIM card resource allocation information according to the operation information of the power device, slice configuration information may be determined according to the SIM card resource allocation information, that is, a target resource for carrying emergency services in resources of each network slice may be determined according to the SIM card resource allocation information; optionally, the power device may determine, according to the urgency of the traffic carried by each network slice, a target resource for carrying the emergency traffic among the resources of each network slice; the target resource for bearing the emergency service in the resources of each network slice can be determined according to the priority of the service borne by each network slice; the ratio of the target resource in each network slice can be determined according to the urgency and/or priority of the service carried by each network slice, and further, the target resource used for carrying the urgent service in the resources of each network slice, namely slice configuration information, can be determined according to the ratio of the target resource in each network slice and the SIM card resource allocation information.
In this embodiment, the power device determines SIM card resource allocation information of the power device according to its own operation information, and further determines slice configuration information according to the SIM card resource allocation information; that is, in this embodiment, the resources required by the current SIM card are determined according to the operation information of the power device, and then the resources of each network slice are determined according to the resources required by the SIM card.
Through the analysis, the slice configuration information may include a target resource for carrying emergency service (fault service data generated by the service in an emergency) in each network slice corresponding to the power device, optionally, the slice configuration information may also include a current bandwidth resource for carrying normal service (service data generated by the service in a normal condition) in each network slice, and a reserved bandwidth resource in each network slice, where the reserved bandwidth resource may be used for carrying service data of the service in a special condition (preset service data generated by the service or service under a high load). That is, the above SIM card resource allocation information may also include an emergency bandwidth for carrying emergency services, a current bandwidth for carrying normal services, and a reserved bandwidth for carrying special services.
Therefore, in the above step 301, the power device determines, according to its own operation information, the SIM card resource allocation information of the power device, which may include the following three cases:
first kind:
the power equipment can determine the emergency bandwidth in the SIM card resource allocation information according to the operation information of the power equipment; optionally, the operation information of the power device may include an urgency of a traffic type of each network slice, and a maximum transmission bandwidth of each network slice; determining SIM card resource allocation information of the power equipment according to the urgency of the service type of each network slice and the maximum transmission bandwidth of each network slice; the SIM card resource allocation information comprises an emergency bandwidth of the SIM card; furthermore, slice configuration information can be determined according to the emergency bandwidth of the SIM card; the slice configuration information includes an emergency bandwidth for each network slice.
Optionally, the power equipment may be preset with urgency of different service types, and the service type corresponding to the service may be determined according to the service carried by the network slice or the service identifier, so as to determine the urgency corresponding to the service according to the urgency of the preset different service types, that is, the urgency of the service type of the network slice; optionally, the power device may determine a maximum transmission bandwidth of each network slice from the historical data of each network slice, and further, the power device may determine an emergency bandwidth of a SIM card resource of the power device according to the emergency degree of the service type of each network slice and the maximum transmission bandwidth of each network slice; alternatively, the power device may determine the emergency bandwidth of the SIM card resource according to the sum of the products of the urgency of the traffic type of each network slice and the maximum transmission bandwidth of each network slice, i.e., the power device may determine the emergency bandwidth of the SIM card resource according to formula (1).
Wherein B is 1 Emergency bandwidth for SIM card resources, alpha i For the urgency of the traffic type of the ith network slice, B i1 For the maximum transmission bandwidth of the ith network slice, Q is the number of the plurality of network slices corresponding to the plurality of services of the power device.
Then, after determining the SIM card resource allocation information including the emergency bandwidth of the SIM card, slice configuration information can be determined, namely, the emergency bandwidth resource in each network slice resource is determined according to the SIM card resource allocation information; optionally, the emergency bandwidth of each network slice may be determined according to the priority and/or the emergency degree of the service type of each network slice, so as to obtain the slice configuration information, for example: the specific gravity of the emergency bandwidth of each network slice can be determined according to the emergency degree of the service type of each network slice, and then the emergency bandwidth resource in each network slice resource is determined according to the specific gravity and the emergency bandwidth of the SIM card resource.
Second kind:
the power equipment can determine reserved bandwidth in the SIM card resource allocation information according to the running information of the power equipment; optionally, the operation information of the power device may include a priority of a service type of each network slice, and a minimum transmission bandwidth of each network slice; determining SIM card resource allocation information of the power equipment according to the priority of the service type of each network slice and the minimum transmission bandwidth of each network slice; the SIM card resource allocation information comprises reserved bandwidth of the SIM card; furthermore, slice configuration information can be determined according to the reserved bandwidth of the SIM card; the slice configuration information includes reserved bandwidth for each network slice.
Optionally, priorities of different service types may be preset in the power device, and according to a service carried by the network slice or the service identifier, a service type corresponding to the service may be determined, and further according to the preset priorities of different service types, a priority corresponding to the service, that is, a priority of a service type of the network slice is determined; optionally, the power device may determine a minimum transmission bandwidth of each network slice from the historical data of each network slice, and further, the power device may determine a reserved bandwidth of the SIM card resource of the power device according to the priority of the service type of each network slice and the minimum transmission bandwidth of each network slice; alternatively, the power device may determine the reserved bandwidth of the SIM card resource according to the sum of the products of the priority of the traffic type of each network slice and the minimum transmission bandwidth of each network slice, i.e., the power device may determine the reserved bandwidth of the SIM card resource according to formula (2).
Wherein B is 2 Reserved bandwidth for SIM card resources, beta i Priority of traffic type for the ith network slice, B i2 For the minimum transmission bandwidth of the ith network slice, Q is the number of the plurality of network slices corresponding to the plurality of services of the power device.
Then, after determining the SIM card resource allocation information including the reserved bandwidth of the SIM card, slice configuration information can be determined, namely, the reserved bandwidth resource in each network slice resource is determined according to the SIM card resource allocation information; optionally, the reserved bandwidth of each network slice may be determined according to the priority and/or urgency of the service type of each network slice, to obtain the slice configuration information, for example: the specific gravity of the reserved bandwidth of each network slice can be determined according to the priority of the service type of each network slice, and further the reserved bandwidth resource in each network slice resource is determined according to the specific gravity and the reserved bandwidth of the SIM card resource.
Third kind:
the power equipment can determine the current bandwidth in the SIM card resource allocation information according to the running information of the power equipment; optionally, the operation information of the power device may include a priority of a traffic type of each network slice, and a reference transmission bandwidth of each network slice; determining SIM card resource allocation information of the power equipment according to the priority of the service type of each network slice and the reference transmission bandwidth of each network slice; the SIM card resource allocation information comprises the current bandwidth of the SIM card; furthermore, slice configuration information can be determined according to the current bandwidth of the SIM card; the slice configuration information includes a current bandwidth for each network slice.
According to the method for determining the priority in the reserved bandwidth, the priority of the service type of each network slice can be determined; optionally, the power device may also preset a reference transmission bandwidth of a service type of each network slice, and further, the power device may determine a current bandwidth of a SIM card resource of the power device according to a priority of the service type of each network slice and the reference transmission bandwidth of each network slice; alternatively, the power device may determine the current bandwidth of the SIM card resource according to the sum of the products of the priority of the traffic type of each network slice and the reference transmission bandwidth of each network slice, i.e., the power device may determine the current bandwidth of the SIM card resource according to formula (3).
Wherein B is 3 Current bandwidth, beta, for SIM card resources i Priority of traffic type for the ith network slice, B i3 Reference transmission bandwidth for the ith network slice, Q is electricalThe number of the plurality of network slices corresponding to the plurality of services of the force device.
Then, after determining the SIM card resource allocation information including the current bandwidth of the SIM card, slice configuration information can be determined, namely, the current bandwidth resource in each network slice resource is determined according to the SIM card resource allocation information; optionally, the current bandwidth of each network slice may be determined according to the priority and/or urgency of the traffic type of each network slice, to obtain the slice configuration information, for example: the specific gravity of the current bandwidth of each network slice can be determined according to the priority of the service type of each network slice, and then the current bandwidth resource in each network slice resource is determined according to the specific gravity and the current bandwidth of the SIM card resource.
In summary, the slice configuration information may also include the emergency bandwidth, the reserved bandwidth, and the current bandwidth of each network slice.
It should be noted that, the above determination methods for the emergency bandwidth, the reserved bandwidth and the current bandwidth of the SIM card resource are only illustrated as an example, and the embodiments of the present application are not limited to specific allocation methods for three types of bandwidths of the SIM card resource.
The emergency bandwidth, the reserved bandwidth and the current bandwidth of the SIM card resources determined by the method can reasonably determine three bandwidth resources in the SIM card resources according to the actual operation information of the power equipment, can improve the rationality of dividing the SIM card resources, realizes the effective utilization of the SIM card resources, and further improves the utilization rate of the SIM card resources.
Fig. 4 is a flow chart of a slice resource allocation method in another embodiment. This embodiment relates to an optional implementation process of determining a priority of a service type of each network slice and a minimum transmission bandwidth of each network slice according to environmental information of a current location of a power device, as shown in fig. 4, where on the basis of the foregoing embodiment, the foregoing method further includes:
Step 401, determining the priority of the service type of each network slice according to the environment information and the preset mapping relation.
The preset mapping relation comprises a plurality of corresponding relations between different environment information and the priority of the service type of each network slice.
Optionally, under different environments, the priority of each service of the power device may be different, and the priority of the service type corresponding to each service may also be different; for example: in heavy rain, the priority of the electric power equipment such as rainfall collection sensors, transmission line tower monitoring equipment and the like in the region is required to be correspondingly improved, and conversely, in drought, the priority of the rainfall collection sensors can be correspondingly reduced.
The power equipment in this embodiment may collect environmental information of a current location, and determine a priority of a service type of each network slice according to the environmental information and a preset mapping relationship.
Step 402, determining a minimum transmission bandwidth of each network slice according to the priority of the service type of each network slice, the current data amount of the power equipment and the number of the network slices.
The current data volume of the power equipment is the current data volume used by the power equipment in the power communication network, and the number of network slices is the number of a plurality of network slices corresponding to a plurality of services of the power equipment.
Optionally, after the power device determines the priority of the service type of each network slice according to the current environmental information, the power device may determine the minimum transmission bandwidth of each network slice according to the priority of the service type of each network slice, the current data size of the power device, and the number of network slices, and optionally, the power device may determine the minimum transmission bandwidth of each network slice according to formula (4).
Wherein B is i2 Minimum transmission bandwidth, beta, for the ith network slice i Priority of traffic type for the ith network slice, d isThe current data volume of the power equipment, Q is the number of a plurality of network slices corresponding to a plurality of services of the power equipment.
In this embodiment, the priority of the service type of each network slice is determined according to the environmental information and the preset mapping relationship, and then the minimum transmission bandwidth of each network slice is determined according to the priority of the service type of each network slice, the current data size of the power equipment and the number of network slices; that is, in this embodiment, the priority of the service type of each network slice matched with the environmental information may be determined according to the changed environmental information, and further, the minimum transmission bandwidth of each network slice is determined according to the priority of the service type of the network slice and the current data amount of the power device in the power communication network, so that not only the priority of each service can be flexibly adjusted according to the environmental change, but also more transmission bandwidths can be configured for the network slices with higher priority according to the adjusted priority and the current data amount, thereby improving the flexibility and accuracy of resource allocation of the network slices, and further improving the processing efficiency of the network slices on service data.
Fig. 5 is a flow chart of a slice resource allocation method according to another embodiment. The embodiment relates to an optional implementation process of updating slice configuration information stored in a base station in the case that environmental information of a location where a power device is located changes, as shown in fig. 5, where on the basis of the above embodiment, the method further includes:
step 501, environmental information of the current position of the power equipment is collected according to a preset period, and whether the environmental information changes is judged.
The environmental information of the current position of the power equipment can comprise at least one or more environmental parameters such as temperature information, humidity information, rainfall information, wind power information and the like.
Optionally, the power equipment can periodically acquire the environmental information of the current position of the power equipment according to a preset period, and further judge whether the current environmental information changes according to the comparison of the current acquired environmental information and the environmental information acquired in the previous period; optionally, the power device may preset a change interval or a threshold of different environmental parameters, and for different change intervals or thresholds, weather types in different environments may be corresponding, for example: thunderstorm weather, high temperature weather, drought weather, etc.; the power equipment can determine the current weather type according to the current acquired environmental information and determine the weather type of the previous period according to the environmental information acquired in the previous period, further judge whether the current weather type is consistent with the weather type of the previous period, and if the current weather type is inconsistent with the weather type of the previous period, the environmental information can be determined to be changed.
Step 502, under the circumstance that the environmental information changes, generating new slice configuration information according to the currently acquired environmental information, and sending a slice configuration information update message to the base station, wherein the slice configuration information update message is used for indicating the base station to update the slice configuration information according to the new slice configuration information.
Optionally, in the case that the power device determines that the current environmental information changes, new slice configuration information may be generated according to the currently collected environmental information, and the power device may determine the new slice configuration information according to the first, second and third methods, where the new slice configuration information includes an emergency bandwidth, a reserved bandwidth and a current bandwidth required by each network slice of the power device in the current environment; then, the power equipment can send a slice configuration information update message carrying the new slice configuration information to the base station, so that the base station updates the slice configuration information according to the new slice configuration information after receiving the slice configuration information update message, and further, the base station allocates bandwidth resources for each network slice corresponding to the power equipment according to the updated slice configuration information.
In the embodiment, environmental information of the current position of the power equipment is collected according to a preset period, and whether the environmental information changes is judged; under the condition that the environment information changes, generating new slice configuration information according to the currently acquired environment information, and sending a slice configuration information update message to the base station, wherein the slice configuration information update message is used for indicating the base station to update the slice configuration information according to the new slice configuration information. That is, in this embodiment, the slice configuration information of each service corresponding to each network slice can be adjusted in real time along with the change of the environmental information of the location where the power device is located, so that the slice configuration information adjusted in real time can meet the use requirement of each service in the current environment, and the flexibility and accuracy of the network slice resource configuration are improved. In addition, for the base station, the resource allocation of each network slice can be timely adjusted according to the change of the demand of the power equipment (terminal equipment) accessed to the network, so as to meet the resource demand of each service of the power equipment, and improve the network communication efficiency of each service of the power equipment.
It should be understood that, although the steps in the flowcharts of fig. 2-5 are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in fig. 2-5 may include multiple steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor does the order in which the steps or stages are performed necessarily performed in sequence, but may be performed alternately or alternately with at least a portion of the steps or stages in other steps or other steps.
In one embodiment, as shown in fig. 6, there is provided a slice resource allocation apparatus, including: a first determining module 601 and a transmitting module 602, wherein:
a first determining module 601, configured to determine slice configuration information according to operation information of the power device, and send the slice configuration information to the base station; the slice configuration information comprises bandwidth allocation information of each network slice in a plurality of network slices corresponding to a plurality of services of the power equipment, wherein the bandwidth allocation information is used for indicating a target resource for bearing emergency services in resources of the network slice corresponding to the bandwidth allocation information.
And a sending module 602, configured to send a connection request to the base station when the target emergency service is triggered, where the connection request is used to instruct the base station to allocate a target resource for the target emergency service according to the slice configuration information.
In one embodiment, the first determining module 601 includes a first determining unit and a second determining unit; the first determining unit is used for determining user identification (SIM) card resource allocation information of the power equipment according to the operation information of the power equipment; and the second determining unit is used for determining slice configuration information according to the SIM card resource allocation information.
In one embodiment, the operation information of the power device includes an emergency degree of a traffic type of each network slice, and a maximum transmission bandwidth of each network slice; the first determining unit is specifically configured to determine SIM card resource allocation information of the power device according to the urgency of the service type of each network slice and the maximum transmission bandwidth of each network slice; the SIM card resource allocation information comprises an emergency bandwidth of the SIM card; the second determining unit is specifically configured to determine slice configuration information according to the emergency bandwidth of the SIM card; the slice configuration information includes an emergency bandwidth for each network slice.
In one embodiment, the operation information of the power device includes a priority of a traffic type of each network slice, and a minimum transmission bandwidth of each network slice; the first determining unit is specifically configured to determine SIM card resource allocation information of the power device according to a priority of a service type of each network slice and a minimum transmission bandwidth of each network slice; the SIM card resource allocation information comprises reserved bandwidth of the SIM card; the second determining unit is specifically configured to determine slice configuration information according to the reserved bandwidth of the SIM card; the slice configuration information includes reserved bandwidth for each network slice.
In one embodiment, the operation information of the power device includes a priority of a traffic type of each network slice, and a reference transmission bandwidth of each network slice; the first determining unit is specifically configured to determine SIM card resource allocation information of the power device according to the priority of the service type of each network slice and the reference transmission bandwidth of each network slice; the SIM card resource allocation information comprises the current bandwidth of the SIM card; the second determining unit is specifically configured to determine slice configuration information according to the current bandwidth of the SIM card; the slice configuration information includes a current bandwidth for each network slice.
In one embodiment, the operation information of the power device further includes environmental information of a current location of the power device, and a current data amount of the power device, and the apparatus further includes: a second determination module and a third determination module; the second determining module is used for determining the priority of the service type of each network slice according to the environment information and a preset mapping relation; the preset mapping relation comprises a plurality of corresponding relations between different environment information and the priority of the service type of each network slice; and the third determining module is used for determining the minimum transmission bandwidth of each network slice according to the priority of the service type of each network slice, the current data volume of the power equipment and the number of the network slices.
In one embodiment, the apparatus further comprises: the system comprises an acquisition module and an updating module; the acquisition module is used for acquiring the environmental information of the current position of the power equipment according to a preset period and judging whether the environmental information changes or not; and the updating module is used for generating new slice configuration information according to the currently acquired environmental information under the condition that the environmental information is changed, and sending a slice configuration information updating message to the base station, wherein the slice configuration information updating message is used for indicating the base station to update the slice configuration information according to the new slice configuration information.
For specific limitations of the slice resource allocation apparatus, reference may be made to the above limitation of the slice resource allocation method, and no further description is given here. The respective modules in the slice resource allocation apparatus described above may be implemented in whole or in part by software, hardware, or a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a terminal, which may be each power device in a power system, and an internal structure diagram thereof may be as shown in fig. 7. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device 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 includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a slice resource allocation method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in fig. 7 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than 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 stored therein a computer program, the processor when executing the computer program performing the steps of:
determining slice configuration information according to the operation information of the power equipment, and sending the slice configuration information to the base station; the slice configuration information comprises bandwidth allocation information of each network slice in a plurality of network slices corresponding to a plurality of services of the power equipment, wherein the bandwidth allocation information is used for indicating a target resource for bearing emergency services in resources of the network slice corresponding to the bandwidth allocation information;
and when the target emergency service is triggered, sending a connection request to the base station, wherein the connection request is used for indicating the base station to allocate target resources for the target emergency service according to the slice configuration information.
In one embodiment, the processor when executing the computer program further performs the steps of: determining Subscriber Identity Module (SIM) card resource allocation information of the power equipment according to the operation information of the power equipment; and determining slice configuration information according to the SIM card resource allocation information.
In one embodiment, the processor when executing the computer program further performs the steps of: the operation information of the power equipment comprises the emergency degree of the service type of each network slice and the maximum transmission bandwidth of each network slice; determining SIM card resource allocation information of the power equipment according to the urgency of the service type of each network slice and the maximum transmission bandwidth of each network slice; the SIM card resource allocation information comprises an emergency bandwidth of the SIM card; determining slice configuration information according to the emergency bandwidth of the SIM card; the slice configuration information includes an emergency bandwidth for each network slice.
In one embodiment, the processor when executing the computer program further performs the steps of: the operation information of the power equipment comprises the priority of the service type of each network slice and the minimum transmission bandwidth of each network slice; determining SIM card resource allocation information of the power equipment according to the priority of the service type of each network slice and the minimum transmission bandwidth of each network slice; the SIM card resource allocation information comprises reserved bandwidth of the SIM card; determining slice configuration information according to the reserved bandwidth of the SIM card; the slice configuration information includes reserved bandwidth for each network slice.
In one embodiment, the processor when executing the computer program further performs the steps of: the operation information of the power equipment comprises the priority of the service type of each network slice and the reference transmission bandwidth of each network slice; determining SIM card resource allocation information of the power equipment according to the priority of the service type of each network slice and the reference transmission bandwidth of each network slice; the SIM card resource allocation information comprises the current bandwidth of the SIM card; determining slice configuration information according to the current bandwidth of the SIM card; the slice configuration information includes a current bandwidth for each network slice.
In one embodiment, the processor when executing the computer program further performs the steps of: the operation information of the power equipment further comprises environment information of the current position of the power equipment and the current data volume of the power equipment, and the priority of the service type of each network slice is determined according to the environment information and a preset mapping relation; the preset mapping relation comprises a plurality of corresponding relations between different environment information and the priority of the service type of each network slice; and determining the minimum transmission bandwidth of each network slice according to the priority of the service type of each network slice, the current data volume of the power equipment and the number of the network slices.
In one embodiment, the processor when executing the computer program further performs the steps of: acquiring environmental information of the current position of the power equipment according to a preset period, and judging whether the environmental information changes or not; under the condition that the environment information changes, generating new slice configuration information according to the currently acquired environment information, and sending a slice configuration information update message to the base station, wherein the slice configuration information update message is used for indicating the base station to update the slice configuration information according to the new slice configuration information.
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 slice configuration information according to the operation information of the power equipment, and sending the slice configuration information to the base station; the slice configuration information comprises bandwidth allocation information of each network slice in a plurality of network slices corresponding to a plurality of services of the power equipment, wherein the bandwidth allocation information is used for indicating a target resource for bearing emergency services in resources of the network slice corresponding to the bandwidth allocation information;
and when the target emergency service is triggered, sending a connection request to the base station, wherein the connection request is used for indicating the base station to allocate target resources for the target emergency service according to the slice configuration information.
In one embodiment, the computer program when executed by the processor further performs the steps of: determining Subscriber Identity Module (SIM) card resource allocation information of the power equipment according to the operation information of the power equipment; and determining slice configuration information according to the SIM card resource allocation information.
In one embodiment, the computer program when executed by the processor further performs the steps of: the operation information of the power equipment comprises the emergency degree of the service type of each network slice and the maximum transmission bandwidth of each network slice; determining SIM card resource allocation information of the power equipment according to the urgency of the service type of each network slice and the maximum transmission bandwidth of each network slice; the SIM card resource allocation information comprises an emergency bandwidth of the SIM card; determining slice configuration information according to the emergency bandwidth of the SIM card; the slice configuration information includes an emergency bandwidth for each network slice.
In one embodiment, the computer program when executed by the processor further performs the steps of: the operation information of the power equipment comprises the priority of the service type of each network slice and the minimum transmission bandwidth of each network slice; determining SIM card resource allocation information of the power equipment according to the priority of the service type of each network slice and the minimum transmission bandwidth of each network slice; the SIM card resource allocation information comprises reserved bandwidth of the SIM card; determining slice configuration information according to the reserved bandwidth of the SIM card; the slice configuration information includes reserved bandwidth for each network slice.
In one embodiment, the computer program when executed by the processor further performs the steps of: the operation information of the power equipment comprises the priority of the service type of each network slice and the reference transmission bandwidth of each network slice; determining SIM card resource allocation information of the power equipment according to the priority of the service type of each network slice and the reference transmission bandwidth of each network slice; the SIM card resource allocation information comprises the current bandwidth of the SIM card; determining slice configuration information according to the current bandwidth of the SIM card; the slice configuration information includes a current bandwidth for each network slice.
In one embodiment, the computer program when executed by the processor further performs the steps of: the operation information of the power equipment further comprises environment information of the current position of the power equipment and the current data volume of the power equipment, and the priority of the service type of each network slice is determined according to the environment information and a preset mapping relation; the preset mapping relation comprises a plurality of corresponding relations between different environment information and the priority of the service type of each network slice; and determining the minimum transmission bandwidth of each network slice according to the priority of the service type of each network slice, the current data volume of the power equipment and the number of the network slices.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring environmental information of the current position of the power equipment according to a preset period, and judging whether the environmental information changes or not; under the condition that the environment information changes, generating new slice configuration information according to the currently acquired environment information, and sending a slice configuration information update message to the base station, wherein the slice configuration information update message is used for indicating the base station to update the slice configuration information according to the new slice configuration information.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, or the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples merely represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the invention. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application is to be determined by the claims appended hereto.