Service data flow transmission method, communication apparatus, and communication system
Embodiments of this application provide for a service data flow transmission method, a communication apparatus, and a communication system. In the method, a network device obtains, from one or more received data packets, an identifier of a first data packet group, information indicating generation time of the first data packet group, and downlink transmission time window information of the first data packet group. Also in the method, the network device sends a data packet in the first data packet group to an access network device. At least one data packet in the first data packet group is sent together with the identifier of the first data packet group, the information indicating the generation time of the first data packet group, and the downlink transmission time window information of the first data packet group.
1 . A service data flow transmission method, comprising:
obtaining, by a network device from one or more received data packets in a first data packet group of a first service data flow, an identifier of the first data packet group, information indicating a generation time of the first data packet group, quantity information of the first data packet group, and downlink transmission time window information of the first data packet group;
obtaining, by the network device from one or more received data packets in a second data packet group of a second service data flow, an identifier of the second data packet group, information indicating a generation time of the second data packet group, quantity information of the second data packet group, and downlink transmission time window information of the second data packet group;
determining, by the network device, a scheduling priority of the first data packet group based on the quantity information of the first data packet group, the quantity information of the second data packet group, the information indicating the generation time of the first data packet group, the information indicating the generation time of the second data packet group, the downlink transmission time window information of the first data packet group, and the downlink transmission time window information of the second data packet group; and
sending, by the network device, a data packet in the first data packet group to an access network device based on the scheduling priority of the first data packet group.
2 . The method according to claim 1 , further comprising:
receiving, by the network device, the one or more data packets from an application function network element.
3 . The method according to claim 1 , further comprising:
caching, by the network device, N data packets in the first data packet group, wherein N is an integer greater than 1; and
the sending, by the network device, the data packet in the first data packet group to the access network device comprises:
obtaining, by the network device, the N cached data packets, and sending the N data packets to the access network device.
4 . The method according to claim 3 , further comprising:
determining, by the network device based on the quantity information of the first data packet group, a quantity N of cached data packets in the first data packet group.
5 . The method according to claim 3 , further comprising:
determining, by the network device, cache time of the N data packets based on the information indicating the generation time of the first data packet group and the downlink transmission time window information of the first data packet group.
6 . The method according to claim 1 , wherein the determining, by the network device, the scheduling priority of the first data packet group based on the quantity information of the first data packet group, the quantity information of the second data packet group, the information indicating the generation time of the first data packet group, the information indicating the generation time of the second data packet group, the downlink transmission time window information of the first data packet group, and the downlink transmission time window information of the second data packet group comprises:
determining, by the network device, a processing time of the first data packet group based on the quantity information of the first data packet group and a rate of the first service data flow; and determining a remaining transmission time of the first data packet group based on the processing time of the first data packet group, the information indicating the generation time of the first data packet group, and the downlink transmission time window information of the first data packet group;
determining, by the network device, a processing time of the second data packet group based on the quantity information of the second data packet group and a rate of the second service data flow; and determining a remaining transmission time of the second data packet group based on the processing time of the second data packet group, the information indicating the generation time of the second data packet group, and the downlink transmission time window information of the second data packet group; and
determining, by the network device, the scheduling priority of the first data packet group based on the remaining transmission time of the first data packet group and the remaining transmission time of the second data packet group.
7 . The method according to claim 1 , further comprising:
receiving, by the network device, indication information, wherein the indication information indicates the network device to perform transmission control on the first service data flow at a data packet group level of granularity.
8 . A service data flow transmission method, comprising:
obtaining, by an access network device, information indicating a generation time of a first data packet group and downlink transmission time window information of the first data packet group from one or more received data packets in the first data packet group of a first service data flow;
determining, by the access network device, a remaining transmission time of the first data packet group based on the information indicating the generation time of the first data packet group and the downlink transmission time window information of the first data packet group;
obtaining, by the access network device from one or more received data packets in a second data packet group of a second service data flow, information indicating a generation time of the second data packet group and downlink transmission time window information of the second data packet group; and
determining, by the access network device, remaining transmission time of the second data packet group based on the information indicating the generation time of the second data packet group and the downlink transmission time window information of the second data packet group;
determining, by the access network device, a scheduling priority of the first data packet group based on the remaining transmission time of the first data packet group and the remaining transmission time of the second data packet group;
and
sending, by the access network device, a data packet in the first data packet group to a terminal device based on the remaining transmission time of the first data packet group and the scheduling priority of the first data packet group.
9 . The method according to claim 8 , further comprising:
obtaining, by the access network device, quantity information of the first data packet group from the one or more received data packets in the first data packet group; and
determining, by the access network device based on the quantity information of the first data packet group and the remaining transmission time of the first data packet group, a modulation and coding scheme corresponding to the first data packet group, wherein the sending, by the access network device, the data packet in the first data packet group to the terminal device based on the remaining transmission time of the first data packet group comprises:
sending, by the access network device, the data packet in the first data packet group to the terminal device based on the modulation and coding scheme corresponding to the first data packet group and the remaining transmission time of the first data packet group.
10 . The method according to claim 9 , wherein the determining, by the access network device based on the quantity information of the first data packet group and the remaining transmission time of the first data packet group, the modulation and coding scheme corresponding to the first data packet group comprises:
determining, by the access network device based on the quantity information of the first data packet group and the remaining transmission time of the first data packet group, a first modulation and coding scheme corresponding to a first portion of data packets received earlier in the first data packet group and a second modulation and coding scheme corresponding to a second portion of the data packets received later in the first data packet group, wherein a level of the first modulation and coding scheme is lower than a level of the second modulation and coding scheme; and
the sending, by the access network device, the data packet in the first data packet group to the terminal device based on the modulation and coding scheme corresponding to the first data packet group and the remaining transmission time of the first data packet group comprises:
sending, by the access network device, the first portion of the data packets in the first data packet group to the terminal device based on the first modulation and coding scheme and the remaining transmission time of the first data packet group; and
sending, by the access network device, the second portion of the data packets in the first data packet group to the terminal device based on the second modulation and coding scheme and the remaining transmission time of the first data packet group.
11 . The method according to claim 8 , further comprising:
receiving, by the access network device, indication information, wherein the indication information indicates the access network device to perform transmission control at a data packet group level of granularity on the first service data flow.
12 . A communication apparatus, comprising at least one processor coupled to at least one memory for storing instructions and configured to execute the instructions to cause the apparatus to:
obtain, from one or more received data packets in a first data packet group of a first service data flow, an identifier of the first data packet group, information indicating a generation time of the first data packet group, quantity information of the first data packet group, and downlink transmission time window information of the first data packet group;
obtain, from one or more received data packets in a second data packet group of a second service data flow, an identifier of the second data packet group, information indicating a generation time of the second data packet group, quantity information of the second data packet group, and downlink transmission time window information of the second data packet group;
determine, a scheduling priority of the first data packet group based on the quantity information of the first data packet group, the quantity information of the second data packet group, the information indicating the generation time of the first data packet group, the information indicating the generation time of the second data packet group, the downlink transmission time window information of the first data packet group, and the downlink transmission time window information of the second data packet group; and
send a data packet in the first data packet group to an access network device based on the scheduling priority of the first data packet group.
13 . The communication apparatus according to claim 12 , wherein the at least one processor is configured to execute the instructions to cause the apparatus further to:
receive the one or more data packets from an application function network element.
14 . The communication apparatus according to claim 12 , wherein the at least one processor is configured to execute the instructions to cause the apparatus further to:
cache N data packets in the first data packet group, wherein N is an integer greater than 1; and
the sending of the data packet in the first data packet group to the access network device comprises:
obtaining the N cached data packets, and sending the N data packets to the access network device.
15 . The communication apparatus according to claim 14 , wherein the at least one processor is configured to execute the instructions to cause the apparatus further to:
determine, based on the quantity information of the first data packet group, a quantity N of cached data packets in the first data packet group.
16 . The communication apparatus according to claim 14 , wherein the at least one processor is configured to execute the instructions to cause the apparatus further to:
determine a cache time of the N data packets based on the information indicating the generation time of the first data packet group and the downlink transmission time window information of the first data packet group.
17 . The communication apparatus according to claim 12 , wherein the determining of the scheduling priority of the first data packet group based on the quantity information of the first data packet group, the quantity information of the second data packet group, the information indicating the generation time of the first data packet group, the information indicating the generation time of the second data packet group, the downlink transmission time window information of the first data packet group, and the downlink transmission time window information of the second data packet group comprises:
determining a processing time of the first data packet group based on the quantity information of the first data packet group and a rate of the first service data flow; and determining a remaining transmission time of the first data packet group based on the processing time of the first data packet group, the information indicating the generation time of the first data packet group, and the downlink transmission time window information of the first data packet group;
determining a processing time of the second data packet group based on the quantity information of the second data packet group and a rate of the second service data flow; and determining a remaining transmission time of the second data packet group based on the processing time of the second data packet group, the information indicating the generation time of the second data packet group, and the downlink transmission time window information of the second data packet group; and
determining the scheduling priority of the first data packet group based on the remaining transmission time of the first data packet group and the remaining transmission time of the second data packet group.
18 . A communication apparatus, comprising at least one processor coupled to at least one memory for storing instructions and configured to execute the instructions to cause the apparatus to:
obtain information indicating a generation time of a first data packet group and downlink transmission time window information of the first data packet group from one or more first received data packets in the first data packet group of a first service data flow;
determine a remaining transmission time of the first data packet group based on the information indicating the generation time of the first data packet group and the downlink transmission time window information of the first data packet group;
obtain, from one or more received second data packets in a second data packet group of a second service data flow, information indicating a generation time of the second data packet group and downlink transmission time window information of the second data packet group; and
determine, remaining transmission time of the second data packet group based on the information indicating the generation time of the second data packet group and the downlink transmission time window information of the second data packet group;
determine, a scheduling priority of the first data packet group based on the remaining transmission time of the first data packet group and the remaining transmission time of the second data packet group; and
send a data packet in the first data packet group to a terminal device based on the remaining transmission time of the first data packet group and the scheduling priority of the first data packet group.