Communication method and communication apparatus
A communication method includes that a first network device generates indication information based on service usage of a first network slice and a service usage threshold of the first network slice, and sends the indication information to a second network device. The second network device controls resource pre-emption based on the indication information.
1 . A communication method implemented by a second network device, wherein the communication method comprises:
receiving, from a first network device, indication information;
releasing, based on indication information being a first indication and for first service data that is to access a first network slice, a first resource for second service data that has accessed the first network slice; and
forbidding, based on indication information being a second indication, a second resource for third service data that has accessed the first network slice from being pre-empted by any piece of fourth service data that is to access a second network slice.
2 . The communication method of claim 1 , further comprising releasing, for the first service data, the first resource for the second service data when the indication information either instructs the second network device to release, for the first service data, the first resource for the second service data or indicates that a service usage of the first network slice is greater than or equal to an upper service usage limit of the first network slice.
3 . The communication method of claim 2 , further comprising:
determining, based on the indication information, to forbid pre-empting, for the first service data, a third resource for fifth service data that has accessed a third network slice other than the first network slice; and
determining, based on a first authorized quality of service (QoS) parameter of the first service data and a second authorized QoS parameter of the second service data, the second service data, wherein a first priority level of the first service data is higher than a second priority level of the second service data, wherein a pre-emption capability parameter in a first allocation and retention priority (ARP) parameter in the first authorized QoS parameter is set to “pre-empt allowed,” and wherein a pre-emption vulnerability parameter in a second ARP parameter in the second authorized QoS parameter is set to “pre-empted allowed”.
4 . The communication method of claim 2 , wherein the upper service usage limit comprises at least one of a maximum quantity of sessions allowed to access the first network slice, a maximum bandwidth of traffic allowed to access the first network slice, or a maximum session density allowed for the first network slice.
5 . The communication method of claim 1 , further comprising further forbidding the second resource for any piece of the third service data when the indication information indicates, to the second network device, that the second resource for the any piece of the third service data that has accessed the first network slice is not pre-empted by the any piece of the fourth service data or that a service usage of the first network slice is less than or equal to a lower service usage limit of the first network slice.
6 . The communication method of claim 5 , wherein the lower service usage limit comprises at least one of a minimum quantity of sessions guaranteed to access the first network slice, a minimum bandwidth of traffic guaranteed to access the first network slice, or a minimum session density guaranteed for the first network slice.
7 . The communication method of claim 1 , further comprising:
identifying that the second network device has forbidden, based on the indication information, the second resource for any piece of the third service data; and
setting, in response to identifying, a pre-emption vulnerability parameter in an allocation and retention priority (ARP) parameter of each piece of the second service data to “pre-empted unallowed”.
8 . The communication method of claim 1 , wherein the first service data or the second service data is a first quality of service (QoS) flow or a first protocol data unit (PDU) session, or wherein the fourth service data or fifth service data that has accessed the second network slice is a second QoS flow or a second PDU session.
9 . A communication apparatus comprising:
a transceiver configured to receive, from a first network device, indication information; and
a processor coupled to the transceiver and configured to:
release, based on the indication information being a first indication and for first service data that is to access a first network slice, a first resource for second service data that has accessed the first network slice; and
forbid, based on the indication information being a second indication, a second resource for third service data that has accessed the first network slice from being pre-empted by any piece of fourth service data that is to access a second network slice.
10 . The communication apparatus of claim 9 , wherein the processor is further configured to release, for the first service data, the first resource for the second service data when the indication information either instructs to release, for the first service data, the first resource for the second service data or indicates that a service usage of the first network slice is greater than or equal to an upper service usage limit of the first network slice.
11 . The communication apparatus of claim 10 , wherein the processor is further configured to:
determine, based on the indication information, to forbid pre-empting, for the first service data, a third resource for fifth service data that has accessed a third network slice other than the first network slice; and
determine, based on a first authorized quality of service (QoS) parameter of the first service data and a second authorized QoS parameter of the second service data, the second service data, wherein a first priority level of the first service data is higher than a second priority level of the second service data, wherein a pre-emption capability parameter in a first allocation and retention priority (ARP) parameter in the first authorized QoS parameter of the first service data is set to “pre-empt allowed,” and wherein a pre-emption vulnerability parameter in a second ARP parameter in the second authorized QoS parameter is set to “pre-empted allowed”.
12 . The communication apparatus of claim 10 , wherein the upper service usage limit comprises at least one of a maximum quantity of sessions allowed to access the first network slice, a maximum bandwidth of traffic allowed to access the first network slice, or a maximum session density allowed for the first network slice.
13 . The communication apparatus of claim 9 , further comprising further forbidding the second resource for any piece of the third service data when the indication information indicates, to the second network device, that the second resource for the any piece of the third service data that has accessed the first network slice is not pre-empted by the any piece of the fourth service data or that a service usage of the first network slice is less than or equal to a lower service usage limit of the first network slice.
14 . The communication apparatus of claim 13 , wherein the lower service usage limit comprises at least one of a minimum quantity of sessions guaranteed to access the first network slice, a minimum bandwidth of traffic guaranteed to access the first network slice, or a minimum session density guaranteed for the first network slice.
15 . The communication apparatus of claim 9 , further comprising:
identifying that the second network device has forbidden, based on the indication information, the second resource for any piece of the third service data; and
setting, in response to identifying, a pre-emption vulnerability parameter in an allocation and retention priority (ARP) parameter of each piece of the second service data to “pre-empted unallowed”.
16 . The communication apparatus of claim 9 , wherein the first service data or the second service data is a first quality of service (QoS) flow or a first protocol data unit (PDU) session, or wherein the fourth service data or fifth service data that has accessed the second network slice is a second QoS flow or a second PDU session.
17 . A non-transitory computer-readable medium containing instructions that when executed by a processor cause the processor to:
receive, from a first network device, indication information;
release, based on the indication information being a first indication and for first service data that is to access a first network slice, a first resource for second service data that has accessed the first network slice; and
forbid, based on the indication information being a second indication, a second resource for third service data that has accessed the first network slice from being pre-empted by any piece of fourth service data that is to access a second network slice.
18 . The non-transitory computer-readable medium of claim 17 , wherein the instructions when executed by the processor further cause the processor to release, for the first service data, the first resource for the second service data when the indication information either instructs to release, for the first service data, the first resource for the second service data or indicates that a service usage of the first network slice is greater than or equal to an upper service usage limit of the first network slice.
19 . The non-transitory computer-readable medium of claim 18 , wherein the instructions when executed by the processor further cause the processor to:
determine, based on the indication information, to forbid pre-empting, for the first service data, a third resource for fifth service data that has accessed a third network slice other than the first network slice; and
determine, based on a first authorized quality of service (QoS) parameter of the first service data and a second authorized QoS parameter of the second service data, the second service data, wherein a first priority level of the first service data is higher than a second priority level of the second service data, wherein a pre-emption capability parameter in a first allocation and retention priority (ARP) parameter in the first authorized QoS parameter of the first service data is set to “pre-empt allowed,” and wherein a pre-emption vulnerability parameter in a second ARP parameter in the second authorized QoS parameter is set to “pre-empted allowed”.
20 . The non-transitory computer-readable medium of claim 18 , wherein the upper service usage limit comprises at least one of a maximum quantity of sessions allowed to access the first network slice, a maximum bandwidth of traffic allowed to access the first network slice, or a maximum session density allowed for the first network slice.