摘要 |
The present invention discloses a data processing method and apparatus, and relates to the field of terminal application, which can resolve a problem that overall energy consumption of an AP and a Modem in a mobile device cannot be significantly reduced.The method includes: receiving a data packet sent by a server, and acquiring a type of the data packet; determining whether the type of the data packet is consistent with a type of a data packet processed by using a preset processing rule or a type of a protocol in a preset TCP/IP protocol stack to obtain a determining result, where the preset TCP/IP protocol stack includes a transport layer protocol suite and/or a network layer protocol suite in a TCP/IP protocol family, and the data packet processed by using the preset processing rule is a status data packet, where the status data packet is used to indicate an on-line status of a terminal; and if the type of the data packet is consistent with the type of the data packet processed by using the preset processing rule or the type of the protocol in the preset TCP/IP protocol stack, performing processing on the data packet according to the protocol in the preset TCP/IP protocol stack or the preset processing rule. The present invention is mainly applied to a data processing and transmission process of a mobile device. |