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

Method for maintaining TCP connection in fault switching

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

Active Publication Date: 2015-02-11
INST OF ACOUSTICS CHINESE ACAD OF SCI +1
View PDF5 Cites 6 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
  • Method for maintaining TCP connection in fault switching
  • Method for maintaining TCP connection in fault switching
  • Method for maintaining TCP connection in fault switching

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 TCP connection in fault switching. The following steps are performed simultaneously on a main scheduling server and a standby scheduling server: an IP packet is received and analyzed, the IP packet with no connection record from a client-terminal is preprocessed, and preprocessing comprises the steps that if the IP packet is a TCP data packet, one server is selected from a set of real servers, TCP connection is complementarily established for the address and the response port of the selected server, and the connection record is generated and stored; if the IP packet is not the TCP data packet, one sever is selected from a set of real servers and the connection record is generated and stored; and then the target address and the target port of the IP packet from the client-terminal are rewritten to be the address and the port of the selected real server, a source address and a source port are changed to be a local address and a local port with the complementarily established connection as for the IP packet with the complementarily established TCP connection, a TCP head sequence number and a confirmation sequence number are rewritten simultaneously, and then the rewritten IP packet is sent 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 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 reaches 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 the selected ser...

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 Applications(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