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

A way to keep tcp connections on failover

A technology of failover and connection recording, applied in the field of communication, can solve problems such as abnormal termination of client TCP connection, and achieve the effect of avoiding abnormal termination of TCP connection

Active Publication Date: 2018-07-03
INST OF ACOUSTICS CHINESE ACAD OF SCI +1
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The purpose of the present invention is to overcome the defect that the failover method in the prior art easily leads to the abnormal termination of the client TCP connection, thereby providing a method for maintaining the TCP connection during failover

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
  • A way to keep tcp connections on failover
  • A way to keep tcp connections on failover
  • A way to keep tcp connections on failover

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] The present invention will be further described now in conjunction with accompanying drawing.

[0038] In one embodiment, still with figure 1 Taking the Linux server cluster shown in as an example, the method for maintaining a TCP connection during failover of the present invention will be described.

[0039] From the description of the background technology part, it can be known that when the main scheduling server 102 fails, the standby scheduling server 103 detects that the main scheduling server 102 fails through the HeartBeat heartbeat, and then takes over the task of the main scheduling server 102, and takes over the backup again when the main scheduling server 102 recovers. Tasks of the scheduling server 103 . The method of the present invention needs to be implemented simultaneously on the main scheduling server 102 and the standby scheduling server 103, so that when the standby scheduling server 103 takes over the task of the main scheduling server 102 and tak...

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 method for maintaining a TCP connection during failover. The main dispatching server and the standby dispatching server simultaneously perform the following steps: receiving and analyzing IP packets, and performing preprocessing on IP packets from clients that do not have connection records, Preprocessing includes: if it is a TCP data packet, select a server from a group of real servers, build a TCP connection with the address and response port of the selected server, generate and save the connection record, if it is not a TCP data packet, select a server from a group of real servers Select a server from the real server, generate and save the connection record; then rewrite the destination address and destination port from the client IP packet to the address and port of the selected real server, for the IP packet belonging to the supplementary TCP connection, Also change the source address and source port into the local address and local port of the supplementary connection, rewrite the sequence number and confirmation sequence number of the TCP header simultaneously, and then send the rewritten IP packet to the selected real server.

Description

technical field [0001] The invention relates to the technical field of communication, in particular to a method for maintaining a TCP connection during failover. Background technique [0002] Failover (failover) refers to providing a protection mechanism when a failure occurs. When one server fails, another server will immediately take over the work. Failover achieves high availability through redundancy. [0003] Linux Virtual Server (LVS for short) is a Linux-based server cluster solution, such as figure 1 As shown, taking the VS / NAT (Virtual Server via NAT) mode as an example, when the client 100 accesses the network service through the Virtual IP Address (the IP address of the virtual service), the request message arrives at the scheduling server (assuming the main scheduling server 102) , the scheduling server selects a server from a group of real servers, such as real server 105, rewrites the destination address Virtual IP Address of the message into the address of th...

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
Patent Type & Authority Patents(China)
IPC IPC(8): H04L12/24H04L29/06H04L1/16
Inventor 刘磊郑艳伟彭飞
Owner INST OF ACOUSTICS CHINESE ACAD OF SCI
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