发明名称 Backup method and backup device for TCP connection
摘要 The present invention discloses a backup method and backup device. The backup method for the TCP connection provided by embodiments of the present invention includes: processing a first input packet, and generating, according to a processing result of the first input packet, a new transmission control protocol status and a new socket status; backing up the generated transmission control protocol status and the generated socket status to a transmission control module of the standby board; sending a second input packet to an application module; receiving a first output packet; processing the first output packet, and generating, according to a processing result of first output packet, a new transmission control protocol status and a new socket status; and backing up the transmission control protocol status and the socket status. The present invention further discloses a backup device for a TCP connection.
申请公布号 US9049230(B2) 申请公布日期 2015.06.02
申请号 US201313935751 申请日期 2013.07.05
申请人 Huawei Technologies Co., Ltd. 发明人 Liu Yuanzhang;Guo Yinghui;Sun Yongle
分类号 G06F15/16;H04L29/06;H04L12/24;H04L29/14;H04L29/08 主分类号 G06F15/16
代理机构 Slater & Matsil, L.L.P. 代理人 Slater & Matsil, L.L.P.
主权项 1. A backup method for a transmission control protocol (TCP) connection, comprising: processing a first input packet, and generating, according to a processing result of the first input packet, a new transmission control protocol status and a new socket status; backing up, to a transmission control protocol module of a standby board, the transmission control protocol status and the socket status that are generated according to the processing result of the first input packet; sending, to an application module, a second input packet generated by processing the first input packet; receiving a first output packet obtained by processing the second input packet by the application module; processing the first output packet, and generating, according to a processing result of the first output packet, a new transmission control protocol status and a new socket status; and backing up, to the transmission control protocol module of the standby board, the transmission control protocol status and the socket status that are generated according to the processing result of the first output packet; wherein a sending container of an active board caches the second input packet obtained by processing the first input packet by the transmission control protocol module and a second output packet obtained by processing the first output packet by the transmission control protocol module; and before the backup method is performed, the method further comprises: sending, the second input packet obtained by processing the first input packet in the sending container to an application module of the active board, breaking a connection between the sending container and the transmission control protocol module, and notifying the application module of the active board of a socket status delimitation beginning message in a receiving direction;processing, by the application module of the active board, the second input packet; after accomplishing processing the second input packet, notifying, by the application module of the active board, a transmission control protocol module of the active board of a socket status delimitation beginning message in a sending direction, and backing up a status of the application module of the active board to the application module of the standby board;after receiving the socket status delimitation beginning message in the sending direction, breaking, by the transmission control protocol module of the active board, a connection between a receiving container and the transmission control protocol module, wherein the receiving container caches the first input packet and the first output packet that is obtained by processing of the application module;backing up, by the active board, the socket status and the transmission control protocol status to the standby board; andrestoring the connection between the sending container and the transmission control protocol module, and restoring the connection between the receiving container and the transmission control protocol module.
地址 Shenzhen CN