CN109905550A - The method for realizing the adaptive handoff functionality of VOIP server - Google Patents
The method for realizing the adaptive handoff functionality of VOIP server Download PDFInfo
- Publication number
- CN109905550A CN109905550A CN201910155374.3A CN201910155374A CN109905550A CN 109905550 A CN109905550 A CN 109905550A CN 201910155374 A CN201910155374 A CN 201910155374A CN 109905550 A CN109905550 A CN 109905550A
- Authority
- CN
- China
- Prior art keywords
- server
- whether success
- primary
- time interval
- primary server
- 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
Links
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
The invention further relates to a kind of methods for realizing the adaptive handoff functionality of VOIP server, specifically includes the following steps: (1) obtains the IP address of primary server and standby server by DNS query;(2) judge to send to primary server and register whether success, if it is, being registered on primary server, exit step;Otherwise, continue step (3);(3) judge that sending option to standby server detects whether success, if it is, continuing step (4);Otherwise, continue step (5);(4) judge to send to standby server and register whether success, if it is, being registered on standby server, exit step;Otherwise, continue step (5);(5) judgement detects whether success to primary server transmission option again after waiting certain time interval, if it is, continuing step (2);Otherwise, continue step (3).Using this method, it is possible to prevente effectively from network signal packet congestion, preferably realizes active/standby server switching.
Description
Technical field
The present invention relates to technical field of electronic equipment, more particularly to the Home Gateway Technology field with VOIP function, tool
Body refers to a kind of method for realizing the adaptive handoff functionality of VOIP server.
Background technique
Currently, with EPON (Ethernet Passive Optical Network, Ethernet passive optical network) and
Universal, the Yi Jiguo of GPON (Gigabit Passive Optical Network, gigabit passive optical network) technology at home
The technology development strategy of family's light entering and copper back, relevant home gateway product, such as various EPON HGU (Home Gateway
Unit, home gateway unit), GPON HGU etc. each big city is moved into swift and violent state, come into every household.
Due to these carry VoIP (Voice over Internet Protocol) functions home gateway products it is general
And use, voip technology is widely applied in daily life, and VoIP is exactly by analog signal (Voice) number in brief
Word does real-time delivery on IP network (IP Network) in the form of data packet (Data Packet).
Family gateway equipment with voice over ip feature, telephony feature can bring many conveniences to client, but if service
Device breaks down, and when cannot respond to the signaling of home gateway, will cause dysfunction.It is substantially and passes through in existing network environment at present
Two groups of servers are configured to guarantee safety, but its switching flow will cause many signaling packets, be easy to cause network congestion, and
And when server restores, has a large amount of signaling packet and pour in, exert heavy pressures on to server.It is basic in existing network environment at present
It is all to carry out access detection in such a way that registration refreshes, if it find that failure then carries out server switching.One not enough and
When;Two after working as and being registered on standby server, can not actively switch back into primary server;Three, if active/standby server is all
Abnormal, frequent transmission signaling carries out detection and be easy to cause network signal congestion.
Summary of the invention
The purpose of the present invention is overcoming the above-mentioned prior art, provide a kind of high-efficient, easy to operate, applicable
The method of the adaptive handoff functionality of realization VOIP server in extensive range.
To achieve the goals above, the method for the adaptive handoff functionality of realization VOIP server of the invention is as follows:
The method of the adaptive handoff functionality of realization VOIP server, is mainly characterized by, and the method includes following
Step:
(1) IP address of primary server and standby server is obtained by DNS query;
(2) judge to send to primary server and register whether success, if it is, being registered on primary server, exit step;
Otherwise, continue step (3);
(3) judge that sending option to standby server detects whether success, if it is, continuing step (4);Otherwise,
Continue step (5);
(4) judge to send to standby server and register whether success, if it is, being registered on standby server, exit
Step;Otherwise, continue step (5);
(5) judgement detects whether success to primary server transmission option again after waiting certain time interval, if
It is then to continue step (2);Otherwise, continue step (3).
Preferably, the time interval of the step (5) is 2 times of the preceding primary time interval for carrying out step (5).
Preferably, the method include thes steps that after registering on primary server, specifically includes the following steps:
(1-1) waits preset time interval, judges that sending option to primary server detects whether success, if so,
Registration then is sent to primary server and refreshes packet, and continues to register on primary server;Otherwise, continue step (1-2);
(1-2) judges that sending option to standby server detects whether success, if it is, continuing step (1-3);It is no
Then, continue step (1-4);
(1-3), which judges to send to standby server, registers whether success, if it is, registering on standby server, moves back
Step out;Otherwise, continue step (1-4);
(1-4) judgement detects whether success to primary server transmission option again after waiting certain time interval, such as
Fruit is then to continue step (1-5);Otherwise, continue step (1-2);
(1-5), which judges to send to primary server, registers whether success, if it is, registering on primary server, exits step
Suddenly;Otherwise, continue step (1-2).
Preferably, the time interval of the step (1-4) is 2 times of the preceding primary time interval for carrying out step (1-4).
Preferably, the method include thes steps that after registering on standby server, specifically includes the following steps:
(2-1) waits preset time interval, judges that sending option to primary server detects whether success, if so,
Then continue step (2-2);Otherwise, continue step (2-3);
(2-2), which judges to send to primary server, registers whether success, if it is, registering on primary server, exits step
Suddenly;Otherwise, continue step (2-3);
(2-3) judges that sending option to standby server detects whether success, if it is, continuing step (2-4);It is no
Then, continue step (2-5);
(2-4), which judges to send to standby server, registers whether success, if it is, registering on standby server, moves back
Step out;Otherwise, continue step (2-5);
(2-5) judgement detects whether success to primary server transmission option again after waiting certain time interval, such as
Fruit is then to continue step (2-2);Otherwise, continue step (2-3).
Preferably, the time interval of the step (2-5) is 2 times of the preceding primary time interval for carrying out step (2-5)
Preferably, the primary server and standby server are switched over by dns resolution and option detection.
Using the method for the adaptive handoff functionality of realization VOIP server of the invention, first, detection time is reduced to note
The half of volume refresh time;Second, it no matter is registered in which server, is all first to detect main clothes as long as sending option detection
Business device;Third can gradually increase the waiting time, it is possible to prevente effectively from network signal if it is all abnormal to detect active/standby server
Packet congestion, and preferably realize active/standby server switching.
Detailed description of the invention
Fig. 1 is the register flow path schematic diagram of the method for the adaptive handoff functionality of realization VOIP server of the invention.
Fig. 2 is that the method for the adaptive handoff functionality of realization VOIP server of the invention is registered in cutting after primary server
Change flow diagram.
Fig. 3 be the adaptive handoff functionality of realization VOIP server of the invention method be registered in standby server after
Switching flow schematic diagram.
Specific embodiment
It is further to carry out combined with specific embodiments below in order to more clearly describe technology contents of the invention
Description.
The method of the adaptive handoff functionality of realization VOIP server of the invention, including following steps:
(1) IP address of primary server and standby server is obtained by DNS query;
(2) judge to send to primary server and register whether success, if it is, being registered on primary server, exit step;
Otherwise, continue step (3);
(3) judge that sending option to standby server detects whether success, if it is, continuing step (4);Otherwise,
Continue step (5);
(4) judge to send to standby server and register whether success, if it is, being registered on standby server, exit
Step;Otherwise, continue step (5);
(5) judgement detects whether success to primary server transmission option again after waiting certain time interval, if
It is then to continue step (2);Otherwise, continue step (3);
(1-1) waits preset time interval, judges that sending option to primary server detects whether success, if so,
Registration then is sent to primary server and refreshes packet, and continues to register on primary server;Otherwise, continue step (1-2);
(1-2) judges that sending option to standby server detects whether success, if it is, continuing step (1-3);It is no
Then, continue step (1-4);
(1-3), which judges to send to standby server, registers whether success, if it is, registering on standby server, moves back
Step out;Otherwise, continue step (1-4);
(1-4) judgement detects whether success to primary server transmission option again after waiting certain time interval, such as
Fruit is then to continue step (1-5);Otherwise, continue step (1-2);
(1-5), which judges to send to primary server, registers whether success, if it is, registering on primary server, exits step
Suddenly;Otherwise, continue step (1-2);
(2-1) waits preset time interval, judges that sending option to primary server detects whether success, if so,
Then continue step (2-2);Otherwise, continue step (2-3);
(2-2), which judges to send to primary server, registers whether success, if it is, registering on primary server, exits step
Suddenly;Otherwise, continue step (2-3);
(2-3) judges that sending option to standby server detects whether success, if it is, continuing step (2-4);It is no
Then, continue step (2-5);
(2-4), which judges to send to standby server, registers whether success, if it is, registering on standby server, moves back
Step out;Otherwise, continue step (2-5);
(2-5) judgement detects whether success to primary server transmission option again after waiting certain time interval, such as
Fruit is then to continue step (2-2);Otherwise, continue step (2-3).
As the preferred embodiment of the present invention, the time interval of the step (5) is preceding primary progress step (5)
2 times of time interval.
As the preferred embodiment of the present invention, the time interval of the step (1-4) is preceding primary progress step (1-
4) 2 times of time interval.
As the preferred embodiment of the present invention, the time interval of the step (2-5) is preceding primary progress step (2-
5) 2 times of time interval
As the preferred embodiment of the present invention, the primary server and standby server by dns resolution and
Option detection switches over.
In a specific embodiment of the invention, including when containing active and standby two groups of servers in network environment, have
The home gateway of VOIP function obtains server address by dns resolution, and determines service in such a way that option is detected
Whether device currently can be used, to realize active/standby server handover mechanism using least resource.It specifically includes, when with VOIP function
When the home gateway of energy initiates registration for the first time, server address is obtained by dns resolution, determines active/standby server, and then note
Volume.After registration is upper, is detected in specified time by option, judge whether current server can be used, to determine to be
It is no to need to carry out active/standby server switching.
When in network environment including active and standby two VOIP servers, by way of dns resolution and option detection
Realize active-standby switch.
The IP address of active/standby server does not inform VOIP terminal directly, but is obtained by way of dns resolution domain name, so
After registered.In registration process, equally detected using option, whether just with the access between determination and server
Often.
It after being registered in primary server, is detected at regular intervals by option, to determine and primary server
Between access it is whether normal, if normally, keeping registration to refresh constant, if abnormal, continue through option and detect spare clothes
Whether business device can be used, if it is available, standby server is switched to, if it is not, being detected again after waiting setting time.
It after being registered in standby server, is detected at regular intervals by option, to determine primary server
Currently whether can be used, registered if it is available, being switched to primary server, if it is not, continuing detection standby server is
It is no normal, if normally, keeping currently registration to refresh constant, if abnormal, setting time being waited to be detected again later.
Particularly, when active/standby server detection is all unavailable, it can stop sending signaling packet, be spaced after setting time again
It is detected, prevents excessive signaling packet from causing network congestion.
As long as it is normal to detect the access between primary server by option, can switch at the first time.
In order to overcome above-mentioned the problems of the prior art, the invention proposes a kind of realization VOIP servers adaptively to switch
Method.
The method that this kind adaptively switches according to above-described realization VOIP server, is mainly characterized by, described
Control method the following steps are included:
1, the home gateway with VOIP function obtains the IP address of active/standby server by DNS query
2, it sends and registers to primary server, if it succeeds, be registered on primary server, if it fails, enter step 33,
Option detection is sent to standby server, if it succeeds, 4 are entered step, if it fails, then entering 5
4, it sends and registers to standby server, if it succeeds, being registered on standby server, if it fails, then carrying out
Step 5
5, the 2T time is waited to send option detection to primary server again later, if being successfully entered step 2, if lost
It loses and carries out step 3 (entering step 5 every time, the time of waiting all can be double, 2T/4T/8T..)
After being registered on primary server, steps are as follows:
1, interval T time to primary server send option detection, if being successfully entered step 2, if it fails, if enter
Step 3
2, interval T time sends option detection to primary server, sends registration to primary server if success and refreshes
Packet, and the renewal of registration is on primary server, if it fails, then entering step 3
3, option detection is sent to standby server, if being successfully entered step 4, enters step 5 if failure
4, it sends and registers to standby server, if it succeeds, being registered on standby server, step is entered if failure
Rapid 5
5, the 2T time is waited to send option detection to primary server again later, if being successfully entered step 6, if lost
It loses and carries out step 3 (entering step 5 every time, the time of waiting all can be double, 2T/4T/8T..)
6, it sends and registers to primary server, if it succeeds, being registered on primary server, work as if it fails, entering step 3
After being registered on standby server, steps are as follows:
1, interval T time to primary server send option detection, if being successfully entered step 2, if it fails, if enter
Step 3
2, it sends and registers to primary server, be registered on primary server if success, enter step 3 if failure
3, option detection is sent to standby server, enters step 4 if success, enter step 5 if failure
4, it sends and registers to standby server, if it succeeds, being registered on standby server, step is entered if failure
Rapid 5
5, the 2T time is waited to send option detection to primary server again later, if being successfully entered step 2, if lost
It loses and carries out step 3 (entering step 5 every time, the time of waiting all can be double, 2T/4T/8T..)
Using the method for the adaptive handoff functionality of realization VOIP server of the invention, first, detection time is reduced to note
The half of volume refresh time;Second, it no matter is registered in which server, is all first to detect main clothes as long as sending option detection
Business device;Third can gradually increase the waiting time, it is possible to prevente effectively from network signal if it is all abnormal to detect active/standby server
Packet congestion, and preferably realize active/standby server switching.
In this description, the present invention is described with reference to its specific embodiment.But it is clear that can still make
Various modifications and alterations are without departing from the spirit and scope of the invention.Therefore, the description and the appended drawings should be considered as illustrative
And not restrictive.
Claims (7)
1. a kind of method for realizing the adaptive handoff functionality of VOIP server, which is characterized in that the method includes following step
It is rapid:
(1) IP address of primary server and standby server is obtained by DNS query;
(2) judge to send to primary server and register whether success, if it is, being registered on primary server, exit step;It is no
Then, continue step (3);
(3) judge that sending option to standby server detects whether success, if it is, continuing step (4);Otherwise, continue
Step (5);
(4) judge to send to standby server and register whether success, if it is, being registered on standby server, exit step;
Otherwise, continue step (5);
(5) judgement detects whether success to primary server transmission option again after waiting certain time interval, if it is,
Continue step (2);Otherwise, continue step (3).
2. the method according to claim 1 for realizing the adaptive handoff functionality of VOIP server, which is characterized in that described
The time interval of step (5) is 2 times of the preceding primary time interval for carrying out step (5).
3. the method according to claim 1 for realizing the adaptive handoff functionality of VOIP server, which is characterized in that described
Method include the steps that on primary server register after, specifically includes the following steps:
(1-1) waits preset time interval, judges that sending option to primary server detects whether success, if it is, to
Primary server sends registration and refreshes packet, and continues to register on primary server;Otherwise, continue step (1-2);
(1-2) judges that sending option to standby server detects whether success, if it is, continuing step (1-3);Otherwise,
Continue step (1-4);
(1-3), which judges to send to standby server, registers whether success, if it is, registering on standby server, exits step
Suddenly;Otherwise, continue step (1-4);
(1-4) judgement detects whether success to primary server transmission option again after waiting certain time interval, if so,
Then continue step (1-5);Otherwise, continue step (1-2);
(1-5), which judges to send to primary server, registers whether success, if it is, registering on primary server, exit step;It is no
Then, continue step (1-2).
4. the method according to claim 3 for realizing the adaptive handoff functionality of VOIP server, which is characterized in that described
The time interval of step (1-4) is 2 times of the preceding primary time interval for carrying out step (1-4).
5. the method according to claim 1 for realizing the adaptive handoff functionality of VOIP server, which is characterized in that described
Method include the steps that on standby server register after, specifically includes the following steps:
(2-1) waits preset time interval, judges that sending option to primary server detects whether success, if it is, after
Continuous step (2-2);Otherwise, continue step (2-3);
(2-2), which judges to send to primary server, registers whether success, if it is, registering on primary server, exit step;It is no
Then, continue step (2-3);
(2-3) judges that sending option to standby server detects whether success, if it is, continuing step (2-4);Otherwise,
Continue step (2-5);
(2-4), which judges to send to standby server, registers whether success, if it is, registering on standby server, exits step
Suddenly;Otherwise, continue step (2-5);
(2-5) judgement detects whether success to primary server transmission option again after waiting certain time interval, if so,
Then continue step (2-2);Otherwise, continue step (2-3).
6. the method according to claim 5 for realizing the adaptive handoff functionality of VOIP server, which is characterized in that described
The time interval of step (2-5) is 2 times of the preceding primary time interval for carrying out step (2-5).
7. the method according to claim 1 for realizing the adaptive handoff functionality of VOIP server, which is characterized in that described
Primary server and standby server are switched over by dns resolution and option detection.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910155374.3A CN109905550A (en) | 2019-03-01 | 2019-03-01 | The method for realizing the adaptive handoff functionality of VOIP server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910155374.3A CN109905550A (en) | 2019-03-01 | 2019-03-01 | The method for realizing the adaptive handoff functionality of VOIP server |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109905550A true CN109905550A (en) | 2019-06-18 |
Family
ID=66945988
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910155374.3A Pending CN109905550A (en) | 2019-03-01 | 2019-03-01 | The method for realizing the adaptive handoff functionality of VOIP server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109905550A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113595765A (en) * | 2021-07-02 | 2021-11-02 | 厦门亿联网络技术股份有限公司 | Method and device for fault transfer of VoIP terminal registration service |
CN115604234A (en) * | 2022-11-15 | 2023-01-13 | 深圳市华曦达科技股份有限公司(Cn) | VoIP server self-adaptive switching method, system and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3275954B2 (en) * | 1998-02-20 | 2002-04-22 | 日本電気株式会社 | Server registration method in server multiplexing |
CN101051883A (en) * | 2007-05-11 | 2007-10-10 | 杭州华三通信技术有限公司 | Service switching method and system after main voice server fault restoring |
CN101674313A (en) * | 2009-10-15 | 2010-03-17 | 杭州华三通信技术有限公司 | SIP registration method for server to actively inform user switching, system and device thereof |
CN101702712A (en) * | 2009-11-11 | 2010-05-05 | 杭州华三通信技术有限公司 | Detection technology and voice call backup linkage method and device thereof |
CN103236947A (en) * | 2013-04-23 | 2013-08-07 | 厦门亿联网络技术股份有限公司 | Method for switching main server and standby of VOIP (voice over Internet phone) |
CN106936784A (en) * | 2015-12-30 | 2017-07-07 | 青岛海信宽带多媒体技术有限公司 | SIP registration method, terminal and system |
-
2019
- 2019-03-01 CN CN201910155374.3A patent/CN109905550A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3275954B2 (en) * | 1998-02-20 | 2002-04-22 | 日本電気株式会社 | Server registration method in server multiplexing |
CN101051883A (en) * | 2007-05-11 | 2007-10-10 | 杭州华三通信技术有限公司 | Service switching method and system after main voice server fault restoring |
CN101674313A (en) * | 2009-10-15 | 2010-03-17 | 杭州华三通信技术有限公司 | SIP registration method for server to actively inform user switching, system and device thereof |
CN101702712A (en) * | 2009-11-11 | 2010-05-05 | 杭州华三通信技术有限公司 | Detection technology and voice call backup linkage method and device thereof |
CN103236947A (en) * | 2013-04-23 | 2013-08-07 | 厦门亿联网络技术股份有限公司 | Method for switching main server and standby of VOIP (voice over Internet phone) |
CN106936784A (en) * | 2015-12-30 | 2017-07-07 | 青岛海信宽带多媒体技术有限公司 | SIP registration method, terminal and system |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113595765A (en) * | 2021-07-02 | 2021-11-02 | 厦门亿联网络技术股份有限公司 | Method and device for fault transfer of VoIP terminal registration service |
CN115604234A (en) * | 2022-11-15 | 2023-01-13 | 深圳市华曦达科技股份有限公司(Cn) | VoIP server self-adaptive switching method, system and storage medium |
CN115604234B (en) * | 2022-11-15 | 2023-03-10 | 深圳市华曦达科技股份有限公司 | VoIP server self-adaptive switching method, system and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10716018B2 (en) | Systems and methods for emergency call route failover | |
EP3171555A1 (en) | Fault detection method for virtual router redundancy protocol and router device | |
EP2536066A1 (en) | Link detecting method, apparatus and system | |
CN101247270A (en) | System and method for implementing bidirectional forwarding detection | |
WO2010034539A1 (en) | Congestion control method and devices | |
CN101420381B (en) | Method and apparatus for enhancing forwarding reliability in VRRP load balance | |
CN104301146A (en) | Link switching method and device in software defined network | |
CN109905550A (en) | The method for realizing the adaptive handoff functionality of VOIP server | |
CN101136789A (en) | Method and device for implementing terminal-to-terminal link detection, routing strategy rearrangement | |
CN104683188A (en) | Method for quickly detecting communication of IP channel of household router | |
CN100531071C (en) | Method and system for link failure detection and device for link failure detection | |
CN106603261B (en) | Hot backup method, first main device, standby device and communication system | |
US20140043960A1 (en) | Method, tor switch, and system for implementing protection switchover based on trill network | |
CN101895447B (en) | SIP (Session Initiation Protocol) trunk gateway and failure monitoring method thereof | |
US20140143413A1 (en) | Method, local gateway, and system for local voice survivability | |
WO2012088910A1 (en) | Method and system for detecting connectivity fault | |
CN105429814A (en) | Method and device for BFD protection by utilizing multiple board cards | |
JP2007004361A (en) | Load distribution device | |
WO2011015068A1 (en) | Failure detection method and system | |
CN103891255B (en) | Method for sip agent failover | |
CN107968747A (en) | A kind of path adjustment management method and device, communication system | |
CN104539462B (en) | It is a kind of to switch to method and device of the calamity for application example | |
CN101997850A (en) | Call management method and device for IP (Internet Protocol) multimedia subsystem | |
CN100514940C (en) | Method for reorienting network communication port and network communication system | |
CN106487696B (en) | Link failure detection method and device |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190618 |
|
RJ01 | Rejection of invention patent application after publication |