CN101800665B - Device and method for main/standby switch in media gateway - Google Patents
Device and method for main/standby switch in media gateway Download PDFInfo
- Publication number
- CN101800665B CN101800665B CN201010115265.8A CN201010115265A CN101800665B CN 101800665 B CN101800665 B CN 101800665B CN 201010115265 A CN201010115265 A CN 201010115265A CN 101800665 B CN101800665 B CN 101800665B
- Authority
- CN
- China
- Prior art keywords
- module
- statistics
- resource
- rtp
- media resource
- 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.)
- Active
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a method for main/standby switch in a media gateway. In the media gateway, a calling statistical module is driven to operate by the operation of a calling module on an RTP resource board, and the calling statistical module judges the operating condition of the current main RTP resource board according to the statistical condition, and judges whether to switch the current RTP resource main board according to the statistical condition. The invention also provides a device for main/standby switch in the media gateway, which comprises a calling module, a calling information statistical module, a supporting system control module and an RTP resource board module. The method and device provided by the invention overcome the defect of the existing switch mechanism that main/standby switch can not be reasonably carried out according to the resource state of a service level.
Description
Technical field
The present invention relates to communication field, particularly apparatus and method of Service control resource board masterslave switchover in the media gateway of next generation network (Next Generatlon Network, be called for short NGN),
Background technology
In Modern Communication System, in order to guarantee the reliable and stable of system, master-slave redundancy mechanism is widely used, generally, main side is in normal operating state, and standby side is in stand-by state, when the instruction (active and standby) of controlling when the system of receiving is switched, main side originally transfers standby side to, and original standbyly transfers main side to, and the process of this conversion is called masterslave switchover.And after switching for resource board, primary resource is in normal initial condition, thereby guarantee the carrying out of new regular traffic, to reduce as much as possible the economic loss causing because of equipment fault.
Media gateway (MG), in NGN network architecture, can be Tandem Gateway TG, SGW SG, and access gateway AG, thus realized the expansion of traditional telephone network (PSTN) to Voip network (IP).Media gateway must provide transmission resource used, and the voice/video data flow real time transport protocol RTP resource of media gateway, exactly for transferring voice media provide passage.
In media gateway; in order to guarantee the reliable and stable of system, to most veneers, all adopt master-slave redundancy mechanism to do dual fail-safe, and more should adopt such protection mechanism for frequent out of order RTP media resource plate; to guarantee that existing business do not interrupt, and the successful foundation of new business.The switching control to RTP media resource plate of current media gateway, to be controlled to do by the system of gateway, when system control to find check finds that its network interface fault of RTP resource or the circuit state of RTP resource board are extremely etc. when significant trouble, when simultaneity factor control process finds that the redundancy standby plate running status of RTP resource board is normal, system is controlled process and can be impelled the active and standby RTP resource board of redundancy to switch, make new primary RTP resource board recovering state normal, to guarantee that operation flow normally takies resource.
Current system control model is controlled the mechanism of switching of RTP resource board, can only realize the monitoring of RTP resource physical layer is guaranteed to resource status is normal, but can not guarantee the normal condition of logic level resource status, the resource status that might not guarantee service layer is normal, so when there is this situation, can find to be occurred by a large amount of call losses, cause numerous calls normally to set up, cause serious consequence, when there is at present this situation, most cases carries out fault detect by O&M personnel, simultaneously when fault occurs, carry out by hand switching operation, complicated operation and wasting time and energy.
Summary of the invention
Technical problem solved by the invention is the apparatus and method that a kind of media gateway masterslave switchover is provided in media gateway, to overcome the defect that cannot rationally switch according to the resource status of service layer in existing Switchover mechanism.
In order to address the above problem, the invention provides a kind of control resource board masterslave switchover in media gateway method, the method comprises:
Media gateway calling module carries out call treatment to new calling, and initiates taking and opening operation RTP media resource passage;
The opening operation that resource module is initiated described calling module is replied;
Calling module is overtime according to replying or replying of resource module, triggering call statistics module adds up and record the operational circumstances of RTP media resource passage the calling module in measurement period, and judge whether to carry out switching operation to RTP resource board according to statistics, if be judged as YES, send and switch instruction to support system control module;
Support system control module is received and is switched instruction, enters masterslave switchover flow process.
Further, call statistics module is added up and record the operational circumstances of RTP media resource passage the calling module in measurement period, and before judging whether to carry out switching operation to RTP resource board according to statistics, also comprises:
Call statistics module is preset measurement period, first threshold and Second Threshold, wherein,
Measurement period, refers to that this time counts on the time span of statistics next time;
First threshold is the threshold value of RTP media resource channel operation amount;
Second Threshold is the threshold value that RTP media resource channel operation is counted as power.
Further, calling module comprises the operational circumstances of RTP media resource passage:
RTP media resource channel operation amount, RTP media resource channel operation number of success and RTP media resource channel operation are counted as power.
Further, call statistics module is added up and record the operational circumstances of RTP media resource passage the calling module in this measurement period, and judges whether to carry out switching operation to RTP resource board according to statistics, specifically comprises:
Step 1: the first judge module of described call statistics module judges that whether described statistics and record operate overtime, if be judged as NO, performs step 2;
Step 2: the second judge module of described call statistics module judges whether the RTP media resource channel operation amount of described statistics and record reaches first threshold, if be judged as YES, performs step 3, otherwise continue execution step 1;
Step 3: whether the RTP media resource channel operation that the 3rd judge module judgement of described call statistics module is added up and recorded is counted as power lower than Second Threshold, if be judged as YES, judgement need to be carried out switching operation to RTP resource board, if be judged as NO, continues execution step 1.
Further, the first judge module of call statistics module judges described statistics and the whether overtime operation of record operation, specifically also comprises:
If be judged as YES, the operational circumstances zero clearing to RTP media resource passage by described statistics and ticket call module of described call statistics module, and recover statistics initial condition.
The present invention also provides the device of controlling resource board masterslave switchover in a kind of media gateway, comprising:
Calling module: for new calling is carried out to call treatment, and initiate taking and opening operation RTP media resource passage;
Resource module: reply for the opening operation that described calling module is initiated;
Call statistics module: for calling module in measurement period is added up and record the operational circumstances of described RTP media resource passage, and judge whether to carry out switching operation to RTP resource board according to statistics, if be judged as YES, send and switch instruction to support system control module;
Support system control module: for receiving switching after instruction that call statistics module sends, enter masterslave switchover flow process.
Wherein, described calling module also, for when the replying or reply overtime time of resource module, triggers call statistics module and carries out described statistics and record.
Further, described call statistics module also for:
Default measurement period, first threshold and Second Threshold, wherein,
Described measurement period, refers to that this time counts on the time span of statistics next time;
Described first threshold is the threshold value of RTP media resource channel operation amount;
Described Second Threshold is the threshold value that RTP media resource channel operation is counted as power.
Further, described calling module comprises the operational circumstances of RTP media resource passage: RTP media resource channel operation amount, RTP media resource channel operation number of success and RTP media resource channel operation are counted as power.
Further, described call statistics module also comprises:
The first judge module: whether overtime for judging described statistics and record operation;
The second judge module: for judging whether the RTP media resource channel operation amount of described statistics and record reaches first threshold;
The 3rd judge module: whether the RTP media resource channel operation that judgement is added up and recorded is counted as power lower than Second Threshold.
Further, if the first judge module judges described statistics and records operation overtime, the operational circumstances zero clearing to RTP media resource passage by described statistics and ticket call module of described call statistics module, and recovery statistics initial condition.
What this invention was set forth is a kind of method that new protection RTP media resource channel resource state can be used; the success or failure of its resource board operation of the statistics (this statistics is by service call, the operation of resource veneer passage to be triggered at every turn) by operation layer by a period of time; detect the abnormal conditions of RTP resource board state; impel active and standby RTP resource to carry out switching operation, by switching to make primary media resource plate reach the normal of resource status.This each safeguard measure is namely triggered by calling, the operation layer of media gateway will be initiated taking and opening operation RTP channel resource, the operation layer statistical module that RTP channel operation is replied and overtime event triggers is added up the veneer behaviour success rate in this time period, when call volume (number of times of RTP operation) reaches a fixed number (this value is that a test is worth) amount, if the success rate of operation layer operation RTP media resource passage lower than a threshold values (this value is that a test is worth) time, just think that current RTP resource mainboard state has entered improper state, now, operation layer carries out masterslave switchover operation with regard to reporting system key-course to RTP resource board, only when RTP resource board has configured master-slave redundancy pattern, and the situation of slave board state normal operation, carry out the masterslave switchover operation ability successful execution of RTP resource veneer, after masterslave switchover success, new primary RTP resource mainboard (being the mainboard of original stand-by state) is to init state, thereby guarantee normally carrying out of business.
By technical scheme of the present invention, solved current system and controlled in the situation that RTP resource board switches, the drawback that not necessarily makes current resource use.Realized by the business monitoring to the abnormal conditions of current primary RTP resource automatically, and operated to realize protection by initiating the protection that active and standby RTP resource board switches.
Accompanying drawing explanation
Fig. 1 is the apparatus structure schematic diagram of Service control resource board masterslave switchover in media gateway provided by the invention.
Fig. 2 is the structural representation of statistics statistical module provided by the invention.
Fig. 3 is the flow chart of embodiment of the method provided by the invention.
Fig. 4 is Rule of judgment and the order flow graph that module of the present invention provides.
Embodiment
Core concept of the present invention is; in media gateway; by calling module, to the operation of RTP resource board, drive call statistics module to start working; call statistics module is according to statistical conditions; judge the ruuning situation of current primary RTP resource board; and judge whether current RTP resource main board to switch according to statistical conditions, by such method, protect the resource status of current RTP main board normal exactly.
In order to understand better the present invention, below in conjunction with the drawings and specific embodiments, the present invention will be further described.
As shown in Figure 1, media gateway device of the present invention mainly comprises the functional modules such as calling module, call information statistical module, support system control module and RTP resource board module.
Wherein, when having new calling to initiate, calling module by media gateway carries out call treatment, and this module initiates taking and opening (OPEN) of RTP media resource passage to operate, the resource module of media gateway also can be replied opening operation simultaneously, if resource module no-reply call module of a specified duration also thinks that opening operation is overtime, the overtime driving call statistics module of replying or reply of this operation RTP media resource passage is started working, call statistics module is added up the number of times of the success of business operation veneer and failure in a time period (comprise reply overtime) exactly, this module is according to the operational circumstances that has recorded the RTP resource board in this period, according to the result of the statistics of statistical module, judge whether to carry out switching operation to RTP resource board, if need to switch active and standby RTP resource board, with regard to sending out message, to support system control module, carry out masterslave switchover, enter the flow process of masterslave switchover, as crossed, do not need to switch, do not do any operation, just record the operational circumstances of this subchannel, this time statistics protection process finishes, wait for next time and call out the protection that triggers resource status.
As shown in Figure 2, the insider architecture figure that call statistics mould provided by the present invention is determined, described call statistics module comprises:
The first judge module: whether overtime for judging described statistics and record operation;
The second judge module: for judging whether the RTP media resource channel operation amount of described statistics and record reaches first threshold;
The 3rd judge module: whether the RTP media resource channel operation that judgement is added up and recorded is counted as power lower than Second Threshold.
As shown in Figure 3, method provided by the present invention in this concrete enforcement, comprise the steps:
Step 301: have to call out and initiate (to take media resource [ADD] message under soft switch [ss], service call module take that the media channel resource of gateway operating media resource wait for that veneer is replied or veneer no answer timeout after), calling module just triggers call statistics mould certainly has new RTP media resource plate operation to initiate, and starts working.
Step 302: it is overtime that call statistics module judges whether to add up this statistics, if do not have overtimely, enters 303 steps, calculates the statistics in this time period; If overtime, enter 304 steps, restart statistical work.
Step 303: call statistics module starts to record and add up service call module in this effective time period operational circumstances to RTP media resource passage, carries out following operating procedure:
1, RTP media resource channel operation batching counter accumulates once;
2, RTP media resource channel operation number of success accumulates once;
3, calculate RTP media resource channel operation and be counted as power;
Step 304: call statistics module recovery statistics initial condition, restart to record statistical time range, and statistical module every carried out to clear operation, carry out following operating procedure:
1, remove timer, statistics reclocking;
2, remove RTP media resource channel operation counter, again counting;
3, remove RTP media resource channel operation number of success device, again counting;
4, remove RTP media resource channel operation success rate;
Step 305: Call Control Block, according to the result of statistics, judges and judge whether to switch with the condition of agreement, when meet following all conditions time just initiate switching operation, otherwise do not initiate switching operation,
Wherein, need to meet the necessary condition of switching as follows:
1, call volume is that (RTP channel operation number of times) must reach certain quantity;
When 2, RTP media resource channel operation success rate is lower than threshold values;
While meeting 2 conditions in top, Call Control Block send out message to, support system control module is carried out switching of standby usage;
When step 306:RTP resource board stand-by state system control module thinks normal, masterslave switchover success, otherwise switch unsuccessfully, this has system control plane to control, its switching operation process of business module nonintervention.
Step 307: initiate, after switching operation, to remove the record of statistical module, start the statistical work of a new round, the main operation of this operation has:
1, remove timer, statistics reclocking;
2, remove RTP media resource channel operation counter, again counting;
3, remove RTP media resource channel operation number of success device, again counting;
4, remove RTP media resource channel operation success rate;
Step 308: this protects end, waits for that channel operation or the overtime event of calling out initiation again next time trigger new protection flow process initiation;
By above step, just realized operation layer and found the abnormal conditions of current RTP money resource status, and initiated the auto switching protection to RTP resource board, guaranteed that the state of current primary RTP resource board is good for use, to guarantee the successful foundation of new business.
As shown in Figure 4, the graph of a relation of switching Rule of judgment provided by the present invention
Judge whether to carry out switching operation to RTP resource board, need by following determining step:
Step 401: the first Rule of judgment, whether current measurement period is overtime, because this protection is operating as periodic statistics, so the timing module of each statistical module will judge whether current measurement period finishes;
Step 402: the second Rule of judgment, current call number, that is to say that current call volume can not be too low, this Rule of judgment is in order to prevent frequent switching operation in the short time.
Step 403: the 3rd Rule of judgment, current call successful rate, can know the resource normal condition of current RTP resource board by this condition calling module;
The present invention has just realized operation layer by above step and has found that current RTP provides the abnormal conditions of resource status; and initiate the auto switching of RTP resource board to protect; the state that guarantees current primary RTP resource board is good for use, to guarantee the successful foundation of new business.
Claims (10)
1. in media gateway, control a method for resource board masterslave switchover, it is characterized in that, described method comprises:
Media gateway calling module carries out call treatment to new calling, and initiates taking and opening operation RTP media resource passage;
The opening operation that resource module is initiated described calling module is replied;
Calling module is overtime according to replying or replying of resource module, triggering call statistics module adds up and record the operational circumstances of RTP media resource passage the calling module in measurement period, and judge whether to carry out switching operation to RTP resource board according to statistics, if be judged as YES, send and switch instruction to support system control module;
Support system control module is received and is switched instruction, enters masterslave switchover flow process.
2. the method for claim 1, it is characterized in that, call statistics module is added up and record the operational circumstances of RTP media resource passage the calling module in measurement period, and before judging whether to carry out switching operation to RTP resource board according to statistics, also comprises:
Call statistics module is preset measurement period, first threshold and Second Threshold, wherein,
Described measurement period, refers to that this time counts on the time span of statistics next time;
Described first threshold is the threshold value of RTP media resource channel operation amount;
Described Second Threshold is the threshold value that RTP media resource channel operation is counted as power.
3. the method for claim 1, is characterized in that, described calling module comprises the operational circumstances of RTP media resource passage:
RTP media resource channel operation amount, RTP media resource channel operation number of success and RTP media resource channel operation are counted as power.
4. the method for claim 1, it is characterized in that, described call statistics module is added up and record the operational circumstances of RTP media resource passage the calling module in this measurement period, and judges whether to carry out switching operation to RTP resource board according to statistics, specifically comprises:
Step 1: the first judge module of described call statistics module judges that whether described statistics and record operate overtime, if be judged as NO, performs step 2;
Step 2: the second judge module of described call statistics module judges whether the RTP media resource channel operation amount of described statistics and record reaches first threshold, if be judged as YES, performs step 3, otherwise continue execution step 1;
Step 3: the 3rd judge module of described call statistics module judges that whether the RTP media resource channel operation of described statistics and record is counted as power lower than Second Threshold, if be judged as YES, judgement need to be carried out switching operation to RTP resource board, if be judged as NO, continues execution step 1.
5. method as claimed in claim 4, is characterized in that, the first judge module of described call statistics module judges described statistics and the whether overtime operation of record operation, specifically also comprises:
If be judged as YES, the operational circumstances zero clearing to RTP media resource passage by described statistics and ticket call module of described call statistics module, and recover statistics initial condition.
6. in media gateway, control a device for resource board masterslave switchover, it is characterized in that, described device comprises:
Calling module: for new calling is carried out to call treatment, and initiate taking and opening operation RTP media resource passage;
Resource module: reply for the opening operation that described calling module is initiated;
Call statistics module: for calling module in measurement period is added up and record the operational circumstances of described RTP media resource passage, and judge whether to carry out switching operation to RTP resource board according to statistics, if be judged as YES, send and switch instruction to support system control module;
Support system control module: for receiving switching after instruction that call statistics module sends, enter masterslave switchover flow process.
Wherein, described calling module also, for when the replying or reply overtime time of resource module, triggers call statistics module and carries out described statistics and record.
7. in media gateway as claimed in claim 6, control the device of resource board masterslave switchover, it is characterized in that: described call statistics module also for:
Default measurement period, first threshold and Second Threshold, wherein,
Described measurement period, refers to that this time counts on the time span of statistics next time;
Described first threshold is the threshold value of RTP media resource channel operation amount;
Described Second Threshold is the threshold value that RTP media resource channel operation is counted as power.
8. in media gateway as claimed in claim 6, control the device of resource board masterslave switchover, it is characterized in that: described calling module comprises the operational circumstances of RTP media resource passage:
RTP media resource channel operation amount, RTP media resource channel operation number of success and RTP media resource channel operation are counted as power.
9. in media gateway as claimed in claim 6, control the device of resource board masterslave switchover, it is characterized in that, described call statistics module also comprises:
The first judge module: whether overtime for judging described statistics and record operation;
The second judge module: for judging whether the RTP media resource channel operation amount of described statistics and record reaches first threshold;
The 3rd judge module: whether the RTP media resource channel operation that judges described statistics and record is counted as power lower than Second Threshold.
10. in media gateway as claimed in claim 9, control the device of resource board masterslave switchover, it is characterized in that:
If the first judge module judges described statistics and records operation overtime, the operational circumstances zero clearing to RTP media resource passage by described statistics and ticket call module of described call statistics module, and recover statistics initial condition.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010115265.8A CN101800665B (en) | 2010-02-23 | 2010-02-23 | Device and method for main/standby switch in media gateway |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010115265.8A CN101800665B (en) | 2010-02-23 | 2010-02-23 | Device and method for main/standby switch in media gateway |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101800665A CN101800665A (en) | 2010-08-11 |
CN101800665B true CN101800665B (en) | 2014-02-19 |
Family
ID=42596168
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201010115265.8A Active CN101800665B (en) | 2010-02-23 | 2010-02-23 | Device and method for main/standby switch in media gateway |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101800665B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111314563B (en) * | 2020-02-24 | 2022-08-19 | 深圳震有科技股份有限公司 | Method for detecting state of media resource board, storage medium and voice gateway |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1491000A (en) * | 2002-10-15 | 2004-04-21 | 华为技术有限公司 | Method for realizing RTP stream continuity after switching host facility with stand-by one |
CN101098316A (en) * | 2006-06-30 | 2008-01-02 | 华为技术有限公司 | Media gateway and call processing method |
KR20080070309A (en) * | 2007-01-26 | 2008-07-30 | 엘지노텔 주식회사 | Media gateway and method for processing calls in a media gateway |
CN101394641A (en) * | 2007-09-18 | 2009-03-25 | 中兴通讯股份有限公司 | Main standby machine switching method oriented to user data |
-
2010
- 2010-02-23 CN CN201010115265.8A patent/CN101800665B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1491000A (en) * | 2002-10-15 | 2004-04-21 | 华为技术有限公司 | Method for realizing RTP stream continuity after switching host facility with stand-by one |
CN101098316A (en) * | 2006-06-30 | 2008-01-02 | 华为技术有限公司 | Media gateway and call processing method |
KR20080070309A (en) * | 2007-01-26 | 2008-07-30 | 엘지노텔 주식회사 | Media gateway and method for processing calls in a media gateway |
CN101394641A (en) * | 2007-09-18 | 2009-03-25 | 中兴通讯股份有限公司 | Main standby machine switching method oriented to user data |
Non-Patent Citations (2)
Title |
---|
施世华 等.高可靠性通信设备的主备倒换设计.《电子科技》.2007,(第7期),第47-50页. |
高可靠性通信设备的主备倒换设计;施世华 等;《电子科技》;20071231(第7期);第47-50页 * |
Also Published As
Publication number | Publication date |
---|---|
CN101800665A (en) | 2010-08-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101094157B (en) | Method for implementing network interconnection by using link aggregation | |
CN101079759B (en) | Distributed bidirectional forwarding detection method and device | |
CA2542088C (en) | Method for monitoring and reporting events by media gateways | |
CN105430681A (en) | Automatic abnormity upload and recovery methods, automatic abnormity upload device and mobile terminal | |
CN101365169B (en) | Routing control implementing method, system, media gateway and media gateway controller | |
CN102075987B (en) | Method, system and network management monitoring server for obtaining abnormal information of message link | |
CN101801015A (en) | Method and device for processing out of service faults of cell | |
CN101895447A (en) | SIP (Session Initiation Protocol) trunk gateway and failure monitoring method thereof | |
CN106301840B (en) | Method and device for sending Bidirectional Forwarding Detection (BFD) message | |
CN101989933A (en) | Method and system for failure detection | |
CN103298023A (en) | Method and device for detecting terminal heartbeat | |
CN101800665B (en) | Device and method for main/standby switch in media gateway | |
CN101304544B (en) | Service maintaining method as well as communication system and related equipment | |
CN103166766B (en) | A kind of charging method, equipment and system | |
EP2922331B1 (en) | Method and system for performing dual-homing automatic switching decision according to the number of registered gateways | |
CN101848165B (en) | The method recovered after controlling interrupted communication link and interface board | |
CN101001396B (en) | Call processing method in intelligent network | |
CN1281092C (en) | Calling detection method for personal hand-held communication system | |
CN101917302B (en) | Method and system for reducing call disconnection caused by transient interruption of terminal media | |
CN100334845C (en) | Method for detecting link failure between media getway and media gatway controller | |
CN113225216A (en) | Method for automatically restarting data transmission exchanger and data transmission exchange device | |
CN1848755A (en) | Available management method for asynchronous transmission mode adaptive layer 2 business channel | |
JP2834109B2 (en) | Mobile communication system | |
CN101110695B (en) | Method and apparatus for implementing exception recovery when reelecting circuit | |
CN102055614A (en) | Media gateway detection method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |