The invention discloses a communication method and device. In the method, a data sending end sends a data packet to a data receiving end, and the data packet is subjected to information source coding; receiving
retransmission indication information sent by a data receiving end, wherein the
retransmission indication information is used for indicating
retransmission of data which is wrongly transmitted in the data packet; and sending the
data error information to an
application layer for carrying out information source coding on the data packet, wherein the
data error information comprises the information of the data of the transmission error. In the traditional communication process, an
application layer cannot obtain the condition that data is transmitted at an
air interface, so that the traditional information source coding has
low resistance to
air interface interference; in the method, after the data receiving end receives the
data error information, the data receiving end sends the information of the data with
transmission errors to the
application layer, such as the application layer or the
application server of the
terminal equipment, so that the application layer can carry out information source coding according to the transmission condition of the
air interface, and the resistance of the information source coding to the air interface interference is further improved; and user experience is improved.