The invention relates to the field of
wireless communication, and discloses an IP
message processing method and apparatus. In the embodiment of the invention, the method comprises the following steps:when an IP message is received, obtaining a
message type of the IP message and an index value of an address pair of a message header of the IP message in a corresponding address
list, wherein the address pair comprises a
source address and a target address; and replacing the message header of the IP message with a preset message header, and storing the IP message, wherein the preset message header comprises a message header and a compressed data portion, the message header is used for storing the index value and indicating a type identifier of the
message type of the IP message, the compressed data portion is used for storing compressed data, and the compressed data are data formed by compressing the information excluding the addresses in the message header of the IP message. By adoptionof the IP
message processing method and apparatus disclosed by the embodiment of the invention, when the received IP message is stored, the storage space occupied by the message header of the IP message is reduced as much as possible, so that more storage spaces are saved to store more IP messages.