A Transmission Control Protocol, TCP, link configuration method, comprising: Acquiring data information in a data packet transmitted on a target TCP link or transmission information generated in a process of transmitting the data packet; Determining, according to the data information or the transmission information, a target network type of a network on which the target TCP link is located; Searching a pre-established configuration library for a target TCP configuration file corresponding to the target network type, wherein the configuration library comprises a correspondence between a network type and a TCP configuration file, and each network type corresponds to one TCP configuration file; and Configuring the target TCP link by using the searched target TCP configuration file; wherein the method further comprises: Determining whether a first packet in a four-way handshake phase that is used for terminating the target TCP link is received; Acquiring attribute information of the target TCP link when the first packet in the four-way handshake phase that is used for terminating the target TCP link is received, wherein the attribute information comprises an access port or an IP address; and Establishing a correspondence between the attribute information and the searched target TCP configuration file, and storing the correspondence between the attribute information and the searched target TCP configuration file in the configuration library. Acquiring data information in a data packet transmitted on a target TCP link or transmission information generated in a process of transmitting the data packet; Determining, according to the data information or the transmission information, a target network type of a network on which the target TCP link is located; Searching a pre-established configuration library for a target TCP configuration file corresponding to the target network type, wherein the configuration library comprises a correspondence between a network type and a TCP configuration file, and each network type corresponds to one TCP configuration file; and Configuring the target TCP link by using the searched target TCP configuration file; wherein the method further comprises: Determining whether a first packet in a four-way handshake phase that is used for terminating the target TCP link is received; Acquiring attribute information of the target TCP link when the first packet in the four-way handshake phase that is used for terminating the target TCP link is received, wherein the attribute information comprises an access port or an IP address; and Establishing a correspondence between the attribute information and the searched target TCP configuration file, and storing the correspondence between the attribute information and the searched target TCP configuration file in the configuration library. Determining whether a first packet in a four-way handshake phase that is used for terminating the target TCP link is received; Acquiring attribute information of the target TCP link when the first packet in the four-way handshake phase that is used for terminating the target TCP link is received, wherein the attribute information comprises an access port or an IP address; and Establishing a correspondence between the attribute information and the searched target TCP configuration file, and storing the correspondence between the attribute information and the searched target TCP configuration file in the configuration library.