The present application provides a
data transmission method, an apparatus, and a storage medium, applied to a terminal or a network device. The
data transmission method includes: determining, at a user plane
air interface protocol layer, a plurality of IP packets belonging to a same data frame; if a quantity of an IP packet with transmission error in the plurality of IP packets is greater than or equal to a quantity threshold, at the user plane
air interface protocol layer, stopping a transmission of a remaining IP packet in the plurality of IP packets, or lowering a transmission priority of the remaining IP packet to prioritize a transmission of other data frames on a QoS flow where the data frame is located or prioritize a transmission of a data frame on other QoS flows. Therefore, in a case that the IP
packet transmission error in the data frame may affect correct
parsing of the data frame, a
data transmission delay of the same QoS flow or other QoS flows caused by the remaining IP packet continuing to occupy the
air interface resource is avoided, thereby improving the efficiency of air interface resources.