Hot spare method and system for TCP (transmission control protocol)

A hot backup and backup technology, applied in the field of communication, can solve the problems of large amount of messages in hot backup, consume the bandwidth of the main board and the backup board, and implement complex problems, so as to achieve the effect of saving bandwidth, reducing complexity, and reducing the amount of messages

Inactive Publication Date: 2015-07-15
RUIJIE NETWORKS CO LTD
View PDF5 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] A method of backing up state information in the receiving direction in the prior art is as follows: after the TCP connection on the main board receives a TCP message each time, these two serial nu

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Hot spare method and system for TCP (transmission control protocol)
  • Hot spare method and system for TCP (transmission control protocol)
  • Hot spare method and system for TCP (transmission control protocol)

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0040] This embodiment provides a processing flow of a TCP hot backup method such as figure 1 As shown, the following processing steps are included:

[0041] Step 11, the main board sends an acknowledgment message to the opposite end of the TCP connection to the data that the TCP application layer protocol process has read, wherein the opposite end is the common opposite end of the node where the main board and the backup board are located;

[0042] Before sending the confirmation message, it includes: the TCP application layer protocol process sends a message to the TCP application layer protocol process of the standby board, and backs up the state of the TCP application layer protocol process to the standby board;

[0043] The TCP application layer protocol process of the standby board receives the message of the TCP application layer protocol process of the main board, and backs up the state of the TCP application layer protocol process.

[0044] Among them, before the TCP...

Embodiment 2

[0051] This embodiment provides a processing flow of a TCP hot backup method such as figure 2 As shown, the following processing steps are included:

[0052] In this embodiment, the BGP protocol is used as an example of the TCP application layer protocol for further description.

[0053] Step 21, the TCP application layer protocol process on the mainboard reads the TCP receiving buffer data, but does not delete the data from the receiving buffer;

[0054] Take the BGP process as an example. The BGP process reads the data in the TCP receiving buffer. If the BGP passes in the flag bit MSG_PEEK, the flag bit MSG_PEEK is used to mark the data in the TCP receiving buffer that the BGP process has read. The TCP connection is not modified. The serial number that should be read once, and read the data but do not delete the data from the receiving buffer, nor send a confirmation message to the opposite end; in this embodiment, the BGP process on the main board sends a message to the BGP...

Embodiment 3

[0071] This embodiment provides a kind of TCP hot backup system, and its concrete realization structure is as follows Figure 4 As shown, specifically, the following modules may be included: a sending module 32 and a retransmission module 34, wherein,

[0072] Sending module 32: it is used for the main board to send confirmation message to the opposite end of TCP connection to the data that TCP application layer protocol process has read;

[0073] Retransmission module 34: it is used for retransmitting the data not confirmed by the confirmation message to the standby board when the standby board is switched to become the main board.

[0074] A TCP hot backup system, comprising:

[0075] Update component 33: it is used for after sending described confirmation message, makes standby board update and preserves the first sequence number of the data that TCP application layer protocol process on mainboard does not read at present, and expects to receive the next sequence number T...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

An embodiment of the invention provides a hot spare method and system for the TCP (transmission control protocol). The method comprises the following steps: a main board sends an acknowledgement packet to an opposite end connected with the TCP for data read by a TCP application layer protocol process, wherein the opposite end is a common opposite end for nodes where the main board and a spare board are located; when the spare board is switched to the main board, the opposite end retransmits data that are not acknowledged by the acknowledgement packet to the spare board. According to the method, the TCP only acknowledges the data read by the process, only one serial number is needed to spare for the receiving direction, the implementation complexity is reduced, the hot spare message capacity is reduced, and the bandwidth between the main board and the spare board is saved.

Description

technical field [0001] The invention relates to the technical field of communications, in particular to a TCP hot backup method and system. Background technique [0002] The TCP protocol is a reliable transport layer protocol with connections. In order to ensure that no packet loss occurs, TCP assigns a serial number to each byte, and the serial number can also ensure that the receiver receives the data in order. The receiver then sends back an acknowledgment message for the successfully received bytes; if the sender does not receive an acknowledgment within a reasonable round-trip delay, the sender will retransmit the data. [0003] When the main board of the device fails, the standby board takes over the main board and continues to work, and the neighboring devices will not be aware of it. BGP (Border Gateway Protocol) is the most difficult to implement NSR (Non-Stop Routing), that is, a unicast routing protocol with uninterrupted routing. The BGP protocol uses the TCP p...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): H04L12/24
Inventor 余华兵
Owner RUIJIE NETWORKS CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products