CPC H04L 69/163 (2013.01) [H04L 43/0811 (2013.01); H04L 45/745 (2013.01); H04L 67/14 (2013.01); H04L 67/141 (2013.01); H04L 67/142 (2013.01); H04L 67/143 (2013.01); H04L 67/146 (2013.01); H04L 69/162 (2013.01); H04L 67/12 (2013.01)] | 20 Claims |
1. A network packet processing method, comprising:
receiving a first Transmission Control Protocol (TCP) packet sent by a client, wherein the first TCP packet comprises a first quintuple;
determining, according to the first quintuple, a first thread that processes the first TCP packet, wherein the first quintuple is used to identify a TCP connection corresponding to the first TCP packet, wherein:
a TCP connection status of the TCP connection is an unsteady TCP connection or a steady TCP connection, wherein the unsteady TCP connection represents a TCP connection in an establishment process or a disconnection process, and the steady TCP connection represents a TCP connection in a data transmission process;
the first thread is a control thread or a data processing thread, wherein the control thread is used to process the unsteady TCP connection, and the data processing thread is used to process the steady TCP connection; and
determining the first thread comprises:
in response to determining that the TCP connection is the unsteady TCP connection, determining the control thread as the first thread; or
in response to determining that the TCP connection is the steady TCP connection, determining the data processing thread as the first thread; and
processing the first TCP packet by using the first thread.
|