CN1391378A - Connection switching system at front end of server cluster and its switching method - Google Patents

Connection switching system at front end of server cluster and its switching method Download PDF

Info

Publication number
CN1391378A
CN1391378A CN01129313A CN01129313A CN1391378A CN 1391378 A CN1391378 A CN 1391378A CN 01129313 A CN01129313 A CN 01129313A CN 01129313 A CN01129313 A CN 01129313A CN 1391378 A CN1391378 A CN 1391378A
Authority
CN
China
Prior art keywords
server
address
user
packet
port module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN01129313A
Other languages
Chinese (zh)
Other versions
CN1134938C (en
Inventor
郝江涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB011293136A priority Critical patent/CN1134938C/en
Publication of CN1391378A publication Critical patent/CN1391378A/en
Application granted granted Critical
Publication of CN1134938C publication Critical patent/CN1134938C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

A TCP connection switching system in the front of server cluster and its switching method for transferring the data packet to stand-by server when a server is failed are disclosed. Said system can cut off the TCP connection between user and the server and create the TCP connection to user and server. When the server is failed, it can replace the server to transmit and receive messages while create a TCP connection to stand-by server. The connection to user is created again.

Description

Be arranged at the connection exchanging system and the reverse method thereof of server farm front end
The present invention relates to the webserver, relate in particular between user and server and set up the system and method that TCP (transmission control protocol) is connected.
At present, in network server system, be extensive use of load-balancing device at the server farm front end, as 4/7 layer switch, at first, the webserver is organized into groups, each station server provides identical service in the group, at the front end of this group server, places one 4/7 layer switch, asking the user wheel to be transmitted by 4/7 layer switch delivers on the server, this has not only solved the load sharing problem of each station server, and has improved reliability of service to a certain extent, when certain station server in the group breaks down, all TCP on this station server connect interruption, and ongoing request can not get service.But, can detect failed server by 4/7 layer switch, the user is as long as initiate request again, and 4/7 layer switch just no longer is forwarded to new user's request on this station server, and by other server service in the group.
Along with IP (Internet protocol) internet voice business, as developing rapidly of business such as IP phone, make the online audio call of process IP, finish the call server that is equivalent to the call-handling capability on the narrowband speech switch and disposed in a large number, like this, satisfy the public telephone network required standard with regard to the reliability that needs server category equipment.If server category equipment is still adopted the prior art scheme that 4/7 layer switch is set, so, when server breaks down, the calling of carrying out on this server is all interrupted, even the fault that detects 4/7 layer switch takes place and no longer new user is asked to be forwarded on this station server, but still fail to avoid a large amount of call losses of having taken place, all interrupted callings all will be initiated again by the user.At this type of situation, still there is not the solution of when server breaks down, avoiding call loss in the prior art.
The objective of the invention is to: at deficiency of the prior art, a kind of connection exchanging system and reverse method thereof that is arranged at the server farm front end is provided, being connected on the server is switched to when breaking down on the backup server corresponding with this server proceeds, thereby improve service reliability.
For achieving the above object, the technical solution used in the present invention is: a kind ofly be arranged at the server farm front end and the connection exchanging system to the backup server corresponding with this server of when server breaks down the transmission of packet being continued, this connects exchanging system by the user port module, the Service-Port module, main processing block and server detection module are formed and are had a system ip address, it is source address with the IP address that described user port module is used for the packet from user side, with the user port number is source port number, with the system ip address is destination address, with the system end slogan is that user side TCP connection set up in the destination slogan, and to packet specified address switching motion; Described Service-Port module is used for that server is set up TCP and connects, to be source address with the server ip address from the packet of server end, be source port number with the server end slogan, be destination address with the IP address, be the destination slogan with the user port number, and to packet specified address switching motion; Described main processing block be used for to user side TCP connection status, server end TCP connection status, user side data packet delivery serial number and server end data bag pass order number write down and handle make belong to same stream packet between user side and server end by the address transition bi-directional; Described server detection module is used to detect the server failure generation and sends fault generation information to main processing block and server port module.
Connect continue reverse method to the backup server corresponding of the transmission that is used in the exchanging system when server breaks down packet with this server, it is characterized in that: when described server detection module detects server and breaks down, carry out according to following step:
A, Service-Port module are deleted the record about server;
B, the address transition of revising in the user port module are moved, and transfer packet to main processing block;
C, main processing block send to user side and reply, and simultaneously according to record, use IP address and user port number to send request to backup server, set up TCP and connect, and add the record of this backup server in the Service-Port module;
D, revise address transition action in user port module and the server port module according to the IP address of backup server and port numbers; And number current data packet is carried out the serial number conversion according to the user side data packet delivery serial number of main processing block record and server end data bag pass order.
Because the present invention has adopted above connection exchanging system and reverse method, the TCP that is blocked between user and the server by the connection exchanging system connects, and is connected and set up TCP with the user with server respectively.For the user, connect exchanging system and pretend to be server; And for server, connect exchanging system and pretend to be the user again, system is connected two TCP by operations such as address transition and connects.When server breaks down, connect exchanging system and pretend to be the server messaging, keep being connected, simultaneously, initiate again to be connected with the TCP of backup server with client's TCP, after connection is set up successfully, connect exchanging system by the conversion of TCP serial number, be connected two TCP once more and connect, avoided the connection on the server to hinder for some reason and interrupt, service is switched on the backup server proceeds, improved reliability of service.
Below in conjunction with drawings and Examples technical solution of the present invention is described further.
Fig. 1 is the overall construction drawing that connects exchanging system among the present invention program;
Fig. 2 is the flow chart of reverse method among the present invention program.
With reference to Fig. 1, connecting exchanging system is made up of user port module, Service-Port module, main processing block and server detection module and has a system ip address, this IP address is to the disclosed virtual ip address of user, the user port module is connected with the user, and the Service-Port module is connected with server.User port module and Service-Port mould are respectively equipped with user side stream table and server end stream table, with the stream of the TCP under these five field identification packets of source address, source port number, protocol number, destination address and destination slogan, also comprise processing action in the stream table to packet.Described user port module is used for the packet from user side is source address with the IP address, is source port number with the user port number, be destination address with the system ip address, be that the destination slogan is set up user side TCP and connected with the system end slogan, and to packet specified address switching motion; Described Service-Port module is used for that server is set up TCP and connects, to be source address with the server ip address from the packet of server end, be source port number with the server end slogan, be destination address with the IP address, be the destination slogan with the user port number, and to packet specified address switching motion; Described main processing block is provided with TCP controll block table, be used for to user side TCP connection status, server end TCP connection status, user side data packet delivery serial number and server end data bag pass order number write down and handle make belong to same stream packet between user side and server end by the address transition bi-directional; Described server detection module is used to detect the server failure generation and sends fault generation information to main processing block and server port module.
The initiation that connects with a TCP below, formation illustrate the course of work that connects exchanging system among the present invention program.
At first, the user sends the TCP initial package, is initiated to the TCP that connects exchanging system and connects.Five fields that identify this bag are IP address, user port number, TCP, system ip address, system end slogan, and this bag arrives and connects the exchanging system user port.Because this bag is the initial package of stream, user port module notice main processor modules and server port module for this new TCP flow distribution TCP controll block, also distribute list item in two stream tables.Then, determine main IP address with server by main processor modules, the address transition action in content of in each list item, inserting and the stream table, the TCP serial number in the TCP controll block table etc., and set up related.
In the 2nd step, according to the address transition action during Already in stream is shown, connection is dealt into the main server of using by the user port module.
In the 3rd step, server echo reply bag, this bag arrive and connect the exchanging system Service-Port.Five fields that identify this bag are server ip address, server end slogan, TCP, IP address, user port number.By the retrieval in server end stream table of Service-Port processing module, retrieve the list item of this TCP stream.Then, list items such as the tcp state in the corresponding TCP controll block table of Service-Port processing module elder generation change, serial number carry out the address transition operation according to the content of server end stream table again.
In the 4th step, the Service-Port module sends response packet according to the action regulation in the stream table to the user.
In the 5th step, the user port module is received the follow-up data bag that the user sends, and goes out the list item of this TCP stream in the table search of user side stream.List items such as the tcp state in the corresponding TCP controll block table of elder generation's change, serial number carry out the address transition operation according to the content of user side stream table more then.
In the 6th step, the user port module sends packet according to the action regulation in the user side stream table to server.
Connection exchanging system of the present invention can be provided with a plurality of external interfaces, and the user is connected by the said external interface with the Service-Port module with user port module, server.Described external interface can adopt Ethernet interface, DDN (Digital Data Net) interface, interface (being connected to the online packet type data terminal equipment of public data and the interface between the data with special circuit) etc. X.25.
When the server detection module detects server and breaks down, send fault generation information to main processing block and server port module.Connect exchanging system and begin to carry out and switches, the transmission of packet is continued to the backup server corresponding with this server, described server and corresponding with it backup server can be followed the backed up in synchronization agreement.Below, describe the execution in step of reverse method in detail in conjunction with Fig. 2.
At first, execution in step A, the deletion of Service-Port module is about the record of server, as server ip address, the server end slogan in the server end stream table.Execution in step B revises the address transition action in the user port module again, transfers packet to main processing block, and so far, the TCP that has cut off server end connects.Execution in step C then, main processing block sends to user side and replys, simultaneously according to record, use IP address and user port number to send request to backup server, setting up TCP connects, and in the Service-Port module, add the record of this backup server, as server ip address, server end slogan.Wherein main processing block sends to user side and replys, and can be notice user side retransmission data bag, its essence is and pretends to be the TCP server to response, and the connection of user side is kept; And meanwhile, foundation is connected with the TCP of backup server, with IP address, the port numbers adding server end stream table of backup server.Last execution in step D moves according to the address transition that the IP address and the port numbers of backup server are revised in user port module and the server port module; And number current data packet is carried out the serial number conversion according to the user side data packet delivery serial number of main processing block record and server end data bag pass order.Because backup server is to add midway, so, actual N the packet of the 1st packet that server end transmits for the user side transmission, and record user side data packet delivery serial number and server end data bag pass order number in the main processing block, carry out the serial number conversion according to record, guaranteed that corresponding relation is correct,, user side TCP connection has been connected with server end TCP once more is connected through above-mentioned switching.Recover normal when main with server, also can the main server of using be switched back in connection according to equal step.
Other modification that those skilled in the art make according to technical solution of the present invention are also within protection range of the present invention.

Claims (5)

1, a kind ofly be arranged at the server farm front end and the connection exchanging system to the backup server corresponding of when server breaks down, the transmission of packet being continued with this server, it is characterized in that: described connection exchanging system is by the user port module, the Service-Port module, main processing block and server detection module are formed and are had a system ip address, it is source address with the IP address that described user port module is used for the packet from user side, with the user port number is source port number, with the system ip address is destination address, with the system end slogan is that user side TCP connection set up in the destination slogan, and to packet specified address switching motion; Described Service-Port module is used for that server is set up TCP and connects, to be source address with the server ip address from the packet of server end, be source port number with the server end slogan, be destination address with the IP address, be the destination slogan with the user port number, and to packet specified address switching motion; Described main processing block be used for to user side TCP connection status, server end TCP connection status, user side data packet delivery serial number and server end data bag pass order number write down and handle make belong to same stream packet between user side and server end by the address transition bi-directional; Described server detection module is used to detect the server failure generation and sends fault generation information to main processing block and server port module.
2, connection exchanging system as claimed in claim 1 is characterized in that: this connection exchanging system is provided with a plurality of external interfaces, and the user is connected by the said external interface with the Service-Port module with user port module, server.
3, connection exchanging system as claimed in claim 1 is characterized in that: described server and corresponding with it backup server are followed the backed up in synchronization agreement.
4, a kind of transmission that in connection exchanging system as claimed in claim 1, is used for when server breaks down packet reverse method to the backup server corresponding that continues with this server, it is characterized in that: when described server detection module detects server and breaks down, carry out according to following step:
A, Service-Port module are deleted the record about server;
B, the address transition of revising in the user port module are moved, and transfer packet to main processing block;
C, main processing block send to user side and reply, and simultaneously according to record, use IP address and user port number to send request to backup server, set up TCP and connect, and add the record of this backup server in the Service-Port module;
D, revise address transition action in user port module and the server port module according to the IP address of backup server and port numbers; And number current data packet is carried out the serial number conversion according to the user side data packet delivery serial number of main processing block record and server end data bag pass order.
5, reverse method as claimed in claim 4 is characterized in that: described main processing block sends to reply to user side and is notice user side retransmission data bag.
CNB011293136A 2001-06-11 2001-06-11 Connection switching system at front end of server cluster and its switching method Expired - Fee Related CN1134938C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB011293136A CN1134938C (en) 2001-06-11 2001-06-11 Connection switching system at front end of server cluster and its switching method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB011293136A CN1134938C (en) 2001-06-11 2001-06-11 Connection switching system at front end of server cluster and its switching method

Publications (2)

Publication Number Publication Date
CN1391378A true CN1391378A (en) 2003-01-15
CN1134938C CN1134938C (en) 2004-01-14

Family

ID=4669074

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB011293136A Expired - Fee Related CN1134938C (en) 2001-06-11 2001-06-11 Connection switching system at front end of server cluster and its switching method

Country Status (1)

Country Link
CN (1) CN1134938C (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100423513C (en) * 2006-03-21 2008-10-01 杭州华三通信技术有限公司 Merging method with TCP connection
WO2009046646A1 (en) * 2007-10-09 2009-04-16 Huawei Technologies Co., Ltd. A method, apparatus and system for performing redundant backup on video service
CN1816056B (en) * 2005-02-02 2011-04-06 日本电气英富醍株式会社 Network, network terminal device, method and program for ip address management using same
CN101222350B (en) * 2007-01-12 2011-08-24 华为技术有限公司 Protection switching decision method and system
CN103944698A (en) * 2014-04-10 2014-07-23 四川华雁信息产业股份有限公司 Hot standby method
CN104348637A (en) * 2013-07-26 2015-02-11 中国科学院声学研究所 Method for maintaining TCP connection in fault switching
CN106331156A (en) * 2016-09-26 2017-01-11 广东小天才科技有限公司 Terminal information interaction method and device
CN109714190A (en) * 2018-11-28 2019-05-03 四川商通实业有限公司 A kind of load balancing based on application level and failure transfer system and its method

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101192964B (en) * 2006-11-24 2011-04-06 中兴通讯股份有限公司 Master/slave switching system and method for multicast source

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1816056B (en) * 2005-02-02 2011-04-06 日本电气英富醍株式会社 Network, network terminal device, method and program for ip address management using same
CN100423513C (en) * 2006-03-21 2008-10-01 杭州华三通信技术有限公司 Merging method with TCP connection
CN101222350B (en) * 2007-01-12 2011-08-24 华为技术有限公司 Protection switching decision method and system
WO2009046646A1 (en) * 2007-10-09 2009-04-16 Huawei Technologies Co., Ltd. A method, apparatus and system for performing redundant backup on video service
CN104348637A (en) * 2013-07-26 2015-02-11 中国科学院声学研究所 Method for maintaining TCP connection in fault switching
CN103944698A (en) * 2014-04-10 2014-07-23 四川华雁信息产业股份有限公司 Hot standby method
CN103944698B (en) * 2014-04-10 2017-10-03 四川华雁信息产业股份有限公司 A kind of double hot standby method
CN106331156A (en) * 2016-09-26 2017-01-11 广东小天才科技有限公司 Terminal information interaction method and device
CN109714190A (en) * 2018-11-28 2019-05-03 四川商通实业有限公司 A kind of load balancing based on application level and failure transfer system and its method

Also Published As

Publication number Publication date
CN1134938C (en) 2004-01-14

Similar Documents

Publication Publication Date Title
EP1906681B1 (en) Changeover-to-backup technique in a computer system
CN1134938C (en) Connection switching system at front end of server cluster and its switching method
CN101675346A (en) Pseudowire load balancing
CN103516918B (en) Faulty resource restoration methods and device
CN102209047A (en) Instant messaging system and method for realizing information sharing
CN106385334A (en) Call-center system and abnormality detection and self-recovery method therefor
CN1172059C (en) Communication system for working machines
CN100442791C (en) Method for improving data communication reliability using floating IP address
CN101098279A (en) Distributed dynamictopology system, construction method and terminal unit applied therein
JP2003018624A (en) Selection system and method of voice channel
US6678371B1 (en) Direct customer control of a network router
CN1547843A (en) Automatic call distribution with computer telephony interface enablement
CN1191437A (en) Automatic switching system
CN1411212A (en) Message receiving and transmitting method of combined bridge connection function and routing function
US20020021774A1 (en) Dispatcher configurable linking of software elements
US6519624B1 (en) System for transmitting/receiving data records among computer nodes with communication applications via an internet or via a broadband connection depending on the type of data records
CN1430396A (en) Uninterrupted automatic calling distribution during computer telephone integral fault and recovery
CN1202771A (en) Multimedia processing system with controller exclusively operating on extraction control signals
CN100344202C (en) Method and device for realizing service processing unit backup in intelligent network system
CN100433766C (en) Serious failure fast restoring emergency method for telephone exchange terminal office
JPS6366104B2 (en)
CN101023683A (en) Short message central group system and control method thereof
CN102123358A (en) Method and system for realizing dynamic load sharing in short message system
JP2001309054A (en) Private branch exchange system cooperating network, its control method and recording medium with its control program recorded thereon
CN1173583C (en) Switch system and its identification method

Legal Events

Date Code Title Description
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20040114

Termination date: 20150611

EXPY Termination of patent right or utility model