TECHNICAL FIELD
[0002] This application relates to the field of communication technologies, and in particular,
to a transmission rate configuration method and an apparatus.
BACKGROUND
[0003] In current wireless fidelity (wireless fidelity, WIFI) network communication, a WIFI
signal may be provided by an access point (for example, an access hotspot (access
point, AP)), for accessing the Internet (Internet) by a terminal device (or may be
referred to as a station (station, STA)) that has a WIFI communication function, such
as a mobile phone or a tablet computer.
[0004] Currently, when determining a transmission rate of a data stream, a gateway device
is not concerned about a service type of a service to which the data stream belongs,
for example, chooses to configure transmission rates for data streams of different
services in a throughput maximizing manner. The transmission rate is used to guarantee
that the data stream can obtain a data transmission guarantee during transmission,
for example, obtain guarantees in terms of a latency, bandwidth, and a packet loss
rate (packet error rate, PER).
[0005] However, with continuous extension of a service type, a throughput is no longer an
only concerned indicator in a service data transmission process. Therefore, if a transmission
rate is configured based on a throughput or another single principle, data transmission
guarantee requirements of different services cannot be met. Therefore, an existing
transmission rate configuration manner of the gateway device needs to be improved.
SUMMARY
[0006] This application provides a transmission rate configuration method and an apparatus,
to improve flexibility of downlink transmission rate configuration of an access point,
so that a downlink data transmission process meets requirements of different services.
[0007] According to a first aspect, this application provides a transmission rate configuration
method. The method may be performed by an access point or a chip in the access point.
The access point in this application is configured to provide a WIFI signal. A specific
form of the access point may be a device that can provide a WIFI signal, such as an
access hotspot, customer premises equipment (customer premises equipment, CPE), or
a gateway.
[0008] According to the method, the access point may determine a service type of a service
to which a data stream belongs, and configure a transmission rate of the data stream
based on the service type.
[0009] In the foregoing method, the access point may configure, based on a service characteristic
of the data stream, the transmission rate used when the data stream is sent. Therefore,
the configured transmission rate meets a requirement of the service to which the data
stream belongs, thereby improving flexibility of a transmission rate configuration
process, so that a downlink data transmission process meets transmission requirements
of different services.
[0010] In a possible example, when the service type is used to indicate that the service
to which the data stream belongs is a first-type service, the access point may configure
the transmission rate of the data stream as a first transmission rate. The first transmission
rate is not greater than a first rate threshold. A transmission latency required by
the first-type service is not higher than a latency threshold.
[0011] In this method, when the service to which the data stream belongs is the first-type
service that has a relatively high transmission latency requirement, a relatively
small transmission rate may be configured for the data stream, so that a packet loss
rate in a data transmission process is reduced by reducing a sending rate, to reduce
a transmission latency. The first-type service is a real-time online service such
as multiplayer online battle arena (multiplayer online battle arena, MOBA), Player
Unknown's Battlegrounds, or red packet grabbing.
[0012] In another possible example, when the service type is used to indicate that the service
to which the data stream belongs is a download service, such as a hypertext transfer
protocol (hypertext transfer protocol, HTTP) download service, the access point may
configure the transmission rate of the data stream as the second transmission rate.
The second transmission rate is not less than a second rate threshold.
[0013] In this method, for a data stream of the HTTP download service, the access point
may reduce a packet loss rate in downlink transmission by using a relatively high
transmission rate, so that packet retransmissions are reduced by reducing packet losses,
to obtain stable high-rate download experience.
[0014] In addition, the access point may alternatively configure the transmission rate of
the data stream based on the service type of the data stream and traffic information
of the data stream.
[0015] In this method, the access point determines the transmission rate of the data stream
by considering the service type of the data stream and the traffic information of
the data stream, thereby further improving flexibility of data stream transmission
rate configuration.
[0016] In a possible example, when the service type indicates that the service to which
the data stream belongs is a second-type service, and the traffic information indicates
that a traffic peak value of the data stream is not lower than n times of average
traffic of the data stream, the access point may configure the transmission rate of
the data stream to be not less than x times of the average traffic of the data stream,
where x is greater than 1. A packet loss rate required by the second-type service
is not higher than a packet loss rate threshold, and n is greater than 1. For example,
x is greater than n.
[0017] In this method, for a service that requires a relatively high packet loss rate and
has a relatively severe traffic burst in a data stream, the access point may configure
a transmission rate of the data stream based on average traffic of the data stream,
so that the transmission rate is not lower than x times of the average traffic (x
is greater than 1), to provide a stable air interface transmission rate for the service,
thereby avoiding a packet loss caused by a transmission rate selection change due
to air interface fluctuation, improving an anti-interference capability in downlink
data transmission, and guaranteeing good experience of the service.
[0018] In this example, the access point may further perform traffic shaping on the data
stream, so that traffic fluctuation is smoother after the shaping, to reduce a traffic
burst occurrence probability. Therefore, an anti-interference capability in downlink
data transmission can be further improved.
[0019] In another example, the access point may further obtain a communication status parameter
of the access point and a receive end. The receive end is configured to receive the
data stream. The access point may configure the transmission rate of the data stream
based on the service type of the service to which the data stream belongs and the
communication status parameter, or the access point may configure the transmission
rate of the data stream based on the service type of the service to which the data
stream belongs, a traffic model of the data stream, and the communication status parameter.
[0020] In this method, the access point determines the transmission rate of the data stream
by considering the service type of the data stream, the traffic information of the
data stream, and/or the communication status parameter of the access point and the
receive end, thereby further improving flexibility of data stream transmission rate
configuration.
[0021] The communication status parameter includes a part or all of the following parameters:
an air interface bit error rate; an air interface retransmission rate; or an air interface
rate of the receive end.
[0022] It should be understood that, when configuring the transmission rate of the data
stream, the access point may determine a transmission rate parameter of the data stream
based on the service type. The transmission rate parameter of the data stream includes
a part or all of the following parameters: a modulation and coding scheme (modulation
and coding scheme, MCS) rate; an aggregation degree of an aggregate (aggregation)
media access control (media access control, MAC) service data unit (MAC service data
unit, MSDU) (A-MSDU); an aggregation degree of an aggregate MAC protocol data unit
(MAC protocol data unit, MPDU) (A-MPDU); or a queue allocation rule of Wi-Fi multimedia
(WIFI multi-media, WMM).
[0023] According to a second aspect, this application provides a communications apparatus.
The communications apparatus may be an access point or a chip in the access point.
The communications apparatus may be configured to perform the function, the step,
or the operation provided in any one of the first aspect or the possible designs of
the first aspect. The communications apparatus may implement functions, the steps,
or the operations in the foregoing methods in a form of a hardware structure, a software
module, or a combination of the hardware structure and the software module. For example,
function modules corresponding to the functions, the steps, or the operations in the
foregoing methods may be disposed in the communications apparatus, to support the
communications apparatus in performing the foregoing methods.
[0024] When the communications apparatus in the second aspect is implemented by using a
software module, the communications apparatus may include a communications module
and a processing module that are coupled to each other. The communications module
may be configured to support the communications apparatus in performing communication
and configuring a parameter required for communication. The processing module may
be used by the communications apparatus to perform a processing operation, for example,
generate information/a message that needs to be sent by using the communications module,
or process a signal received by the communications module, to obtain information/a
message.
[0025] For example, the processing module may be configured to determine a service type
of a service to which a data stream belongs. The communications module may be configured
to configure a transmission rate of the data stream based on the service type.
[0026] In addition, the communications module may be further configured to send the data
stream based on the configured transmission rate.
[0027] In a possible example, when the service type is used to indicate that the service
to which the data stream belongs is a first-type service, the communications module
may configure the transmission rate of the data stream as a first transmission rate.
The first transmission rate is not greater than a first rate threshold. A transmission
latency required by the first-type service is not higher than a latency threshold.
[0028] In another possible example, when the service type is used to indicate that the service
to which the data stream belongs is an HTTP download service, the communications module
may configure the transmission rate of the data stream as a second transmission rate.
The second transmission rate is not less than a second rate threshold.
[0029] In another example, the communications module may alternatively configure the transmission
rate of the data stream based on the service type and traffic information of the data
stream.
[0030] Specifically, when the service type is used to indicate that the service to which
the data stream belongs is a second-type service, and the traffic information is used
to indicate that a traffic peak value of the data stream is not lower than n times
of average traffic of the data stream, the communications module may configure the
transmission rate of the data stream to be not less than x times of the average traffic
of the data stream, where x is greater than 1. A packet loss rate required by the
second-type service is not higher than a packet loss rate threshold, and n is greater
than 1. For example, x is greater than n.
[0031] In this example, the processing module may further perform traffic shaping on the
data stream, so that traffic fluctuation is smoother after the shaping, to reduce
a traffic burst occurrence probability. Therefore, an anti-interference capability
in downlink data transmission can be further improved.
[0032] In another example, the communications module may further obtain a communication
status parameter of the access point and a receive end. The receive end is configured
to receive the data stream. The communications module may configure the transmission
rate of the data stream based on the service type of the service to which the data
stream belongs and the communication status parameter, or the access point may configure
the transmission rate of the data stream based on the service type of the service
to which the data stream belongs, a traffic model of the data stream, and the communication
status parameter.
[0033] In this method, the access point determines the transmission rate of the data stream
by considering the service type of the data stream, the traffic information of the
data stream, and/or the communication status parameter of the access point and the
receive end, thereby further improving flexibility of data stream transmission rate
configuration.
[0034] The communication status parameter includes a part or all of the following parameters:
an air interface bit error rate; an air interface retransmission rate; or an air interface
rate of the receive end.
[0035] It should be understood that, when configuring the transmission rate of the data
stream, the access point may determine a transmission rate parameter of the data stream
based on the service type. The transmission rate parameter of the data stream includes
a part or all of the following parameters: an MCS rate; an aggregation degree of an
A-MSDU; an aggregation degree of an A-MPDU; or a queue allocation rule of WMM
[0036] According to a third aspect, this application provides a computer-readable storage
medium. The computer-readable storage medium stores instructions (or referred to as
a program). When the instructions are invoked and executed on a computer, the computer
is enabled to perform the method according to any one of the first aspect or the possible
designs of the first aspect.
[0037] According to a fourth aspect, this application provides a computer program product.
The computer program product may include instructions. When the computer program product
runs on a computer, the computer is enabled to perform the method according to any
one of the first aspect or the possible designs of the first aspect.
[0038] According to a fifth aspect, this application provides a chip and/or a chip system
including the chip. The chip may include a processor. The chip may further include
a memory (or a storage module) and/or a transceiver (or a communications module).
The chip may be configured to perform the method according to any one of the first
aspect or the possible designs of the first aspect. The chip system may include the
chip, or may include the chip and another discrete component, such as a memory (or
a storage module) and/or a transceiver (or a communications module).
[0039] For beneficial effects of the second aspect to the fifth aspect and the possible
designs of the second aspect to the fifth aspect, refer to descriptions of the beneficial
effects of the method according to any one of the first aspect and the possible designs
of the first aspect.
BRIEF DESCRIPTION OF DRAWINGS
[0040]
FIG. 1 is a schematic architectural diagram of a wireless communications system according
to an embodiment of this application;
FIG. 2 is a schematic architectural diagram of another wireless communications system
according to an embodiment of this application;
FIG. 3 is a schematic diagram of a structure of an access point according to an embodiment
of this application;
FIG. 4 is a schematic flowchart of a communication method according to an embodiment
of this application;
FIG. 5 is a schematic diagram of a traffic shaping effect according to an embodiment
of this application;
FIG. 6 is a schematic diagram of a channel selection effect according to an embodiment
of this application;
FIG. 7 is a schematic diagram of a structure of a channel apparatus according to an
embodiment of this application;
FIG. 8 is a schematic diagram of a structure of another channel apparatus according
to an embodiment of this application; and
FIG. 9 is a schematic diagram of a structure of another channel apparatus according
to an embodiment of this application.
DESCRIPTION OF EMBODIMENTS
[0041] To resolve a problem, in the conventional technology, that a transmission rate configuration
process of an access point in a downlink data sending process is not flexible enough,
this application proposes a transmission rate configuration method, to improve flexibility
of downlink data transmission rate configuration, so that a downlink data transmission
process meets transmission rate requirements of different services.
[0042] As shown in FIG. 1, the transmission rate configuration method provided in the embodiments
of this application may be used in a communications system including an access point
and at least one terminal device. The access point may be configured to provide a
WIFI signal. By using the access point, the terminal device in the communications
system shown in FIG. 1 may communicate with a communications device outside the communications
system shown in FIG. 1. For example, the terminal device may access the Internet by
using the access point. In addition, a plurality of terminal devices shown in FIG.
1 may communicate with each other by using the access point.
[0043] For example, the access point in this application may be a device that can provide
a WIFI signal, such as an AP, customer premises equipment (customer premises equipment,
CPE), or a gateway. The access point may be alternatively a device that can provide
a WIFI hotspot (hot point), for example, a mobile terminal that can access a mobile
network and provide a WIFI hotspot. For example, the access point may be implemented
by a chip or a chip system.
[0044] The terminal device may include a mobile phone, a tablet computer, a wearable device
(such as a smartwatch) having a wireless communication function, a vehicle-mounted
device, or the like. An example embodiment of the terminal device includes but is
not limited to an electronic device in which iOS
®, Android
®, Microsoft
®, or another operating system is installed. The electronic device may alternatively
be, for example, a laptop (laptop) having a touch-sensitive surface (for example,
a touch panel). It should be further understood that, in some other embodiments of
this application, the terminal device may be alternatively a device, such as a desktop
computer, that has a WIFI network access capability. For example, the terminal device
may be a wireless terminal (station, STA). For example, the terminal device may be
implemented by a chip or a chip system.
[0045] It should be understood that the access point may be configured to provide a WIFI
network (or referred to as a WIFI hotspot), and the terminal device may be configured
to search for and access the WIFI network. It should be understood that in this application,
there is no limitation that the terminal device can fall within a coverage area of
a WIFI network provided by only one access point; and/or in this application, there
is no limitation that a coverage area of a WIFI network provided by the access point
includes only one terminal device.
[0046] As shown in FIG. 2, a signal sent by an access point to a terminal device may be
referred to as a downlink signal in this application, and a downlink signal sending
process may be referred to as downlink sending. The downlink signal may be used to
carry signaling and/or data that are/is sent to the terminal device. The signaling
may be referred to as downlink signaling, and the data may be referred to as downlink
data. In addition, a signal sent by the terminal device to the access point may be
referred to as an uplink signal in this application. The uplink signal may be used
to carry signaling and/or data that are/is sent by the terminal device. The signaling
may be referred to as uplink signaling, and the data may be referred to as uplink
data.
[0047] As shown in FIG. 3, when sending downlink data streams to a plurality of terminal
devices (respectively marked as an STA 1, an STA 2, ..., and STA n), an access point
provided in this embodiment of this application may allocate the data streams to different
STA queues based on differentiated services code points (differentiated services code
point, DSCP) of services to which the data streams belong. Each STA queue corresponds
to a value of one DSCP. For example, different data streams may be represented by
using traffic identifiers (traffic identifier, tid), for example, a tid 1, a tid 2,
... in FIG. 3.
[0048] In addition, the access point may place, by using a scheduling module (scheduler),
downlink data in a tid queue into a Wi-Fi multimedia (WIFI multi-media, WMM) queue
corresponding to the tid queue, for waiting for sending. For access category (access
category, AC) data streams, WMM queues are classified into four priority queues in
ascending order of priorities: an AC-voice (AC-VO) stream, an AC-video (AC-VI) stream,
an AC-best effort (AC-BE) stream, and an AC-background (AC-BK) stream, and it is guaranteed
that a packet in a higher-priority queue has a higher channel preemption capability.
The access point may further configure a transmission rate related to a downlink data
sending process, for sending downlink data. The transmission rate is a parameter such
as a modulation and coding scheme (modulation and coding scheme, MCS) rate configuration,
a guard interval (guard interval, GI), bandwidth (bandwidth, BW), the number of spatial
streams (number of spatial streams, NSS), an aggregation degree of an aggregate (aggregation)
media access control (media access control, MAC) service data unit (MAC service data
unit, MSDU) (A-MSDU), an aggregation degree of an aggregate MAC protocol data unit
(MAC protocol data unit, MPDU) (A-MPDU), or a number of times configuration in a scheduling
or retransmission policy that is based on a service set identifier (service set identifier,
SSID) and a terminal device. It should be understood that in this application, downlink
transmission rate may be configured in of the access point.
[0049] As shown in FIG. 4, a transmission rate configuration method provided in an embodiment
of this application may include the following steps:
S101: An access point determines a service type of a service to which a data stream
belongs.
[0050] The data stream may be a downlink data stream that is sent to the access point and
that needs to be sent by the access point to a terminal device. The service type may
be used to represent a type of the service to which the data stream belongs. For example,
the service type may include a video service, an online game service, a download service,
a virtual reality (virtual reality, VR) service, and/or a low-latency service.
[0051] S102: The access point configures a transmission rate of the data stream based on
the service type of the service to which the data stream belongs. Accordingly, the
access point can send the data stream to the terminal device based on the configured
transmission rate.
[0052] In the foregoing method, the access point may configure, based on a service characteristic
of the data stream, the transmission rate used when the data stream is sent. Therefore,
the configured transmission rate meets a requirement of the service to which the data
stream belongs, thereby improving flexibility of a transmission rate configuration
process.
[0053] It should be understood that, the access point may configure the transmission rate
of the data stream based on the service type of the service to which the data stream
belongs, so that a data stream transmission process meets a transmission latency requirement,
a throughput requirement, a packet loss rate requirement, and/or the like of the service
to which the data stream belongs.
[0054] For example, the access point may identify, based on a packet of the data stream,
the service type of the service to which the data stream belongs. For example, the
access point may obtain a service identifier carried in the packet of the data stream,
to determine the service to which the data stream belongs, to further determine the
service type of the service. For another example, the packet of the data stream may
carry a source IP address of the data stream, the source IP address is, for example,
an address of a server that provides the service, and the access point may query the
service type of the service based on the source IP address. In addition, the packet
of the data stream may alternatively carry indication information of the service type,
such as a service type identifier.
[0055] In addition, the access point may alternatively identify, based on a traffic model
of the data stream, the service type of the service to which the data stream belongs.
For example, specific distribution rules exist in terms of a peak value, a traffic
average value, and a traffic fluctuation status of a data stream of a specific service
type. The access point may compare a data stream from a network with distribution
rules of a stored traffic model to determine whether the data stream is a data stream
that has specific distribution rules; and when recognizing that these rules exist
in the data stream, the access point can recognize that a service to which the data
stream belongs is a service of the specific type.
[0056] In addition, it should be understood that in this application, the access point may
alternatively determine, in another manner in the conventional technology, the service
type of the service to which the data stream belongs.
[0057] For example, the transmission latency requirement, the throughput requirement, the
packet loss rate requirement, and/or the like of the service type may be represented
as a correspondence between the service type and the transmission latency requirement,
the throughput requirement, the packet loss rate requirement, and/or the like. The
service type and the service requirement may be preconfigured in the access point,
or may be obtained by the access point from the terminal device or a network side.
[0058] As shown in Table 1, the access point may store a correspondence between the service
type and the service requirement of the service. After recognizing the service type
of the data stream, the access point may determine, based on the correspondence, the
service requirement of the service to which the data stream belongs.
Table 1
Service type |
Service requirement |
Firs-type service |
Low latency (not higher than a first latency threshold) |
Download service |
Low packet loss rate |
Nth-type service |
High throughput |
... |
... |
[0059] It should be understood that, Table 1 shows only some possible correspondences between
service types and service requirements by using examples. It should not be understood
that the correspondence between the service type and the service requirement of the
service is limited to only those shown in Table 1, and it also should not be understood
that a service type and a service requirement to which this application is applicable
are limited to those shown in Table 1. For example, based on a requirement of an actual
service, the correspondence between the service type and the service requirement may
be alternatively expressed as a correspondence between a service of a specific type
and a transmission latency and a throughput, a correspondence between a service of
a specific type and a throughput and a packet loss rate, a correspondence between
a service of a specific type and a transmission latency and a packet loss rate, or
a correspondence between a service of a specific type and a transmission latency,
a throughput, and a packet loss rate.
[0060] In addition, in this application, different types of services may have a same service
requirement for a transmission latency, a throughput, or a packet loss rate. In this
application, different requirements may be proposed for specific values of transmission
latencies (or throughputs or packet loss rates) of a plurality of types of services
that have transmission latency (or throughput or packet loss rate) requirements. For
example, both a K
th-type service and an L
th-type service require low latencies, but a transmission latency required by the K
th-type service is not higher than 30 milliseconds (ms), and the L
th-type service requires that a transmission latency should not be higher than 50 ms.
[0061] It should be understood that the "first-type service", the "N
th-type service", or the like in Table 1 may be replaced with a specific service type,
such as an online game service, a download service, a video service, or a VR service.
[0062] For example, if the access point determines that the service to which the data stream
belongs is the first-type service shown in Table 1, where it may be learned from Table
1 that, the first-type service has a relatively high transmission latency requirement
(for example, a transmission latency required by the service type is not higher than
30 milliseconds (ms)), the access point may send the data stream by using a relatively
low sending rate, so that a packet loss rate is reduced by reducing a sending rate,
to reduce a transmission latency. In this example, the access point may determine
a first transmission rate based on the service type of the data stream. The transmission
rate corresponding to the first transmission rate is not greater than a first rate
threshold. Subsequently, the data stream may be sent by using the transmission rate.
For example, the first transmission rate is not greater than an average value of transmission
rates at which the access point transmits data streams. Specifically, when configuring
the first rate threshold, the access point may configure a relatively small MCS rate
(for example, an MCS rate less than or equal to an MCS rate average value).
[0063] For example, the first-type service may include a real-time online service such as
multiplayer online battle arena (multiplayer online battle arena, MOBA), or Player
Unknown's Battlegrounds, or red packet grabbing, or another service that has a relatively
high transmission latency requirement. Rates of data streams of these services are
relatively small and usually do not exceed 2 megabits per second (Mbps). However,
these services usually have relatively high data transmission latency requirements.
When a data transmission latency is excessively high, service experience is severely
affected. Therefore, for this type of service, a packet loss rate in a data transmission
process may be reduced by reducing a sending rate, to reduce a transmission latency.
[0064] In another example, if the access point determines that the service to which the
data stream belongs is a download service, for example, a hypertext transfer protocol
(hypertext transfer protocol, HTTP) download service, a download service of another
protocol type, or another service that requires a relatively high throughput, the
access point may reduce a packet loss rate in downlink transmission by using a relatively
high transmission rate, so that packet retransmissions are reduced by reducing packet
losses, to obtain stable high-rate download experience. In this example, the access
point may determine a second transmission rate. The transmission rate corresponding
to the second transmission rate is not less than a second rate threshold. For example,
the second transmission rate is not less than the average value of transmission rates
at which the access point transmits data streams. Specifically, the second transmission
rate may include a relatively large MCS rate. Specifically, when configuring the second
transmission rate, the access point may configure a relatively large MCS rate (for
example, an MCS rate greater than or equal to the MCS rate average value).
[0065] In addition, the access point may alternatively store a correspondence between the
service type and the transmission rate, so that after determining the service type
of the service to which the data stream belongs, the access point can determine the
transmission rate of the data stream based on the correspondence, without determining,
based on the service type, the service requirement of the service to which the data
stream belongs.
[0066] In implementation of S102, the access point may alternatively configure the transmission
rate of the data stream based on the service type of the service to which the data
stream belongs and information about traffic of the data stream (that is, a rate of
the data stream). The traffic information of the data stream may be used to describe
a traffic model of the data stream, to reflect a characteristic of the data stream.
For example, the traffic information may reflect average traffic of the data stream,
a traffic peak value, or whether burst traffic exists.
[0067] For example, after receiving the data stream, the access point may determine the
traffic information of the data stream. When the access point determines that a relatively
large traffic burst exists in the data stream, and the service to which the data stream
belongs is a second-type service, the access point may configure the transmission
rate of the data stream based on the average traffic of the data stream. The traffic
burst means that one or more traffic peak values of the data stream each are not lower
than n times of the average traffic of the data stream, and n is greater than 1, for
example, n=1.5, 2, 3, ....
[0068] In this example, the access point may configure the transmission rate of the data
stream to be not lower than x times of the average traffic of the data stream, where
x is greater than 1. Therefore, the access point can provide a smooth air interface
transmission rate for the service, thereby avoiding a packet loss caused by a transmission
rate selection change due to air interface fluctuation, improving an anti-interference
capability in downlink data transmission, and guaranteeing good experience of the
service. Specifically, x is greater than n.
[0069] In addition, in this example, because the traffic burst exists in the data stream,
and traffic fluctuation is relatively large, the access point may perform traffic
shaping on the data stream, so that traffic fluctuation of the data stream is smoother,
to reduce a traffic burst occurrence probability. Therefore, an anti-interference
capability in downlink data transmission is further improved. As shown in FIG. 5,
in this application, a data stream existing before traffic shaping includes a plurality
of traffic peak values, and each traffic peak value is traffic at a peak of the data
stream. Therefore, traffic fluctuation is relatively large. After the traffic shaping,
the traffic fluctuation of the data stream is alleviated.
[0070] For example, for a service that has relatively large traffic and usually has a traffic
burst in a data stream, such as a 4K high-definition video service, an interactive
personality TV (IPTV) service, and/or a VR service, after receiving a data stream
of this type of service, the access point may determine a third transmission rate
based on average traffic of the data stream. The third transmission rate may be x
times of the average traffic of the data stream, and x is greater than 1. Then, the
access point may send, to the terminal device based on the third transmission rate,
a data stream obtained after the traffic shaping. For a traffic shaping method, refer
to a manner in the conventional technology. This is not specifically limited in this
application.
[0071] In addition, the access point may alternatively store a correspondence between the
service type, the traffic information of the data stream, and the transmission rate,
so that after determining the service type of the service to which the data stream
belongs and the traffic information, the access point may determine the transmission
rate of the data stream based on the correspondence.
[0072] For example, in this application, the access point may further obtain a communication
status parameter of the access point and a receive end, and configure, with reference
to the service type of the service to which the data stream belongs and/or the traffic
information of the data stream, the transmission rate used when the data stream is
sent to the receive end. The receive end may include the terminal device that receives
the data stream, for example, the terminal device shown in FIG. 2. In this method,
a most appropriate communication parameter may be selected based on the service type
and the traffic information of the downlink data stream and a communication status
of the access point and the receive end, to implement flexible configuration. For
example, the access point may obtain the communication status parameter in real time,
and determine, based on the communication status parameter obtained in real time,
a real-time configuration used to send the data stream to the receive end, to implement
dynamic transmission rate configuration.
[0073] The communication status parameter may include a part or all of communication parameters
such as an interference duty cycle, an air interface bit error rate, an air interface
retransmission rate, a service concurrency parameter (used to indicate how many downlink
service data streams are concurrent), or an air interface rate of the receive end.
[0074] The access point may determine, based on the service type of the data stream and
the communication status parameter, a parameter such as an MCS rate configuration,
an aggregation degree of an A-MSDU, an aggregation degree of an A-MPDU, resource application
and allocation rules of the terminal device, a queue allocation rule of WMM, or a
number of times configuration in a scheduling or retransmission policy that is based
on an SSID and the terminal. The access point may determine an optimal transmission
rate for data streams of a same type, to send the data streams.
[0075] In a possible example, the access point may configure the transmission rate of the
data stream based on a correspondence between the service type, the communication
status parameter and/or the transmission rate. Specifically, after recognizing the
service type of the data stream and/or obtaining the communication status parameter,
the access point may determine, based on the correspondence, the service requirement
of the service to which the data stream belongs. The correspondence between the service
type, the communication status parameter, and/or the transmission rate may be shown
in Table 2.
Table 2
Service type |
Communication status parameter |
Transmission rate |
Firs-type service |
An interference duty cycle is lower than an interference duty cycle threshold |
Transmission rate #1 |
An interference duty cycle is not lower than the interference duty cycle threshold |
Transmission rate #2 |
HTTP download service |
An air interface retransmission rate is lower than an air interface retransmission
rate threshold |
Transmission rate #3 |
An air interface retransmission rate is not lower than the air interface retransmission
rate threshold |
Transmission rate #4 |
Nth-type service |
An air interface rate of a receive end is not lower than an air interface rate threshold |
Transmission rate #4 |
An air interface rate of a receive end is lower than the air interface rate threshold |
Transmission rate #5 |
... |
... |
|
[0076] In a specific example, when the access point recognizes that an interference duty
cycle of an interference channel is greater than the interference duty cycle threshold,
indicating that signal interference of the interference channel is relatively strong,
the access point may allocate an idle channel to a data stream on the interference
channel, to switch the data stream from the interference channel to the idle channel
for sending, thereby improving an anti-interference capability in downlink data transmission.
As shown in FIG. 6, when the access point recognizes that an interference duty cycle
of a channel 3 reaches the interference duty cycle threshold, such as 40%, the access
point may switch a to-be-transmitted data stream on the channel 3 to an idle channel
(such as a channel 4) for transmission. For example, as shown in Table 2, when the
transmission rate #1 is used, the access point transmits the data stream by using
the interference channel. If the access point determines that the interference duty
cycle of the interference channel is not lower than the interference duty cycle threshold,
indicating that interference of the interference channel is relatively severe, the
access point switches to an idle channel corresponding to the transmission rate #2,
to transmit the data stream.
[0077] In another specific example, when the access point recognizes that a plurality of
concurrent to-be-sent data streams exist, the access point may determine respective
transmission priority parameters of the plurality of data streams based on respective
transmission latency requirements of services to which the plurality of data streams
belong. For example, to-be-transmitted data streams of the access point include a
data stream A of a real-time online game service and another data stream B. To reduce
a transmission latency of the data stream A, the access point may improve a forwarding
priority of the data stream A. For example, the access point may configure a queue
allocation rule of WMM to place the data stream A into a higher-priority WMM queue.
[0078] In another example, after obtaining the service type of the data stream and/or the
communication status parameter, the access point may determine a transmission rate
parameter, such as the MCS rate configuration, the aggregation degree of the A-MSDU,
the aggregation degree of the A-MPDU, the resource application and allocation rules
of the terminal device, the queue allocation rule of the WMM, or the number of times
configuration in the scheduling or retransmission policy that is based on the SSID
and the terminal, based on the service type of the data stream and the communication
status parameter by using an artificial intelligence (artificial intelligence, AI)
algorithm such as a neural network model.
[0079] In addition, based on a service transmission requirement, the access point may further
determine the transmission rate parameter based on the service type of the data stream,
the traffic information of the data stream, and/or the communication status parameter.
For example, when the traffic information of the data stream meets a specific condition,
the transmission rate parameter of the data stream is determined based on the correspondence
shown in Table 2. The specific condition met by the traffic information of the data
stream is, for example, that the average traffic of the data stream is not lower than
a traffic threshold, or that a traffic burst exists (or does not exist) in the data
stream.
[0080] When the access point provided in this application is implemented, a possible structure
of the access point may be shown in FIG. 7. It may be learned from FIG. 7 that, the
access point may include a processing module 701 and a communications module 702.
The processing module 701 may include a processor, for example, may be implemented
by using an architecture of a CPU and/or an NPU. The processing module 701 may be
configured to implement functions, such as data stream feature extraction, of the
access point. The communications module 702 may be implemented by a scheduling module,
a modem (modem), or the like. The communications module 702 may be configured to perform
communication configuration and send/receive a radio frequency signal by using an
antenna. In this application, the processor may also be referred to as a system on
chip (system on chip, SOC). The communications module 702 may be referred to as a
WIFI module. For example, the processing module may be implemented by a processing
circuit such as a processing chip or a programmable logic controller (programmable
logic controller, PLC). The communications module may be implemented by an interface
circuit such as a PLC, or another medium.
[0081] Specifically, in this application, the processing module 701 may determine a service
type of a data stream, and the processing module 701 indicates the service type of
the data stream to the communications module 702, so that the communications module
702 configures a transmission rate of the data stream based on the service type of
the data stream, and sends the data stream, to meet a data transmission requirement
of a service to which the data stream belongs.
[0082] In a possible example, when the service type is used to indicate that the service
to which the data stream belongs is a first-type service, the communications module
702 may configure the transmission rate of the data stream as a first transmission
rate. The first transmission rate is not greater than a first rate threshold. A transmission
latency required by the first-type service is not higher than a latency threshold.
[0083] In another possible example, when the service type is used to indicate that the service
to which the data stream belongs is an HTTP download service, the communications module
702 may configure the transmission rate of the data stream as a second transmission
rate. The second transmission rate is not less than a second rate threshold.
[0084] In addition, the processing module 701 may obtain traffic information of the data
stream, and the processing module 701 sends the traffic information of the data stream
to the communications module 702, so that the communications module 702 configures
the transmission rate of the data stream based on the service type and the traffic
information of the data stream.
[0085] Specifically, when the service type is used to indicate that the service to which
the data stream belongs is a second-type service, and the traffic information is used
to indicate that a traffic peak value of the data stream is not lower than n times
of average traffic of the data stream, the communications module 702 may configure
the transmission rate of the data stream to be not less than x times of the average
traffic of the data stream, where x is greater than 1. A packet loss rate required
by the second-type service is not higher than a packet loss rate threshold, and n
is greater than 1. For example, x is greater than n.
[0086] In this example, the processing module 701 may further perform traffic shaping on
the data stream.
[0087] In addition, the communications module 702 may obtain a communication status parameter
of the access point and a receive end of the data stream, so that the processing module
701 or the communications module 702 configures the transmission rate of the data
stream based on the service type of the service to which the data stream belongs,
the traffic information of the data stream, and the communication status parameter.
[0088] It should be understood that, in this application, the communications module 702
may alternatively determine a transmission rate parameter of the data stream according
to the method provided in this application, and the communications module 702 sends
the data stream based on the parameter.
[0089] For example, as shown in FIG. 8, the communications apparatus may further include
an AI module 703, configured to: when the downlink data stream needs to be sent, determine,
by using an AI algorithm such as a neural network, the transmission rate parameter
of the data stream based on the communication status parameter obtained by the communications
module 702 and the service type of the service to which the data stream belongs and/or
the traffic information of the data stream that are/is obtained by the processing
module 701, and send the transmission rate parameter of the data stream to the communications
module 702, so that the communications module 702 configures the transmission rate
of the data stream. For example, the communications module may obtain the communication
status parameter in real time, and send the communication status parameter obtained
in real time to the AI module, so that the AI module determines, based on the communication
status parameter obtained in real time, a real-time configuration used to send the
data stream to the receive end, to implement dynamic transmission rate configuration.
[0090] In addition, the communications apparatus may alternatively include a structure shown
in FIG. 9. As shown in FIG. 9, a communications apparatus 900 may include a processor
901, a memory 902, and a transceiver 903.
[0091] The processor 901 may be configured to: process a communication protocol and communication
data, control a second terminal apparatus, execute a software program, process data
of the software program, and the like. The memory 902 may be configured to store the
program and data, and the processor 901 may perform, based on the program, the method
performed by the second terminal apparatus in the embodiments of this application.
[0092] The transceiver 903 may include a radio frequency unit and an antenna. The radio
frequency unit may be configured to: perform conversion between a baseband signal
and a radio frequency signal, and process the radio frequency signal. The antenna
may be configured to send and receive a radio frequency signal in a form of an electromagnetic
wave. In addition, only the radio frequency unit may be considered as the transceiver
903. In this case, the communications apparatus 900 may include the processor 901,
the memory 902, the transceiver 903, and the antenna.
[0093] It should be understood that the communications module 702 may have a structure shown
in the transceiver 903, that is, the communications module 702 includes the radio
frequency unit and the antenna. Alternatively, the communications module 702 may include
the foregoing radio frequency unit. The foregoing processing module 701 and/or the
AI module 703 may include the processor 901, or include the processor 901 and the
memory 902.
[0094] When performing the method shown in the embodiments of this application, the transceiver
903 may be configured to perform the steps performed by the communications module
702. The processor 901 invokes the program stored in the memory 902, to perform the
foregoing steps performed by the processing module 701 and/or the AI module 703.
[0095] Specifically, the processor 901 may determine a service type of a data stream, and
the processor 901 indicates the service type of the data stream to the transceiver
903, so that the transceiver 903 configures a transmission rate of the data stream
based on the service type of the data stream, and sends the data stream, to meet a
data transmission requirement of a service to which the data stream belongs.
[0096] In a possible example, when the service type is used to indicate that the service
to which the data stream belongs is a first-type service, the transceiver 903 may
configure the transmission rate of the data stream as a first transmission rate. The
first transmission rate is not greater than a first rate threshold. A transmission
latency required by the first-type service is not higher than a latency threshold.
[0097] In another possible example, when the service type is used to indicate that the service
to which the data stream belongs is an HTTP download service, the transceiver 903
may configure the transmission rate of the data stream as a second transmission rate.
The second transmission rate is not less than a second rate threshold.
[0098] In addition, the processor 901 may obtain traffic information of the data stream,
and the processor 901 sends the traffic information of the data stream to the transceiver
903, so that the transceiver 903 configures the transmission rate of the data stream
based on the service type and the traffic information of the data stream.
[0099] Specifically, when the service type is used to indicate that the service to which
the data stream belongs is a second-type service, and the traffic information is used
to indicate that a traffic peak value of the data stream is not lower than n times
of average traffic of the data stream, the transceiver 903 may configure the transmission
rate of the data stream to be not less than x times of the average traffic of the
data stream, where x is greater than 1. A packet loss rate required by the second-type
service is not higher than a packet loss rate threshold, and n is greater than 1.
For example, x is greater than n.
[0100] In this example, the processor 901 may further perform traffic shaping on the data
stream.
[0101] In addition, the transceiver 903 may obtain a communication status parameter of the
access point and a receive end of the data stream, so that the processor 901 or the
transceiver 903 configures the transmission rate of the data stream based on the service
type of the service to which the data stream belongs, the traffic information of the
data stream, and the communication status parameter.
[0102] It should be understood that, in this application, the transceiver 903 may alternatively
determine a transmission rate parameter of the data stream according to the method
provided in this application, and the transceiver 903 sends the data stream based
on the parameter.
[0103] It should be understood that the communications apparatus may alternatively include
a chip. For example, the chip includes the processor 901. In addition, the chip may
be further coupled to any one or more components in the memory 902 and/or the transceiver
903, or the chip may further constitute a chip system with the memory 902 and/or the
transceiver 903.
[0104] Based on a same concept as that of the foregoing method embodiments, an embodiment
of this application further provides a computer-readable storage medium. The computer-readable
storage medium stores a computer program. When the program is executed by a processor,
the computer is enabled to perform the method performed by the access node in any
one of the foregoing method embodiments or the possible implementations of the method
embodiments.
[0105] Based on a same concept as the foregoing method embodiments, this application further
provides a computer program product. When the computer program product is invoked
and executed by a computer, the computer may be enabled to implement the method performed
by the access node in any one of the foregoing method embodiments or the possible
implementations of the method embodiments.
[0106] Based on a same concept as that of the foregoing method embodiments, this application
further provides a chip or a chip system. The chip may include a processor. The chip
may further include a memory (or a storage module) and/or a transceiver (or a communications
module), or the chip is coupled to a memory (or a storage module) and/or a transceiver
(or a communications module). The transceiver (or the communications module) may be
configured to support the chip in wired and/or wireless communication, and the memory
(or the storage module) may be configured to store a program. The processor invokes
the program to implement the method performed by the access node in any one of the
foregoing method embodiments or the possible implementations of the method embodiments.
The chip system may include the chip, or may include the chip and another discrete
component, such as a memory (or a storage module) and/or a transceiver (or a communications
module).
[0107] Based on a same concept as that of the foregoing method embodiments, this application
further provides a communications system. The communications system may include the
foregoing access point. The communications system may be configured to implement the
method in any one of the foregoing method embodiments and possible implementations
of the method embodiments. For example, the communications system has a structure
shown in FIG. 1 or FIG. 2.
[0108] The embodiments of this application are described with reference to the flowcharts
and/or block diagrams of the method, the apparatus, and the computer program product
according to the embodiments. It should be understood that computer program instructions
may be used to implement each process and/or each block in the flowcharts and/or the
block diagrams and a combination of a process and/or a block in the flowcharts and/or
the block diagrams. These computer program instructions may be provided for a general-purpose
computer, a dedicated computer, an embedded processor, or a processor of another programmable
data processing device to generate a machine, so that the instructions executed by
a computer or the processor of the another programmable data processing device generate
an apparatus for implementing a specific function in one or more processes in the
flowcharts and/or in one or more blocks in the block diagrams.
[0109] These computer program instructions may alternatively be stored in a computer-readable
memory that can instruct the computer or the another programmable data processing
device to work in a specific manner, so that the instructions stored in the computer-readable
memory generate an artifact that includes an instruction apparatus. The instruction
apparatus implements a specific function in one or more processes in the flowcharts
and/or in one or more blocks in the block diagrams.
[0110] These computer program instructions may alternatively be loaded onto the computer
or the other programmable data processing device, so that a series of operations and
steps are performed on the computer or the another programmable device, to generate
computer-implemented processing. Therefore, the instructions executed on the computer
or the other programmable device provide steps for implementing a specific function
in one or more processes in the flowcharts and/or in one or more blocks in the block
diagrams.
1. A transmission rate configuration method, comprising:
determining, by an access point, a service type of a service to which a data stream
belongs; and
configuring, by the access point, a transmission rate of the data stream based on
the service type.
2. The method according to claim 1, wherein the service type is used to indicate that
the service to which the data stream belongs is a first-type service, and a transmission
latency required by the first-type service is not higher than a latency threshold;
and
the configuring, by the access point, a transmission rate of the data stream based
on the service type comprises:
configuring, by the access point, the transmission rate of the data stream as a first
transmission rate based on the service type, wherein the first transmission rate is
not greater than a first rate threshold.
3. The method according to claim 1, wherein the service type is used to indicate that
the service to which the data stream belongs is a download service; and
the configuring, by the access point, a transmission rate of the data stream based
on the service type comprises:
configuring, by the access point, the transmission rate of the data stream as a second
transmission rate based on the service type, wherein the second transmission rate
is not less than a second rate threshold.
4. The method according to claim 1, wherein the configuring, by the access point, a transmission
rate of the data stream based on the service type comprises:
configuring, by the access point, the transmission rate of the data stream based on
the service type and traffic information of the data stream.
5. The method according to claim 4, wherein the service type is used to indicate that
the service to which the data stream belongs is a second-type service, and a packet
loss rate required by the second-type service is not higher than a packet loss rate
threshold; and the traffic information is used to indicate that a traffic peak value
of the data stream is not lower than n times of average traffic of the data stream,
and n is greater than 1; and
the configuring, by the access point, the transmission rate of the data stream based
on the service type and traffic information of the data stream comprises:
configuring, by the access point based on the service type and the traffic information
of the data stream, the transmission rate of the data stream to be not less than x
times of the average traffic of the data stream, wherein x is greater than 1.
6. The method according to claim 5, wherein the method further comprises:
performing, by the access point, traffic shaping on the data stream.
7. The method according to any one of claims 1 to 6, wherein the method further comprises:
obtaining, by the access point, a communication status parameter of the access point
and a receive end, wherein the receive end is configured to receive the data stream;
and
the configuring, by the access point, a transmission rate of the data stream based
on the service type comprises:
configuring, by the access point, the transmission rate of the data stream based on
the service type and the communication status parameter; or
configuring, by the access point, the transmission rate of the data stream based on
the service type, a traffic model of the data stream, and the communication status
parameter.
8. The method according to claim 7, wherein the communication status parameter comprises
a part or all of the following parameters:
an air interface bit error rate;
an air interface retransmission rate; or
an air interface rate of the receive end.
9. The method according to any one of claims 1 to 8, wherein the configuring, by the
access point, a transmission rate of the data stream based on the service type comprises:
determining, by the access point, a transmission rate parameter of the data stream
based on the service type, wherein
the transmission rate parameter of the data stream comprises a part or all of the
following parameters:
a modulation and coding scheme MCS rate configuration;
an aggregation degree of an aggregate media access control service data unit A-MSDU;
an aggregation degree of an aggregate media access control protocol data unit A-MPDU;
or
a queue allocation rule of Wi-Fi multimedia WMM
10. A communications apparatus, comprising:
a processing module, configured to determine a service type of a service to which
a data stream belongs; and
a communications module, configured to configure a transmission rate of the data stream
based on the service type.
11. The communications apparatus according to claim 10, wherein the service type is used
to indicate that the service to which the data stream belongs is a first-type service,
and a transmission latency required by the first-type service is not higher than a
latency threshold; and
the communications module is specifically configured to:
configure the transmission rate of the data stream as a first transmission rate based
on the service type, wherein the first transmission rate is not greater than a first
rate threshold.
12. The communications apparatus according to claim 10, wherein the service type is used
to indicate that the service to which the data stream belongs is a download service;
and
the communications module is specifically configured to:
configure the transmission rate of the data stream as a second transmission rate based
on the service type, wherein the second transmission rate is not less than a second
rate threshold.
13. The communications apparatus according to claim 10, wherein the communications module
is specifically configured to:
configure the transmission rate of the data stream based on the service type and traffic
information of the data stream.
14. The communications apparatus according to claim 13, wherein the service type is used
to indicate that the service to which the data stream belongs is a second-type service,
and a packet loss rate required by the second-type service is not higher than a packet
loss rate threshold; the traffic information is used to indicate that a traffic peak
value of the data stream is not lower than n times of average traffic of the data
stream, and n is greater than 1; and
the communications module is specifically configured to:
configure, based on the service type and the traffic information of the data stream,
the transmission rate of the data stream to be not less than x times of the average
traffic of the data stream, wherein x is greater than 1.
15. The communications apparatus according to claim 14, wherein the processing module
is further configured to:
perform traffic shaping on the data stream.
16. The communications apparatus according to any one of claims 10 to 15, wherein the
communications module is further configured to:
obtain a communication status parameter of the access point and a receive end, wherein
the receive end is configured to receive the data stream; and
the communications module is specifically configured to:
configure the transmission rate of the data stream based on the service type and the
communication status parameter; or
configure the transmission rate of the data stream based on the service type, a traffic
model of the data stream, and the communication status parameter.
17. The communications apparatus according to claim 16, wherein the communication status
parameter comprises a part or all of the following parameters:
an air interface bit error rate;
an air interface retransmission rate; or
an air interface rate of the receive end.
18. The communications apparatus according to any one of claims 10 to 17, wherein the
communications module is specifically configured to:
determine a transmission rate parameter of the data stream based on the service type,
wherein
the transmission rate parameter of the data stream comprises a part or all of the
following parameters:
a modulation and coding scheme MCS rate configuration;
an aggregation degree of an aggregate media access control service data unit A-MSDU;
an aggregation degree of an aggregate media access control protocol data unit A-MPDU;
or
a queue allocation rule of Wi-Fi multimedia WMM