A data stream classification method, comprising: obtaining by a device, based on a packet feature of a current data stream and a behavior classification model, at least one first confidence that is of the current data stream and that corresponds to at least one data stream class, wherein the behavior classification model is a model obtained based on packet features and data stream classes of a plurality of data stream samples, and the packet feature comprises one or more of a packet length, a packet transmission speed, a packet time interval, and a packet direction; obtaining by the device, based on feature information of the current data stream and a content classification model, at least one second confidence that is of the current data stream and that corresponds to the at least one data stream class, wherein the feature information comprises a destination address and a protocol type, the content classification model is a model obtained based on feature information and a data stream class of one or more historical data streams, and the data stream class of the historical data stream is obtained based on the behavior classification model; and determining by the device a data stream class of the current data stream based on the at least one first confidence and the at least one second confidence; sending by the device information about the data stream class of the current data stream to an operations support system, OSS, wherein the information about the data stream class of the current data stream is used by the OSS to generate a traffic control policy for the current data stream; wherein the traffic control policy for the current data stream is sent by the OSS to a forwarding device or a terminal; and wherein the forwarding device or the terminal learns, according to the received traffic control policy, a priority of the current data stream, and when finding that a plurality of data streams are to be sent, the forwarding device or the terminal preferentially sends the current data stream configured to be high-priority. obtaining by a device, based on a packet feature of a current data stream and a behavior classification model, at least one first confidence that is of the current data stream and that corresponds to at least one data stream class, wherein the behavior classification model is a model obtained based on packet features and data stream classes of a plurality of data stream samples, and the packet feature comprises one or more of a packet length, a packet transmission speed, a packet time interval, and a packet direction; obtaining by the device, based on feature information of the current data stream and a content classification model, at least one second confidence that is of the current data stream and that corresponds to the at least one data stream class, wherein the feature information comprises a destination address and a protocol type, the content classification model is a model obtained based on feature information and a data stream class of one or more historical data streams, and the data stream class of the historical data stream is obtained based on the behavior classification model; and determining by the device a data stream class of the current data stream based on the at least one first confidence and the at least one second confidence; sending by the device information about the data stream class of the current data stream to an operations support system, OSS, wherein the information about the data stream class of the current data stream is used by the OSS to generate a traffic control policy for the current data stream; wherein the traffic control policy for the current data stream is sent by the OSS to a forwarding device or a terminal; and wherein the forwarding device or the terminal learns, according to the received traffic control policy, a priority of the current data stream, and when finding that a plurality of data streams are to be sent, the forwarding device or the terminal preferentially sends the current data stream configured to be high-priority.