CN113992500A - Main/standby server switching method and device suitable for VoIP terminal - Google Patents

Main/standby server switching method and device suitable for VoIP terminal Download PDF

Info

Publication number
CN113992500A
CN113992500A CN202111302628.3A CN202111302628A CN113992500A CN 113992500 A CN113992500 A CN 113992500A CN 202111302628 A CN202111302628 A CN 202111302628A CN 113992500 A CN113992500 A CN 113992500A
Authority
CN
China
Prior art keywords
server
message
tcp connection
voip service
voip
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.)
Pending
Application number
CN202111302628.3A
Other languages
Chinese (zh)
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.)
Xiamen Yealink Network Technology Co Ltd
Original Assignee
Xiamen Yealink Network Technology 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 Xiamen Yealink Network Technology Co Ltd filed Critical Xiamen Yealink Network Technology Co Ltd
Priority to CN202111302628.3A priority Critical patent/CN113992500A/en
Publication of CN113992500A publication Critical patent/CN113992500A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0668Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/143Termination or inactivation of sessions, e.g. event-controlled end of session
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M7/00Arrangements for interconnection between switching centres
    • H04M7/006Networks other than PSTN/ISDN providing telephone service, e.g. Voice over Internet Protocol (VoIP), including next generation networks with a packet-switched transport layer

Abstract

The invention discloses a method and a device for switching a main server and a standby server suitable for a VoIP terminal. The method comprises the following steps: sending a first TCP connection establishment request and a first SYN data packet to a main server, and receiving a first TCP connection response message returned by the main server; if the first TCP connection response message is not an ICMP message or an RST message, establishing TCP connection with the main server; and if the first TCP connection response message is an ICMP message or an RST message, stopping retransmitting the first SYN data packet, and sending a second TCP connection establishment request and a second SYN data packet to the standby server after a first preset time so as to establish TCP connection with the standby server. The invention can make VoIP terminal switch the main server and the backup server when receiving ICMP message or RST message in TCP connection, thereby ensuring the stability of VoIP terminal communication.

Description

Main/standby server switching method and device suitable for VoIP terminal
Technical Field
The present invention relates to the field of network communication technologies, and in particular, to a method and an apparatus for switching between a master server and a standby server suitable for a VoIP terminal.
Background
Voice over Internet Protocol (VoIP) is a Voice call technology, and a Voice call and a multimedia conference are achieved through Internet Protocol (IP), that is, communication is performed through the Internet. The VoIP technology can be applied to a variety of internet access devices including VoIP phones, smart phones, and personal computers, and these VoIP terminals interact with various VoIP service providers through cellular networks and WiFi to perform various VoIP services such as registration, subscription, conversation, and sending short messages.
In order to realize reliable data transmission, a VoIP terminal usually establishes a TCP connection with a server and then executes various VoIP services, but at present, there is no switching mechanism of the main/standby server for the case that the VoIP terminal receives an ICMP/RST message during and after the TCP connection. When the VoIP terminal receives the ICMP/RST message during and after TCP connection, the VoIP service cannot be normally executed, and at this time, the VoIP terminal cannot perform switching between the main server and the standby server, which makes it difficult to ensure the stability of communication of the VoIP terminal.
Disclosure of Invention
The invention provides a method and a device for switching a main server and a standby server, which are suitable for a VoIP terminal, and can ensure that the VoIP terminal switches the main server and the standby server when receiving ICMP messages or RST messages in TCP connection, thereby ensuring the communication stability of the VoIP terminal.
In order to solve the foregoing technical problem, in a first aspect, an embodiment of the present invention provides a method for switching between an active server and a standby server applicable to a VoIP terminal, including:
sending a first TCP connection establishment request and a first SYN data packet to a main server, and receiving a first TCP connection response message returned by the main server;
if the first TCP connection response message is not an ICMP message or an RST message, establishing a TCP connection with the main server;
and if the first TCP connection response message is an ICMP message or an RST message, stopping retransmitting the first SYN data packet, and sending a second TCP connection establishment request and a second SYN data packet to the standby server after a first preset time so as to establish TCP connection with the standby server.
Further, after the establishing the TCP connection with the primary server, the method further includes:
sending VoIP service signaling data to the main server, and receiving a VoIP service response message returned by the main server;
if the VoIP service response message is not an ICMP message or an RST message, a VoIP service corresponding to the VoIP service signaling data is executed;
if the VoIP service response message is an ICMP message or an RST message, the VoIP service signaling data is sent to the standby server after a second preset time so as to execute the VoIP service; alternatively, the first and second electrodes may be,
if the service response message is an ICMP message, retransmitting the VoIP service signaling data until the VoIP service is executed or a preset switching condition is met, and sending the VoIP service signaling data to the standby server to execute the VoIP service when the preset switching condition is met;
and if the VoIP service response message is a RST message, sending the VoIP service signaling data to the standby server after the second preset time so as to execute the VoIP service.
Further, the preset switching condition is that the retransmission times reach the maximum retransmission times or the total retransmission time reaches the maximum transaction processing time.
Further, after the establishing the TCP connection with the primary server, the method further includes:
when VoIP service signaling data interaction is not carried out with the main server, if RST information returned by the main server is received, registration continuation detection is carried out on the main server after third preset time, and when the registration continuation detection fails, a second TCP connection establishment request and a second SYN data packet are sent to the standby server to be switched to the standby server for registration.
Further, before the sending a first TCP connection establishment request and a first SYN packet to a primary server and receiving a first TCP connection response message returned by the primary server, the method further includes:
and resolving a plurality of servers according to the domain name, selecting one server from all the servers as the main server, and taking the rest servers as the standby servers.
In a second aspect, an embodiment of the present invention provides a device for switching between a master server and a standby server suitable for a VoIP terminal, including a processor;
the processor is configured to:
sending a first TCP connection establishment request and a first SYN data packet to a main server, and receiving a first TCP connection response message returned by the main server;
if the first TCP connection response message is not an ICMP message or an RST message, establishing a TCP connection with the main server;
and if the first TCP connection response message is an ICMP message or an RST message, stopping retransmitting the first SYN data packet, and sending a second TCP connection establishment request and a second SYN data packet to the standby server after a first preset time so as to establish TCP connection with the standby server.
Further, after the establishing the TCP connection with the primary server, the method further includes:
sending VoIP service signaling data to the main server, and receiving a VoIP service response message returned by the main server;
if the VoIP service response message is not an ICMP message or an RST message, a VoIP service corresponding to the VoIP service signaling data is executed;
if the VoIP service response message is an ICMP message or an RST message, the VoIP service signaling data is sent to the standby server after a second preset time so as to execute the VoIP service; alternatively, the first and second electrodes may be,
if the service response message is an ICMP message, retransmitting the VoIP service signaling data until the VoIP service is executed or a preset switching condition is met, and sending the VoIP service signaling data to the standby server to execute the VoIP service when the preset switching condition is met;
and if the VoIP service response message is a RST message, sending the VoIP service signaling data to the standby server after the second preset time so as to execute the VoIP service.
Further, the preset switching condition is that the retransmission times reach the maximum retransmission times or the total retransmission time reaches the maximum transaction processing time.
Further, after the establishing the TCP connection with the primary server, the method further includes:
when VoIP service signaling data interaction is not carried out with the main server, if RST information returned by the main server is received, registration continuation detection is carried out on the main server after third preset time, and when the registration continuation detection fails, a second TCP connection establishment request and a second SYN data packet are sent to the standby server to be switched to the standby server for registration.
Further, before the sending a first TCP connection establishment request and a first SYN packet to a primary server and receiving a first TCP connection response message returned by the primary server, the method further includes:
and resolving a plurality of servers according to the domain name, selecting one server from all the servers as the main server, and taking the rest servers as the standby servers.
The embodiment of the invention has the following beneficial effects:
the method comprises the steps of sending a first TCP connection establishment request and a first SYN data packet to a main server, receiving a first TCP connection response message returned by the main server, if the first TCP connection response message is not an ICMP message or an RST message, establishing TCP connection with the main server, if the first TCP connection response message is the ICMP message or the RST message, stopping retransmitting the first SYN data packet, and sending a second TCP connection establishment request and a second SYN data packet to a standby server after a first preset time so as to establish TCP connection with the standby server, thereby realizing the switching of the main server and the standby server. Compared with the prior art, the embodiment of the invention judges whether the main server returns the ICMP message or the RST message in the process of establishing the TCP connection with the main server, and switches to the standby server to establish the TCP connection when judging that the main server returns the ICMP message or the RST message, wherein the main/standby switching mode can be selected according to the error type of the ICMP message or the RST message, namely, the first preset time is set, the main/standby switching is carried out according to the selected main/standby switching mode, so that the VoIP terminal can carry out the main/standby switching when receiving the ICMP message or the RST message in the TCP connection, and the communication stability of the VoIP terminal is ensured.
Further, in the embodiment of the present invention, in the process of performing VoIP service signaling data interaction after a TCP connection is successfully established with the main server, it is determined whether the main server returns an ICMP message or an RST message, and when it is determined that the main server returns the ICMP message or the RST message, the main server is switched to the standby server to re-initiate the VoIP service, wherein a main/standby switching manner may be selected according to an error type of the ICMP message or the RST message, that is, the VoIP service signaling data is directly retransmitted or sent only when a preset switching condition is met, and the main/standby server switching is performed according to the selected main/standby switching manner, so that the VoIP terminal performs the main/standby server switching when receiving the ICMP message or the RST message after the TCP connection, thereby ensuring the stability of the VoIP terminal communication.
Further, in the embodiment of the invention, after the TCP connection is successfully established with the main server but the VoIP service signaling data interaction is not performed, whether the main server returns the RST message is judged, and when the main server returns the RST message is judged, the standby server is switched to establish the TCP connection, so that the VoIP terminal can perform the switching between the main server and the standby server when receiving the ICMP message or the RST message after the TCP connection, thereby ensuring the communication stability of the VoIP terminal.
Drawings
Fig. 1 is a schematic flow chart of a method for switching between a master server and a standby server suitable for a VoIP terminal according to a first embodiment of the present invention;
fig. 2 is a data flow diagram illustrating an active/standby server switching method applicable to a VoIP terminal according to an example in the first embodiment of the present invention;
fig. 3 is a data flow diagram of a method for switching between active and standby servers of a VoIP terminal according to a preferred embodiment of the present invention;
fig. 4 is a data flow diagram of a method for switching between active and standby servers of a VoIP terminal according to another preferred embodiment of the present invention;
fig. 5 is a schematic structural diagram of an active/standby server switching device suitable for a VoIP terminal in a second embodiment of the present invention.
Detailed Description
The technical solutions in the present invention will be described clearly and completely with reference to the accompanying drawings, and it is obvious that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that, the step numbers in the text are only for convenience of explanation of the specific embodiments, and do not serve to limit the execution sequence of the steps. The method provided by the embodiment can be executed by the relevant terminal device, and the following description takes the VoIP terminal as an execution subject as an example.
As shown in fig. 1, a first embodiment provides a method for switching between active and standby servers suitable for a VoIP terminal, including steps S1 to S3:
s1, sending a first TCP connection establishment request and a first SYN data packet to the main server, and receiving a first TCP connection response message returned by the main server;
s2, if the first TCP connection response message is not ICMP message or RST message, establishing TCP connection with the main server;
and S3, if the first TCP connection response message is an ICMP message or an RST message, stopping retransmitting the first SYN data packet, and sending a second TCP connection establishment request and a second SYN data packet to the standby server after a first preset time so as to establish TCP connection with the standby server.
It should be noted that the transmission type of data in the active/standby server switching method is limited to TCP or TLS.
As shown in fig. 2, to ensure reliable transmission of data, the VoIP terminal establishes a TCP connection with the server before initiating registration, subscription, call or other VoIP service. The VoIP terminal analyzes a plurality of servers of IP1, IP2 and IP3 from registered domain names through the domain name server, selects the server IP1 analyzed first from the servers as a main server and the other servers of IP2 and IP3 as standby servers according to the analysis sequence of the servers of IP1 → IP2 → IP 3. The VoIP terminal sends a first TCP connection establishment request and a first SYN packet to the main server IP1, and receives a first TCP connection reply message returned by the main server IP 1.
If the first TCP connection response message returned by the main server IP1 is not an ICMP message or an RST message, and the network connection status is considered to be normal, the VoIP terminal establishes a TCP connection with the main server IP 1.
If the first TCP connection response message returned by the main server IP1 is an ICMP message or an RST message, and it is considered that the network connection status is abnormal, for example, the main server IP1 goes down, the VoIP terminal reports a status code (ICMP message or RST message) internally, stops retransmitting the first SYN packet to the main server IP1, and transmits a second TCP connection establishment request and a second SYN packet to the first resolved standby server IP2 after a first preset time, so as to establish a TCP connection with the standby server IP 2.
If the second TCP connection response message returned from the backup server IP2 is not the ICMP message or the RST message, and the network connection status is considered to be normal, the VoIP terminal establishes a TCP connection with the backup server IP 2.
If the second TCP connection response message returned by the standby server IP2 is an ICMP message or an RST message, and it is considered that the network connection status is abnormal, for example, a fault such as a shutdown of the standby server IP2 occurs, the VoIP terminal reports a status code (ICMP message or RST message) inside, stops retransmitting the second SYN packet to the standby server IP2, and transmits a third TCP connection establishment request and a third SYN packet to the remaining first resolved standby server IP3 after a first preset time, so as to establish a TCP connection with the standby server IP 3.
Wherein the first preset time is a different time value set according to a different error type of the ICMP message or the RST message. When the setting is 0s, the VoIP terminal immediately switches to the standby server IP2 to establish the TCP connection when receiving the ICMP message or RST message returned by the main server IP1 in the TCP connection.
It is understood that the error type of the ICMP message includes 7 types, i.e., ICMP-net-unreachable, ICMP-host-unreachable, ICMP-port-unreachable rst, ICMP-proto-unreachable, ICMP-net-prohibited, ICMP-host-prohibited, and ICMP-admin-prohibited, respectively. In the process of establishing TCP connection with the main server, the VoIP terminal can immediately switch the main and standby modes according to different error types of ICMP messages or wait for the TCP connection to switch the main and standby modes after overtime.
In the embodiment, in the process of establishing the TCP connection with the main server, whether the main server returns an ICMP message or an RST message is determined, and when it is determined that the main server returns the ICMP message or the RST message, the main server is switched to the standby server to establish the TCP connection, where a main/standby switching manner may be selected according to an error type of the ICMP message or the RST message, that is, a first preset time is set, and the main/standby switching is performed according to the selected main/standby switching manner, so that the main/standby switching is performed when the VoIP terminal receives the ICMP message or the RST message in the TCP connection, thereby ensuring the communication stability of the VoIP terminal.
In this embodiment, a plurality of active/standby server switching modes are configured by setting a first preset time, so that the VoIP terminal can perform active/standby switching in various forms, and the communication stability of the VoIP terminal is further ensured.
In a preferred embodiment, after the establishing the TCP connection with the primary server, the method further includes: sending VoIP service signaling data to a main server and receiving a VoIP service response message returned by the main server; if the VoIP service response message is not the ICMP message or the RST message, the VoIP service corresponding to the VoIP service signaling data is executed; if the VoIP service response message is an ICMP message or an RST message, transmitting VoIP service signaling data to the standby server after a second preset time so as to execute the VoIP service; or, if the service response message is an ICMP message, retransmitting VoIP service signaling data until the VoIP service is executed or a preset switching condition is satisfied, and transmitting the VoIP service signaling data to the standby server to execute the VoIP service when the preset switching condition is satisfied; and if the VoIP service response message is the RST message, sending VoIP service signaling data to the standby server after the second preset time so as to execute the VoIP service.
In a preferred implementation manner of this embodiment, the predetermined switching condition is that the number of retransmissions reaches the maximum number of retransmissions or the total time consumed for retransmission reaches the maximum transaction time.
As shown in fig. 3, by way of example, after the VoIP terminal successfully establishes a TCP connection with the host server IP1, the VoIP terminal may send VoIP traffic signaling data to the host server IP1 to initiate registration, subscription, telephony, or other VoIP traffic, such as sending a registration request to the host server IP1 to successfully register on the host server IP 1. The VoIP terminal transmits VoIP service signaling data to the main server IP1 and receives a VoIP service response message returned from the main server IP 1.
If the VoIP service response message returned by the main server IP1 is not the ICMP message or the RST message, the network connection status is considered to be normal, and the main server IP1 can normally respond to the VoIP service signaling data, then the VoIP service corresponding to the VoIP service signaling data is executed.
If the VoIP service response message returned by the main server IP1 is an ICMP message or an RST message, it is considered that the network connection status is abnormal, for example, the main server IP1 goes down, and the main server IP1 cannot normally respond to the VoIP service signaling data, the VoIP terminal reports a status code (ICMP message or RST message) therein, and sends the VoIP service signaling data to the standby server IP2 analyzed first after a second preset time, so as to execute the VoIP service.
If the VoIP service response message returned by the standby server IP2 is not the ICMP message or the RST message, it is determined that the network connection status is normal, and the standby server IP2 can normally respond to the VoIP service signaling data, then the VoIP service is executed.
If the VoIP service response message returned by the standby server IP2 is an ICMP message or an RST message, and it is considered that the network connection status is abnormal, such as the standby server IP2 goes down, the status code (ICMP message or RST message) is reported inside the VoIP terminal, and after a second preset time, VoIP service signaling data is sent to the remaining standby server IP3 that is analyzed first, so as to execute the VoIP service.
Wherein the second preset time is a different time value set according to a different error type of the ICMP message or the RST message. When set to 0s, the VoIP terminal immediately switches to the standby server IP2 to perform VoIP service when receiving the ICMP message or RST message returned from the main server IP1 after TCP connection.
Or, if the VoIP service response message returned by the main server IP1 is an ICMP message, the VoIP terminal retransmits the VoIP service signaling data until the VoIP service is executed or the preset switching condition is satisfied, and when the preset switching condition is satisfied, transmits the VoIP service signaling data to the standby server IP2 analyzed first to execute the VoIP service; if the VoIP service response message is the RST message, the VoIP terminal sends VoIP service signaling data to the standby server IP2 analyzed first after the second preset time, so as to execute the VoIP service.
It is understood that the error type of the ICMP message includes 7 types, i.e., ICMP-net-unreachable, ICMP-host-unreachable, ICMP-port-unreachable rst, ICMP-proto-unreachable, ICMP-net-prohibited, ICMP-host-prohibited, and ICMP-admin-prohibited, respectively. In the process of carrying out VoIP service signaling data interaction after the VoIP terminal successfully establishes TCP connection with the main server, the main-standby switching can be immediately carried out according to different error types of ICMP messages or after the retransmission times of the VoIP service signaling data meet the preset switching conditions.
For example, the preset switching condition is that the number of retransmissions reaches a maximum number of retransmissions, which is 2. When the VoIP service response message returned by the IP1 of the main server is an ICMP message, the VoIP terminal retransmits VoIP service signaling data for the first time; if the VoIP service response message returned by the IP1 of the main server after the first retransmission of the VoIP service signaling data is not the ICMP message, the VoIP service is executed, and if the VoIP service response message returned by the IP1 of the main server after the first retransmission of the VoIP service signaling data is the ICMP message, the VoIP terminal retransmits the VoIP service signaling data for the second time; if the VoIP service response message returned by the main server IP1 after the second retransmission of the VoIP service signaling data is not the ICMP message, the VoIP service is executed, and if the VoIP service response message returned by the main server IP1 after the second retransmission of the VoIP service signaling data is still the ICMP message, the VoIP terminal sends the VoIP service signaling data to the backup server IP2 analyzed first, so as to execute the VoIP service.
For example, the preset switching condition is that the total time spent for retransmission reaches the maximum transaction processing time, the maximum transaction processing time is 32s, and the retransmission interval time is set, for example, the second retransmission waiting time is set to 0.5s, the third retransmission waiting time is set to 1s, and the subsequent retransmission waiting time is fixed to 2 s. When the VoIP service response message returned by the IP1 of the main server is an ICMP message, the VoIP terminal retransmits VoIP service signaling data for the first time; if the VoIP service response message returned by the IP1 of the main server after the first retransmission of the VoIP service signaling data is not the ICMP message, the VoIP service is executed, and if the VoIP service response message returned by the IP1 of the main server after the first retransmission of the VoIP service signaling data is the ICMP message, the VoIP terminal waits for 0.5s and then retransmits the VoIP service signaling data for the second time; if the VoIP service response message returned by the IP1 of the main server after the second retransmission of the VoIP service signaling data is not the ICMP message, the VoIP service is executed, and if the VoIP service response message returned by the IP1 of the main server after the second retransmission of the VoIP service signaling data is the ICMP message, the VoIP terminal waits for 1s and then retransmits the VoIP service signaling data for the third time; if the VoIP service response message returned by the IP1 of the main server after the third retransmission of the VoIP service signaling data is not the ICMP message, the VoIP service is executed, and if the VoIP service response message returned by the IP1 of the main server after the third retransmission of the VoIP service signaling data is the ICMP message, the VoIP terminal waits for 2s and then retransmits the VoIP service signaling data for the fourth time; if the VoIP service response message returned by the IP1 of the main server after the VoIP service signaling data is retransmitted for the fourth time is not the ICMP message, the VoIP service is executed, and if the VoIP service response message returned by the IP1 of the main server after the VoIP service signaling data is retransmitted for the fourth time is the ICMP message, the VoIP terminal waits for 2s and then retransmits the VoIP service signaling data for the fifth time; and so on, until the maximum transaction processing time is reached when the total retransmission consumption is up, the VoIP terminal sends VoIP service signaling data to the standby server IP2 which is analyzed first, so as to execute the VoIP service.
In the embodiment, in the process of performing VoIP service signaling data interaction after TCP connection is successfully established with the main server, whether the main server returns an ICMP message or an RST message is determined, and when it is determined that the main server returns an ICMP message or an RST message, the main server is switched to the standby server to re-initiate the VoIP service, wherein a main/standby switching mode may be selected according to an error type of the ICMP message or the RST message, that is, VoIP service signaling data is directly retransmitted or sent only when a preset switching condition is met, the main/standby server switching is performed according to the selected main/standby switching mode, so that the VoIP terminal performs main/standby server switching when receiving the ICMP message or the RST message after TCP connection, thereby ensuring the communication stability of the VoIP terminal.
In this embodiment, multiple active/standby server switching modes are configured by setting the second preset time and the preset switching condition, so that the VoIP terminal can perform active/standby switching in multiple forms, and the communication stability of the VoIP terminal is further ensured.
In a preferred embodiment, after the establishing the TCP connection with the primary server, the method further includes: when VoIP service signaling data interaction is not carried out with the main server, if RST information returned by the main server is received, registration continuation detection is carried out on the main server after third preset time, and when the registration continuation detection fails, a second TCP connection establishment request and a second SYN data packet are sent to the standby server so as to be switched to the standby server for registration.
As shown in fig. 4, as an example, after the VoIP terminal successfully establishes a TCP connection with the primary server IP1, when the VoIP terminal receives the RST message returned by the primary server IP1 without VoIP traffic signaling data interaction with the primary server IP1, it considers that the network connection state is abnormal and the TCP connection is wrong, and then the VoIP terminal performs registration renewal detection on the primary server IP1 after a third preset time, and when the registration renewal detection fails, sends a second TCP connection establishment request and a second SYN packet to the standby server IP2 analyzed first, so as to switch to the standby server IP2 for registration.
If the second TCP connection response message returned by the standby server IP2 is not the ICMP message or the RST message, and the network connection status is considered to be normal, the VoIP terminal establishes a TCP connection with the standby server IP2, and the VoIP terminal may initiate a registration service to the standby server IP 2.
If the second TCP connection response message returned by the standby server IP2 is an ICMP message or an RST message, and it is considered that the network connection status is abnormal, for example, a failure such as a shutdown of the standby server IP2 occurs, the VoIP terminal stops retransmitting the second SYN packet to the standby server IP2, and sends a third TCP connection establishment request and a third SYN packet to the remaining standby server IP3 analyzed first, so as to establish a TCP connection with the standby server IP3, so that the VoIP terminal can initiate a registration service to the standby server IP 3.
The third preset time can be set to different time values according to different error types of the RST message. When the time is set to 0s, the VoIP terminal immediately performs registration renewal detection on the main server IP1 when receiving the RST message returned by the main server IP1 without VoIP traffic signaling data interaction with the main server IP 1.
In the embodiment, after the TCP connection is successfully established with the main server but the VoIP service signaling data interaction is not performed, whether the main server returns the RST message is judged, and when the main server returns the RST message is judged, the main server is switched to the standby server to establish the TCP connection, so that the VoIP terminal performs the switching between the main server and the standby server when receiving the ICMP message or the RST message after the TCP connection, thereby ensuring the communication stability of the VoIP terminal.
In this embodiment, a plurality of active/standby server switching modes are configured by setting a third preset time, so that the VoIP terminal can perform active/standby switching in various forms, and the communication stability of the VoIP terminal is further ensured.
In a preferred embodiment, before sending the first TCP connection establishment request and the first SYN packet to the primary server and receiving the first TCP connection response message returned by the primary server, the method further includes: and resolving a plurality of servers according to the domain name, selecting one of all the servers as a main server, and taking the rest servers as standby servers.
Illustratively, the VoIP terminal parses a plurality of servers IP1, IP2, and IP3 from the registered domain names by the domain name server, and selects the server IP1 parsed first from among the servers as the primary server and the remaining servers IP2 and IP3 as the backup servers according to the parsing order of the servers IP1 → IP2 → IP 3.
As shown in fig. 5, a second embodiment provides a device for switching between active and standby servers suitable for a VoIP terminal, including a processor; a processor to: sending a first TCP connection establishment request and a first SYN data packet to a main server, and receiving a first TCP connection response message returned by the main server; if the first TCP connection response message is not an ICMP message or an RST message, establishing TCP connection with the main server; and if the first TCP connection response message is an ICMP message or an RST message, stopping retransmitting the first SYN data packet, and sending a second TCP connection establishment request and a second SYN data packet to the standby server after a first preset time so as to establish TCP connection with the standby server.
As an example, to ensure reliable transmission of data, a VoIP terminal establishes a TCP connection with a server before initiating registration, subscription, conversation, or other VoIP traffic. A processor is arranged in the VoIP terminal, the VoIP terminal analyzes a plurality of servers of IP1, IP2 and IP3 from registered domain names through domain name servers, and selects a server IP1 analyzed firstly from the servers as a main server and the other servers IP2 and IP3 as standby servers according to the analysis sequence of the servers IP1 → IP2 → IP 3. The VoIP terminal sends a first TCP connection establishment request and a first SYN packet to the main server IP1, and receives a first TCP connection reply message returned by the main server IP 1.
If the first TCP connection response message returned by the main server IP1 is not an ICMP message or an RST message, and the network connection status is considered to be normal, the VoIP terminal establishes a TCP connection with the main server IP 1.
If the first TCP connection response message returned by the main server IP1 is an ICMP message or an RST message, and it is considered that the network connection status is abnormal, for example, the main server IP1 goes down, the VoIP terminal reports a status code (ICMP message or RST message) internally, stops retransmitting the first SYN packet to the main server IP1, and transmits a second TCP connection establishment request and a second SYN packet to the first resolved standby server IP2 after a first preset time, so as to establish a TCP connection with the standby server IP 2.
If the second TCP connection response message returned from the backup server IP2 is not the ICMP message or the RST message, and the network connection status is considered to be normal, the VoIP terminal establishes a TCP connection with the backup server IP 2.
If the second TCP connection response message returned by the standby server IP2 is an ICMP message or an RST message, and it is considered that the network connection status is abnormal, for example, a fault such as a shutdown of the standby server IP2 occurs, the VoIP terminal reports a status code (ICMP message or RST message) inside, stops retransmitting the second SYN packet to the standby server IP2, and transmits a third TCP connection establishment request and a third SYN packet to the remaining first resolved standby server IP3 after a first preset time, so as to establish a TCP connection with the standby server IP 3.
Wherein the first preset time is a different time value set according to a different error type of the ICMP message or the RST message. When the setting is 0s, the VoIP terminal immediately switches to the standby server IP2 to establish the TCP connection when receiving the ICMP message or RST message returned by the main server IP1 in the TCP connection.
It is understood that the error type of the ICMP message includes 7 types, i.e., ICMP-net-unreachable, ICMP-host-unreachable, ICMP-port-unreachable rst, ICMP-proto-unreachable, ICMP-net-prohibited, ICMP-host-prohibited, and ICMP-admin-prohibited, respectively. In the process of establishing TCP connection with the main server, the VoIP terminal can immediately switch the main and standby modes according to different error types of ICMP messages or wait for the TCP connection to switch the main and standby modes after overtime.
In the embodiment, in the process of establishing the TCP connection with the main server, whether the main server returns an ICMP message or an RST message is determined, and when it is determined that the main server returns the ICMP message or the RST message, the main server is switched to the standby server to establish the TCP connection, where a main/standby switching manner may be selected according to an error type of the ICMP message or the RST message, that is, a first preset time is set, and the main/standby switching is performed according to the selected main/standby switching manner, so that the main/standby switching is performed when the VoIP terminal receives the ICMP message or the RST message in the TCP connection, thereby ensuring the communication stability of the VoIP terminal.
In this embodiment, a plurality of active/standby server switching modes are configured by setting a first preset time, so that the VoIP terminal can perform active/standby switching in various forms, and the communication stability of the VoIP terminal is further ensured.
In a preferred embodiment, after the establishing the TCP connection with the primary server, the method further includes: sending VoIP service signaling data to a main server and receiving a VoIP service response message returned by the main server; if the VoIP service response message is not the ICMP message or the RST message, the VoIP service corresponding to the VoIP service signaling data is executed; if the VoIP service response message is an ICMP message or an RST message, transmitting VoIP service signaling data to the standby server after a second preset time so as to execute the VoIP service; or, if the service response message is an ICMP message, retransmitting VoIP service signaling data until the VoIP service is executed or a preset switching condition is satisfied, and transmitting the VoIP service signaling data to the standby server to execute the VoIP service when the preset switching condition is satisfied; and if the VoIP service response message is the RST message, sending VoIP service signaling data to the standby server after the second preset time so as to execute the VoIP service.
In a preferred implementation manner of this embodiment, the predetermined switching condition is that the number of retransmissions reaches the maximum number of retransmissions or the total time consumed for retransmission reaches the maximum transaction time.
Illustratively, after the VoIP terminal successfully establishes a TCP connection with the primary server IP1, the VoIP terminal may send VoIP traffic signaling data to the primary server IP1 to initiate registration, subscription, conversation, or other VoIP traffic, such as a registration request to the primary server IP1 to successfully register on the primary server IP 1. The VoIP terminal transmits VoIP service signaling data to the main server IP1 and receives a VoIP service response message returned from the main server IP 1.
If the VoIP service response message returned by the main server IP1 is not the ICMP message or the RST message, the network connection status is considered to be normal, and the main server IP1 can normally respond to the VoIP service signaling data, then the VoIP service corresponding to the VoIP service signaling data is executed.
If the VoIP service response message returned by the main server IP1 is an ICMP message or an RST message, it is considered that the network connection status is abnormal, for example, the main server IP1 goes down, and the main server IP1 cannot normally respond to the VoIP service signaling data, the VoIP terminal reports a status code (ICMP message or RST message) therein, and sends the VoIP service signaling data to the standby server IP2 analyzed first after a second preset time, so as to execute the VoIP service.
If the VoIP service response message returned by the standby server IP2 is not the ICMP message or the RST message, it is determined that the network connection status is normal, and the standby server IP2 can normally respond to the VoIP service signaling data, then the VoIP service is executed.
If the VoIP service response message returned by the standby server IP2 is an ICMP message or an RST message, and it is considered that the network connection status is abnormal, such as the standby server IP2 goes down, the status code (ICMP message or RST message) is reported inside the VoIP terminal, and after a second preset time, VoIP service signaling data is sent to the remaining standby server IP3 that is analyzed first, so as to execute the VoIP service.
Wherein the second preset time is a different time value set according to a different error type of the ICMP message or the RST message. When set to 0s, the VoIP terminal immediately switches to the standby server IP2 to perform VoIP service when receiving the ICMP message or RST message returned from the main server IP1 after TCP connection.
Or, if the VoIP service response message returned by the main server IP1 is an ICMP message, the VoIP terminal retransmits the VoIP service signaling data until the VoIP service is executed or the preset switching condition is satisfied, and when the preset switching condition is satisfied, transmits the VoIP service signaling data to the standby server IP2 analyzed first to execute the VoIP service; if the VoIP service response message is the RST message, the VoIP terminal sends VoIP service signaling data to the standby server IP2 analyzed first after the second preset time, so as to execute the VoIP service.
It is understood that the error type of the ICMP message includes 7 types, i.e., ICMP-net-unreachable, ICMP-host-unreachable, ICMP-port-unreachable rst, ICMP-proto-unreachable, ICMP-net-prohibited, ICMP-host-prohibited, and ICMP-admin-prohibited, respectively. In the process of carrying out VoIP service signaling data interaction after the VoIP terminal successfully establishes TCP connection with the main server, the main-standby switching can be immediately carried out according to different error types of ICMP messages or after the retransmission times of the VoIP service signaling data meet the preset switching conditions.
For example, the preset switching condition is that the number of retransmissions reaches a maximum number of retransmissions, which is 2. When the VoIP service response message returned by the IP1 of the main server is an ICMP message, the VoIP terminal retransmits VoIP service signaling data for the first time; if the VoIP service response message returned by the IP1 of the main server after the first retransmission of the VoIP service signaling data is not the ICMP message, the VoIP service is executed, and if the VoIP service response message returned by the IP1 of the main server after the first retransmission of the VoIP service signaling data is the ICMP message, the VoIP terminal retransmits the VoIP service signaling data for the second time; if the VoIP service response message returned by the main server IP1 after the second retransmission of the VoIP service signaling data is not the ICMP message, the VoIP service is executed, and if the VoIP service response message returned by the main server IP1 after the second retransmission of the VoIP service signaling data is still the ICMP message, the VoIP terminal sends the VoIP service signaling data to the backup server IP2 analyzed first, so as to execute the VoIP service.
For example, the preset switching condition is that the total time spent for retransmission reaches the maximum transaction processing time, the maximum transaction processing time is 32s, and the retransmission interval time is set, for example, the second retransmission waiting time is set to 0.5s, the third retransmission waiting time is set to 1s, and the subsequent retransmission waiting time is fixed to 2 s. When the VoIP service response message returned by the IP1 of the main server is an ICMP message, the VoIP terminal retransmits VoIP service signaling data for the first time; if the VoIP service response message returned by the IP1 of the main server after the first retransmission of the VoIP service signaling data is not the ICMP message, the VoIP service is executed, and if the VoIP service response message returned by the IP1 of the main server after the first retransmission of the VoIP service signaling data is the ICMP message, the VoIP terminal waits for 0.5s and then retransmits the VoIP service signaling data for the second time; if the VoIP service response message returned by the IP1 of the main server after the second retransmission of the VoIP service signaling data is not the ICMP message, the VoIP service is executed, and if the VoIP service response message returned by the IP1 of the main server after the second retransmission of the VoIP service signaling data is the ICMP message, the VoIP terminal waits for 1s and then retransmits the VoIP service signaling data for the third time; if the VoIP service response message returned by the IP1 of the main server after the third retransmission of the VoIP service signaling data is not the ICMP message, the VoIP service is executed, and if the VoIP service response message returned by the IP1 of the main server after the third retransmission of the VoIP service signaling data is the ICMP message, the VoIP terminal waits for 2s and then retransmits the VoIP service signaling data for the fourth time; if the VoIP service response message returned by the IP1 of the main server after the VoIP service signaling data is retransmitted for the fourth time is not the ICMP message, the VoIP service is executed, and if the VoIP service response message returned by the IP1 of the main server after the VoIP service signaling data is retransmitted for the fourth time is the ICMP message, the VoIP terminal waits for 2s and then retransmits the VoIP service signaling data for the fifth time; and so on, until the maximum transaction processing time is reached when the total retransmission consumption is up, the VoIP terminal sends VoIP service signaling data to the standby server IP2 which is analyzed first, so as to execute the VoIP service.
In the embodiment, in the process of performing VoIP service signaling data interaction after TCP connection is successfully established with the main server, whether the main server returns an ICMP message or an RST message is determined, and when it is determined that the main server returns an ICMP message or an RST message, the main server is switched to the standby server to re-initiate the VoIP service, wherein a main/standby switching mode may be selected according to an error type of the ICMP message or the RST message, that is, VoIP service signaling data is directly retransmitted or sent only when a preset switching condition is met, the main/standby server switching is performed according to the selected main/standby switching mode, so that the VoIP terminal performs main/standby server switching when receiving the ICMP message or the RST message after TCP connection, thereby ensuring the communication stability of the VoIP terminal.
In this embodiment, multiple active/standby server switching modes are configured by setting the second preset time and the preset switching condition, so that the VoIP terminal can perform active/standby switching in multiple forms, and the communication stability of the VoIP terminal is further ensured.
In a preferred embodiment, after the establishing the TCP connection with the primary server, the method further includes: when VoIP service signaling data interaction is not carried out with the main server, if RST information returned by the main server is received, registration continuation detection is carried out on the main server after third preset time, and when the registration continuation detection fails, a second TCP connection establishment request and a second SYN data packet are sent to the standby server so as to be switched to the standby server for registration.
Illustratively, after the VoIP terminal successfully establishes the TCP connection with the primary server IP1, when the VoIP terminal receives the RST message returned by the primary server IP1 without VoIP traffic signaling data interaction with the primary server IP1, the VoIP terminal considers that the network connection state is abnormal and the TCP connection is incorrect, and then the VoIP terminal performs registration renewal detection on the primary server IP1 after a third preset time, and when the registration renewal detection fails, sends a second TCP connection establishment request and a second SYN packet to the standby server IP2 analyzed first, so as to switch to the standby server IP2 for registration.
If the second TCP connection response message returned by the standby server IP2 is not the ICMP message or the RST message, and the network connection status is considered to be normal, the VoIP terminal establishes a TCP connection with the standby server IP2, and the VoIP terminal may initiate a registration service to the standby server IP 2.
If the second TCP connection response message returned by the standby server IP2 is an ICMP message or an RST message, and it is considered that the network connection status is abnormal, for example, a failure such as a shutdown of the standby server IP2 occurs, the VoIP terminal stops retransmitting the second SYN packet to the standby server IP2, and sends a third TCP connection establishment request and a third SYN packet to the remaining standby server IP3 analyzed first, so as to establish a TCP connection with the standby server IP3, so that the VoIP terminal can initiate a registration service to the standby server IP 3.
The third preset time can be set to different time values according to different error types of the RST message. When the time is set to 0s, the VoIP terminal immediately performs registration renewal detection on the main server IP1 when receiving the RST message returned by the main server IP1 without VoIP traffic signaling data interaction with the main server IP 1.
In the embodiment, after the TCP connection is successfully established with the main server but the VoIP service signaling data interaction is not performed, whether the main server returns the RST message is judged, and when the main server returns the RST message is judged, the main server is switched to the standby server to establish the TCP connection, so that the VoIP terminal performs the switching between the main server and the standby server when receiving the ICMP message or the RST message after the TCP connection, thereby ensuring the communication stability of the VoIP terminal.
In this embodiment, a plurality of active/standby server switching modes are configured by setting a third preset time, so that the VoIP terminal can perform active/standby switching in various forms, and the communication stability of the VoIP terminal is further ensured.
In a preferred embodiment, before sending the first TCP connection establishment request and the first SYN packet to the primary server and receiving the first TCP connection response message returned by the primary server, the method further includes: and resolving a plurality of servers according to the domain name, selecting one of all the servers as a main server, and taking the rest servers as standby servers.
Illustratively, the VoIP terminal parses a plurality of servers IP1, IP2, and IP3 from the registered domain names by the domain name server, and selects the server IP1 parsed first from among the servers as the primary server and the remaining servers IP2 and IP3 as the backup servers according to the parsing order of the servers IP1 → IP2 → IP 3.
In summary, the embodiments of the present invention have the following beneficial effects:
the method comprises the steps of sending a first TCP connection establishment request and a first SYN data packet to a main server, receiving a first TCP connection response message returned by the main server, if the first TCP connection response message is not an ICMP message or an RST message, establishing TCP connection with the main server, if the first TCP connection response message is the ICMP message or the RST message, stopping retransmitting the first SYN data packet, and sending a second TCP connection establishment request and a second SYN data packet to a standby server after a first preset time so as to establish TCP connection with the standby server, thereby realizing the switching of the main server and the standby server. The embodiment of the invention judges whether the main server returns the ICMP message or the RST message or not in the process of establishing the TCP connection with the main server, and switches to the standby server to establish the TCP connection when judging that the main server returns the ICMP message or the RST message, so that the VoIP terminal can switch between the main server and the standby server when receiving the ICMP message or the RST message in the TCP connection, thereby ensuring the communication stability of the VoIP terminal.
Furthermore, in the embodiment of the invention, in the process of carrying out the interaction of the signaling data of the VoIP service after the TCP connection is successfully established with the main server, whether the main server returns the ICMP message or the RST message is judged, and when the main server returns the ICMP message or the RST message is judged, the standby server is switched to initiate the VoIP service again, so that the VoIP terminal can carry out the switching of the main server and the standby server when receiving the ICMP message or the RST message after the TCP connection, thereby ensuring the communication stability of the VoIP terminal.
Further, in the embodiment of the invention, after the TCP connection is successfully established with the main server but the VoIP service signaling data interaction is not performed, whether the main server returns the RST message is judged, and when the main server returns the RST message is judged, the standby server is switched to establish the TCP connection, so that the VoIP terminal can perform the switching between the main server and the standby server when receiving the ICMP message or the RST message after the TCP connection, thereby ensuring the communication stability of the VoIP terminal.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention.
It will be understood by those skilled in the art that all or part of the processes of the above embodiments may be implemented by hardware related to instructions of a computer program, and the computer program may be stored in a computer readable storage medium, and when executed, may include the processes of the above embodiments. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.

Claims (10)

1. A method for switching between a main server and a standby server suitable for a VoIP terminal is characterized by comprising the following steps:
sending a first TCP connection establishment request and a first SYN data packet to a main server, and receiving a first TCP connection response message returned by the main server;
if the first TCP connection response message is not an ICMP message or an RST message, establishing a TCP connection with the main server;
and if the first TCP connection response message is an ICMP message or an RST message, stopping retransmitting the first SYN data packet, and sending a second TCP connection establishment request and a second SYN data packet to the standby server after a first preset time so as to establish TCP connection with the standby server.
2. The method for switching between active and standby servers of VoIP terminal according to claim 1, further comprising, after the TCP connection is established with the primary server:
sending VoIP service signaling data to the main server, and receiving a VoIP service response message returned by the main server;
if the VoIP service response message is not an ICMP message or an RST message, a VoIP service corresponding to the VoIP service signaling data is executed;
if the VoIP service response message is an ICMP message or an RST message, the VoIP service signaling data is sent to the standby server after a second preset time so as to execute the VoIP service; alternatively, the first and second electrodes may be,
if the service response message is an ICMP message, retransmitting the VoIP service signaling data until the VoIP service is executed or a preset switching condition is met, and sending the VoIP service signaling data to the standby server to execute the VoIP service when the preset switching condition is met;
and if the VoIP service response message is a RST message, sending the VoIP service signaling data to the standby server after the second preset time so as to execute the VoIP service.
3. The method as claimed in claim 2, wherein the predetermined switching condition is that the retransmission times reaches a maximum retransmission times or the total retransmission time reaches a maximum transaction time.
4. The active/standby server switching method for VoIP terminals according to claim 1 or 2, wherein after the TCP connection is established with the primary server, the method further comprises:
when VoIP service signaling data interaction is not carried out with the main server, if RST information returned by the main server is received, registration continuation detection is carried out on the main server after third preset time, and when the registration continuation detection fails, a second TCP connection establishment request and a second SYN data packet are sent to the standby server to be switched to the standby server for registration.
5. The method for switching between an active server and a standby server in a VoIP terminal according to claim 1, wherein before the sending a first TCP connection establishment request and a first SYN packet to the primary server and receiving a first TCP connection response message returned by the primary server, the method further comprises:
and resolving a plurality of servers according to the domain name, selecting one server from all the servers as the main server, and taking the rest servers as the standby servers.
6. A master/standby server switching device suitable for VoIP terminal is characterized in that it comprises a processor;
the processor is configured to:
sending a first TCP connection establishment request and a first SYN data packet to a main server, and receiving a first TCP connection response message returned by the main server;
if the first TCP connection response message is not an ICMP message or an RST message, establishing a TCP connection with the main server;
and if the first TCP connection response message is an ICMP message or an RST message, stopping retransmitting the first SYN data packet, and sending a second TCP connection establishment request and a second SYN data packet to the standby server after a first preset time so as to establish TCP connection with the standby server.
7. The active/standby server switching apparatus for VoIP terminal as claimed in claim 6, further comprising, after the TCP connection is established with the primary server:
sending VoIP service signaling data to the main server, and receiving a VoIP service response message returned by the main server;
if the VoIP service response message is not an ICMP message or an RST message, a VoIP service corresponding to the VoIP service signaling data is executed;
if the VoIP service response message is an ICMP message or an RST message, the VoIP service signaling data is sent to the standby server after a second preset time so as to execute the VoIP service; alternatively, the first and second electrodes may be,
if the service response message is an ICMP message, retransmitting the VoIP service signaling data until the VoIP service is executed or a preset switching condition is met, and sending the VoIP service signaling data to the standby server to execute the VoIP service when the preset switching condition is met;
and if the VoIP service response message is a RST message, sending the VoIP service signaling data to the standby server after the second preset time so as to execute the VoIP service.
8. The device for switching between master server and slave server of VoIP terminal as claimed in claim 7, wherein the predetermined switching condition is that the retransmission times reaches the maximum retransmission times or the total retransmission time reaches the maximum transaction time.
9. The active/standby server switching apparatus for VoIP terminal according to claim 6 or 7, further comprising, after the TCP connection is established with the primary server:
when VoIP service signaling data interaction is not carried out with the main server, if RST information returned by the main server is received, registration continuation detection is carried out on the main server after third preset time, and when the registration continuation detection fails, a second TCP connection establishment request and a second SYN data packet are sent to the standby server to be switched to the standby server for registration.
10. The active-standby server switching device suitable for a VoIP terminal according to claim 6, wherein before the sending a first TCP connection establishment request and a first SYN packet to a primary server and receiving a first TCP connection response message returned by the primary server, further comprising:
and resolving a plurality of servers according to the domain name, selecting one server from all the servers as the main server, and taking the rest servers as the standby servers.
CN202111302628.3A 2021-11-04 2021-11-04 Main/standby server switching method and device suitable for VoIP terminal Pending CN113992500A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111302628.3A CN113992500A (en) 2021-11-04 2021-11-04 Main/standby server switching method and device suitable for VoIP terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111302628.3A CN113992500A (en) 2021-11-04 2021-11-04 Main/standby server switching method and device suitable for VoIP terminal

Publications (1)

Publication Number Publication Date
CN113992500A true CN113992500A (en) 2022-01-28

Family

ID=79746539

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111302628.3A Pending CN113992500A (en) 2021-11-04 2021-11-04 Main/standby server switching method and device suitable for VoIP terminal

Country Status (1)

Country Link
CN (1) CN113992500A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007312227A (en) * 2006-05-19 2007-11-29 Canon Inc Information processing system and its control method, and program executing the control method
US20090177788A1 (en) * 2008-01-08 2009-07-09 Nec Corporation Communication system, server, terminal, packet data transferring method, and program therefor
CN103220161A (en) * 2012-01-18 2013-07-24 深圳市腾讯计算机系统有限公司 Method and device for detecting server status
EP2678990A1 (en) * 2011-02-22 2014-01-01 VoIPFuture GmbH Voip quality measurement enhancements using the internet control message protocol
CN111200505A (en) * 2018-11-19 2020-05-26 中移(苏州)软件技术有限公司 Message processing method and device
CN112532452A (en) * 2020-11-30 2021-03-19 厦门亿联网络技术股份有限公司 Switching method, device and equipment of communication terminal main and standby servers and storage medium
CN112866338A (en) * 2020-12-31 2021-05-28 杭州迪普科技股份有限公司 Server state detection method and device
CN113595765A (en) * 2021-07-02 2021-11-02 厦门亿联网络技术股份有限公司 Method and device for fault transfer of VoIP terminal registration service

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007312227A (en) * 2006-05-19 2007-11-29 Canon Inc Information processing system and its control method, and program executing the control method
US20090177788A1 (en) * 2008-01-08 2009-07-09 Nec Corporation Communication system, server, terminal, packet data transferring method, and program therefor
EP2678990A1 (en) * 2011-02-22 2014-01-01 VoIPFuture GmbH Voip quality measurement enhancements using the internet control message protocol
CN103220161A (en) * 2012-01-18 2013-07-24 深圳市腾讯计算机系统有限公司 Method and device for detecting server status
CN111200505A (en) * 2018-11-19 2020-05-26 中移(苏州)软件技术有限公司 Message processing method and device
CN112532452A (en) * 2020-11-30 2021-03-19 厦门亿联网络技术股份有限公司 Switching method, device and equipment of communication terminal main and standby servers and storage medium
CN112866338A (en) * 2020-12-31 2021-05-28 杭州迪普科技股份有限公司 Server state detection method and device
CN113595765A (en) * 2021-07-02 2021-11-02 厦门亿联网络技术股份有限公司 Method and device for fault transfer of VoIP terminal registration service

Similar Documents

Publication Publication Date Title
US8374079B2 (en) Proxy server, communication system, communication method and program
CN101573928B (en) Method for the delivery of messages in a communication system
US8750291B2 (en) Enhanced call preservation techniques for SIP-based communication networks
US20070041327A1 (en) Multicast heartbeat signaling
US8364827B2 (en) Communication system
JP2008104112A (en) Transmission path setting apparatus, transmission path setting method and transmission path setting program
CN1290350C (en) Method of registering mobile IP (MIP) for mobile node (MN), system and group data service node
CN101997850B (en) Call management method and device for IP (Internet Protocol) multimedia subsystem
US20180027028A1 (en) Terminal and Terminal Call Soft Switching Method
CN110679137A (en) Enhanced telephony application server session management
CN101702712A (en) Detection technology and voice call backup linkage method and device thereof
US7908367B2 (en) Call processing system and method
CN113986501A (en) Real-time database API (application program interface) uninterrupted calling method, system, storage medium and server
US8792344B2 (en) Method and system for managing signalling in a telecommunication network
CN101459533A (en) System and method for improved application server disaster tolerance in next generation network
CN106549901A (en) A kind of service trigger method and device
CN113992500A (en) Main/standby server switching method and device suitable for VoIP terminal
CN113595765A (en) Method and device for fault transfer of VoIP terminal registration service
US8117311B2 (en) Communication method, server and medium on notification of session status
CN110602339B (en) Fault detection method, system and storage medium based on voice gateway
CN113746865B (en) Fault transfer method and device for VoIP terminal communication service
CN109120578B (en) Method and device for realizing link connection processing
CN101729436A (en) Method for acquiring messages and convergence message service system
JP2008005076A (en) Network system, network terminal, and network equipment switching method used therefor
CN110995573A (en) Cross-platform instant messaging method, device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination