Optimization method for solving TCP connection reset caused by multiple identical SYN packets

By using the HASH table and spin lock mechanism during the TCP handshake phase, the TCP connection reset problem caused by multiple identical SYN packets is solved to ensure TCP connection stability and reliability.

CN120238563AActive Publication Date: 2025-07-01KYLIN CORP
5 Cites 0 Cited by

Patent Information

Application Number
CN202510713713.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-30
Publication Date
2025-07-01
Estimated Expiration
2045-05-30

AI Technical Summary

Technical Problem

During the TCP handshake, TCP connection reset issues caused by multiple identical SYN packets, resulting in connection interruption.

Method used

Using the HASH table and spin lock mechanism, the connection information of the processed SYN packet is recorded, and the duplicate SYN packet is judged through hash calculation, and only the first SYN packet is processed to avoid multiple responses to the SYN-ACK packet.

Benefits of technology

It effectively avoids TCP connection reset, ensures that the three-handshake is completed smoothly, and improves the stability and reliability of TCP connection.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader

Abstract

The invention discloses an optimization method for solving TCP (Transmission Control Protocol) connection reset caused by multiple identical SYN packets, which comprises the following steps of: storing a first HASH table and a second HASH table, the first HASH table comprising a plurality of linked lists, and the second HASH table comprising a plurality of spin locks; the client sends a to-be-processed SYN packet to the server; the server receives a to-be-processed SYN packet and obtains a corresponding linked list and a spin lock; the server side traverses the corresponding linked list and compares the connection information; if the same connection information exists, discarding the SYN packet to be processed and releasing the spin lock; if the same connection information does not exist, marking the to-be-processed SYN packet as a processed SYN packet, storing the connection information to a corresponding linked list, and releasing the spin lock; the server sends the obtained SYN-ACK packet to the client side; the client side receives the SYN-ACK packet; the client obtains an ACK packet and sends the ACK packet to the server; and the server receives the ACK packet.
Need to check novelty before this filing date? Find Prior Art