A data analytics method, comprising: obtaining, by a user plane data processing network element, a plurality of matching conditions that is from a data analytics network element, wherein each of the plurality of matching conditions corresponds to at least one service type; and obtaining, by the user plane data processing network element based on the plurality of matching conditions, a service type associated with user plane data, wherein the obtaining, by the user plane data processing network element based on the plurality of matching conditions, a service type associated with user plane data comprises: determining, by the user plane data processing network element in the plurality of matching conditions, the matching condition that the user plane data satisfies; obtaining, by the user plane data processing network element, service type information that is from the data analytics network element and that is corresponding to the matching condition that the user plane data satisfies; and obtaining, by the user plane data processing network element based on the service type information, the service type associated with the user plane data; wherein each of the plurality of matching conditions comprises a plurality of matching features and a condition that the plurality of matching features satisfies; and the determining, by the user plane data processing network element in the plurality of matching conditions, the matching condition that the user plane data satisfies further comprises: determining, by the user plane data processing network element, that the user plane data has all or some of matching features of one matching condition, and meets the condition that the all or some of the matching features satisfy, wherein the method further comprises: processing, by the user plane data processing network element, the user plane data based on the service type associated with the user plane data; wherein the processing, by the user plane data processing network element, the user plane data based on the service type associated with the user plane data comprises: adding, by the user plane data processing network element, scheduling priority information for the user plane data based on the service type associated with the user plane data and forwarding the user plane data based on priority information of the service type. obtaining, by a user plane data processing network element, a plurality of matching conditions that is from a data analytics network element, wherein each of the plurality of matching conditions corresponds to at least one service type; and obtaining, by the user plane data processing network element based on the plurality of matching conditions, a service type associated with user plane data, wherein the obtaining, by the user plane data processing network element based on the plurality of matching conditions, a service type associated with user plane data comprises: determining, by the user plane data processing network element in the plurality of matching conditions, the matching condition that the user plane data satisfies; obtaining, by the user plane data processing network element, service type information that is from the data analytics network element and that is corresponding to the matching condition that the user plane data satisfies; and obtaining, by the user plane data processing network element based on the service type information, the service type associated with the user plane data; determining, by the user plane data processing network element in the plurality of matching conditions, the matching condition that the user plane data satisfies; obtaining, by the user plane data processing network element, service type information that is from the data analytics network element and that is corresponding to the matching condition that the user plane data satisfies; and obtaining, by the user plane data processing network element based on the service type information, the service type associated with the user plane data; wherein each of the plurality of matching conditions comprises a plurality of matching features and a condition that the plurality of matching features satisfies; and the determining, by the user plane data processing network element in the plurality of matching conditions, the matching condition that the user plane data satisfies further comprises: determining, by the user plane data processing network element, that the user plane data has all or some of matching features of one matching condition, and meets the condition that the all or some of the matching features satisfy, wherein the method further comprises: processing, by the user plane data processing network element, the user plane data based on the service type associated with the user plane data; wherein the processing, by the user plane data processing network element, the user plane data based on the service type associated with the user plane data comprises: adding, by the user plane data processing network element, scheduling priority information for the user plane data based on the service type associated with the user plane data and forwarding the user plane data based on priority information of the service type.