Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method, device and system for restoring TCP connection sequence numbers

A connection sequence and sequence number technology, which is applied in the field of data communication, can solve the problems of TCP connection sequence number mismatch, message discarding, etc., and achieve the effect of avoiding overhead and saving system resources

Active Publication Date: 2016-12-14
MAIPU COMM TECH CO LTD
View PDF5 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0013] The purpose of the present invention is to solve the problem that the serial number of the TCP connection may not match and cause the message to be discarded after the switchover of the current active and standby equipment, and to provide a method, device and system for recovering the serial number of the TCP connection

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
  • Method, device and system for restoring TCP connection sequence numbers
  • Method, device and system for restoring TCP connection sequence numbers
  • Method, device and system for restoring TCP connection sequence numbers

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0051] The embodiment of the present invention provides a recovery TCP connection sequence number system, see figure 1 As shown, the main equipment 11 and the backup equipment 12 are included, and the main equipment 11 is connected with the backup equipment 12, wherein the main equipment 11 is used to establish a TCP connection with each peer equipment 13 (here figure 1 Only one peer device is drawn as a schematic diagram in the diagram, and in actual application, the master device 11 establishes a TCP connection with at least one peer device 13), and the TCP session data is backed up to the backup device 12; the backup device 12 is used to generate After the standby switchover, the new master device sends a notification message to each corresponding peer device 13 according to the backed up TCP connection data, and refreshes the serial number in the TCP connection according to the received response message sent by the peer device And the sequence number corresponding to the m...

Embodiment 2

[0053] An embodiment of the present invention provides an access authorization method, which is applied to figure 1 The recovery TCP connection sequence number system shown in, refer to figure 2 As shown in , the method includes:

[0054] S201. The master device establishes a TCP connection with the peer device, and backs up the TCP connection data to the backup device.

[0055] Specifically, the TCP connection data includes quintuples and status information.

[0056] S202, the backup device switches to a new master device after the master-standby switchover occurs, and sends a notification message to each corresponding peer device according to the backed up TCP connection data.

[0057] In this step, after the standby device is switched to a new master device, it traverses each TCP connection, uses the quintuple information in the TCP connection, and sends a notification message to the peer device to notify the peer device that a master has occurred at this end. Standby s...

Embodiment 3

[0065] The embodiment of the present invention provides another access authorization method, which is applied to figure 1 The peer device in the recovery TCP connection sequence number system shown in , refer to image 3 As shown in , the method includes:

[0066] S301, establish a TCP connection with the master device; receive a notification message sent by the new master device after switching;

[0067] S302. According to the notification message, update the sequence number in the local TCP connection and update the sequence number corresponding to the message that is expected to be received next time from the new master device to the initial value, and generate a response message and send it to the new master device.

[0068] In the embodiment of the present invention, by receiving the notification message, the result of matching the TCP sequence numbers at both ends of the communication is achieved; and then the TCP connection sequence numbers are restored.

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

The invention relates to a data communication technology, solves the problem that messages are discarded due to the fact that TCP connection sequence numbers may mismatch after existing master and backup devices are switched, and provides a method, device and system for restoring the TCP connection sequence numbers. The technical scheme may be summarized as the fact that TCP connection is established between a master device and opposite end devices; TCP connection data is backed up on a backup device; the backup device is switched to a new master device after the master and backup devices are switched; a notification message is sent to each corresponding opposite end device according to the backup TCP connection data; the opposite end devices update the sequence numbers according to the notification messages, expect that the received sequence numbers corresponding to the messages sent by the new master device next time are initial values and carry out response. The new master device refreshes the new sequence numbers according to response messages and expects for the received sequence numbers corresponding to the messages sent by the opposite end devices next time. The method, the device and the system have the advantages that the normal communication is ensured, and the method, the device and the system are applicable to communication devices in a double-computer environment.

Description

technical field [0001] The invention relates to the data communication technology, in particular to the technology for recovering the serial number of the TCP connection after the switchover of the master and backup devices in the dual-machine environment. Background technique [0002] The TCP sequence number is used to identify each message segment, so that the destination host can confirm that it has received the data in the specified message segment. When the source host uses multiple segments to send a message, even if the order of these messages arriving at the destination host is different, the sequence number can also make the destination host arrange them in order. [0003] In the first segment sent when a connection is established, both parties provide an initial sequence number. The TCP standard recommends using a counter value incremented by 1 at 4ms intervals as the value of this initial sequence number. Using a counter prevents the same sequence number from ap...

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/863H04L12/24
CPCH04L41/0663H04L47/50H04L47/622
Inventor 杨超
Owner MAIPU COMM TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products