A Transmission Control Protocol, TCP, link configuration method, comprising: Acquiring (S101) 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 (S102), 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 (S103) 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 (S104) the target TCP link by using the searched target TCP configuration file; wherein the method further comprises: Determining (S601) whether a first packet in a four-way handshake phase that is used for terminating the target TCP link is received; Acquiring (S602) 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 (S603) a correspondence between the attribute information and the searched target TCP configuration file, and storing (S604) the correspondence between the attribute information and the searched target TCP configuration file in the configuration library. Acquiring (S101) 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 (S102), 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 (S103) 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 (S104) the target TCP link by using the searched target TCP configuration file; wherein the method further comprises: Determining (S601) whether a first packet in a four-way handshake phase that is used for terminating the target TCP link is received; Acquiring (S602) 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 (S603) a correspondence between the attribute information and the searched target TCP configuration file, and storing (S604) the correspondence between the attribute information and the searched target TCP configuration file in the configuration library. Determining (S601) whether a first packet in a four-way handshake phase that is used for terminating the target TCP link is received; Acquiring (S602) 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 (S603) a correspondence between the attribute information and the searched target TCP configuration file, and storing (S604) the correspondence between the attribute information and the searched target TCP configuration file in the configuration library. <EOS>