CN100414892C - Realizing method for monitoring state of media gateway controller by media gateway - Google Patents

Realizing method for monitoring state of media gateway controller by media gateway Download PDF

Info

Publication number
CN100414892C
CN100414892C CNB2004100985724A CN200410098572A CN100414892C CN 100414892 C CN100414892 C CN 100414892C CN B2004100985724 A CNB2004100985724 A CN B2004100985724A CN 200410098572 A CN200410098572 A CN 200410098572A CN 100414892 C CN100414892 C CN 100414892C
Authority
CN
China
Prior art keywords
mgc
media gateway
message
stops
timer
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.)
Expired - Fee Related
Application number
CNB2004100985724A
Other languages
Chinese (zh)
Other versions
CN1791031A (en
Inventor
林扬波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB2004100985724A priority Critical patent/CN100414892C/en
Publication of CN1791031A publication Critical patent/CN1791031A/en
Application granted granted Critical
Publication of CN100414892C publication Critical patent/CN100414892C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention relates to a realization method for monitoring the state of a media gateway controller by a media gateway. The method mainly comprises that the media gateway MG monitors messages from the media gateway controller MGC in real time, and the MG determines the state of the MGC according to result information obtained by real-time monitoring. Namely, a corresponding timer is arranged on the MG, and the timer is used for periodically monitoring whether the main control MGC sends any message or not to judge whether the MGC works in a normal state or not. Therefore, in the present invention, the MG can obtain the working state of the main control MGC in real time. When abnormality of the main control MGC appears, corresponding business can be carried out by being switched to other spare MGCs in time, and thereby, the reliability provided by the business in a network is ensured effectively.

Description

The implementation method of monitoring state of media gateway controller by media gateway
Technical field
The present invention relates to network communications technology field, relate in particular to a kind of implementation method of monitoring state of media gateway controller by media gateway.
Background technology
MGC (Media Gateway Controller) and MG (media gateway) are two key members among the NGN (next generation network).MGC is responsible for CCF, MG is responsible for the service bearer function, the division of labor and collaborative work between MGC and MG, thereby realized in the NGN network, calling out separating of control plane and service bearer plane, and abundant shared network resource, the processing procedure of simplified apparatus upgrading and professional expansion simultaneously, also greatly reduces NGN network development and maintenance cost.
The networking structure figure of MG and MGC carries out the transmission of Media Stream as shown in Figure 1 in the NGN network under the control of MGC between the MG.Wherein MGCP is the main agreement of communicating by letter between MG and the MGC, present widely used have H.248/MeGaCo (MGCP) and two kinds of agreements of MGCP (MGCP).
With the MGCP agreement is example, and it is end points (Endpoint) and be connected (Connection) by abstract representation that the function of MG provides with combination of resources.End points is represented the entity that certain function is provided on the MG, for example TDM (time division multiplexing) passage etc.Connect and represent MG to go up the combination of resources relevant with calling, for example TDM passage and RTP (real-time Transmission) flow related etc.Based on this abstract model of agreement, in fact continuing of calling be exactly to end points and the operation that is connected.
Finish alternately end points and the operation that is connected with response by order (Command) request between MGC and the MG.The entrained parameter of described order comprises: signal (Signal), incident classifications such as (Event).MGC is by signal indication MG operating resource, and for example to user's playback etc., MGC is with incident indication MG monitoring state, for example monitor user ' dislodging machine etc.
On two members that separate of MGC and MG, realize respectively with service bearer because call out control, and whether the network that is based on the NGN packetizing between MGC and the MG communicates, operate normally just extremely important so MGC and MG understand the other side mutually.Especially MG often is in passive position as controlled square tube, can use its MG that is controlled of audit measure active inquiry flexibly unlike MGC, therefore more needs MGCP to provide effective means to make described MG can monitor the state of MGC.
Yet, do not realize also that based on the MGCP agreement MG monitors at the state of coupled MGC at present.
Summary of the invention
In view of above-mentioned existing in prior technology problem, the implementation method that the purpose of this invention is to provide a kind of monitoring state of media gateway controller by media gateway, make MG can understand the operating state of its master control MGC in real time, thereby the professional reliability that provides in the network is provided.
The objective of the invention is to be achieved through the following technical solutions:
The invention provides a kind of implementation method of monitoring state of media gateway controller by media gateway, this method comprises:
A, media gateway MG monitor the message that media gateway controller MGC is sent in real time;
B, MG judge in the time period of setting whether monitor the message that MGC sends, if receive, determine that then described MGC is a normal operating conditions, otherwise described MGC are an abnormality.
The implementation method of described monitoring state of media gateway controller by media gateway also comprises:
It is the timer that stops of default value that overtime duration is set on MG, starts the described timer that stops at MG when MGC succeeds in registration, and in the time period that the timer expiry duration that stops limits execution in step B.
Described step B comprises:
B1, MG judge whether to monitor the message that MGC sends before the timer expiry that stops, if, execution in step B2 then, otherwise, execution in step B3;
B2, determine that described MGC is a normal operating conditions, the described timer that stops that resets, and carry out described steps A;
B3, determine that described MGC is an abnormality.
Described step B3 further comprises:
B31, MG send the circular message of the subsidiary overtime incident of stopping to MGC, and wait for that MGC returns any message, comprise the response message to this circular message;
B32, MG judge in the time period of setting whether receive the message of MGC, if receive, and execution in step B2 then, otherwise, determine that described MGC is in abnormality.
Described step B31 also comprises:
The described timer that stops that resets, and in the time period that the described timer expiry duration that stops limits execution in step B32.
Described step B2 also comprises:
Stop overtime incident and provide maximum when stopping duration and request mark information if MG receives to carry in the service request message of MGC, then the overtime duration of the described timer that stops is updated to the described maximum duration that stops, and the timer expiry that stops adopts described request mark information when sending circular message in subsequent process.
Described step B also comprises:
The setting counter that stops, when stopping timer expiry, this counter that stops adds 1;
Described step B3 also comprises:
Only when the described counter current count value that stops surpasses set point, determine that MGC is for being in abnormality.
The implementation method of described monitoring state of media gateway controller by media gateway also comprises:
Overtime duration is set is the general timer of default value and be initially invalid message sink sign, when MG when MGC succeeds in registration, start described general timer;
When MG received the message that MGC sends, it is effective that described message sink sign is set;
Described step B comprises:
B4, when described general timer is overtime, judge whether described message sink sign effective, if effectively, execution in step B5 then, otherwise, execution in step B6;
B5, determine that described MGC is in normal condition, the described general timer that resets, be provided with described message sink be masked as invalid, execution in step A;
B6, determine that described MGC is for being in abnormality.
Described step B6 also comprises:
The MG described general timer that resets;
MG sends the circular message of the subsidiary overtime incident of stopping to MGC, and waits for that MGC returns any message, comprises the response message to this circular message, is masked as effectively if receive then described message sink is set;
When described general timer is overtime, if message sink is masked as effectively, execution in step B5 then, otherwise, determine that described MGC is in abnormality.
Described step B also comprises:
The setting counter that stops, when overtime and message sink sign still was invalid whenever described general timer, the described counter that stops added 1;
Described step B6 comprises:
Only when the described counter current count value that stops surpasses set point, determine that MGC is for being in abnormality.
As seen from the above technical solution provided by the invention, the present invention is provided with corresponding timer on MG, and whether sends any message based on its master control of timer periodic monitoring MGC, whether works in normal condition to judge MGC.Therefore, among the present invention, MG can be known the operating state of its master control MGC in real time, so that occur when unusual as master control MGC, can switch in time on other normal MGC and carry out corresponding business, thereby the professional reliability that provides in the network has been provided effectively.
Description of drawings
Fig. 1 is the networking structure schematic diagram between MG and MGC in the NGN network;
Fig. 2 and Fig. 3 are respectively the flow chart of method of the present invention.
Embodiment
Core of the present invention is to be that the state of understanding connected MGC in real time from application layer for MG provides a kind of technological means simply efficiently by the corresponding monitoring mechanism of expansion in the MGCP agreement.Be specially the timer that stops accordingly is set on MG, whether MGC sends message based on this timer periodic monitoring, determines the state status of MGC with this.
The specific implementation process of method of the present invention specifically comprises following processing procedure as shown in Figures 2 and 3:
Step 21: the timer that stops independently is set on MG, and its overtime duration is preset as a default value that can dispose, i.e. timer duration A among Fig. 3.
Step 22: when MG succeeds in registration to MGC, after promptly this MGC became the master control MGC of described MG, MG started this timer that stops.
Step 23:MG judges whether to receive any message from master control MGC, no matter is request message or response message, if receive, then execution in step 25, otherwise, execution in step 24;
That is to say,, just can determine that it is normal operating conditions as long as MG receives the message that master control MGC sends;
Step 24: judge whether the timer that stops is overtime, if then execution in step 26, otherwise, get back to step 23;
Step 25: trigger the MG described timer that stops that resets, get back to step 23;
Step 26: the described timer expiry that stops, MG has NTFY (circular) message of the overtime incident of stopping to give described master control MGC from the MG end points transmission of representing gateway integral body is subsidiary, this timer that stops simultaneously resets, so that when this timer is overtime again, judge whether the message of receiving that MGC returns, afterwards, wait for the message that MGC returns;
Owing to this is not the incident that MGC asks MG to detect in advance, so the request mark of this incident need extend this as 0;
No matter when, if MG receives the message from the RQNT of master control MGC (service request), and wherein include and be handed down to the overtime incident of stopping of timer bag of stopping and non-0 request mark thereof that MG goes up the MG end points, and the maximum that is provided with this incident is when stopping duration parameters, then MG will write down stop overtime incident and non-0 request mark thereof on the MG end points, the duration that the above-mentioned timer expiry that stops is set simultaneously is the described maximum duration parameters value of stopping, be the timer duration B among Fig. 3, and when MGC sends the circular message of the described subsidiary overtime incident of stopping, using described non-0 request mark behind the timer expiry that stops;
The described maximum duration that stops is any 16bit integer, and unit is 10 milliseconds, is used for the definition timer expiry duration that stops;
Described MG mails to MGC subsidiaryly has the circular classes of messages of the overtime incident of stopping to trigger message like a kind of heartbeat, and this message will be impelled MGC to return response to reflect as a kind of heartbeat; Based on this response, MG can determine that the MGC state is normal, and triggers the MG timer that stops that resets; Be described circular message response message can whether normal with other any message one from MGC if being used from the state of judging MGC;
Step 27: judge whether to receive any message from master control MGC, comprise the response at described circular message, if receive, then execution in step 25, otherwise, execution in step 28;
Step 28: judge whether device is overtime when stopping surely, if then execution in step 29, otherwise, get back to step 27;
Step 29: determine that current MGC operating state is unusual;
If MG determines MGC and is in the abnormal work state, then can start corresponding abnormality processing flow process, for example send RSIP (restart and carry out) message and register, so that in network, carry out communication service by new MGC to the MGC of backup.
As can be seen, by said process, MG can be known the state of its master control MGC in real time, and handles accordingly in time when appearance is unusual, guarantees normally carrying out of communication service.
Among the present invention, for avoiding owing to this transient state of similar network " sudden strain of a muscle is disconnected " causes erroneous judgement, it is 0 the counter that stops that MG can also be provided with an initial value in addition, and the number of times of the above-mentioned timer expiry that stops is done statistics, whenever the above-mentioned timer expiry that the stops counter that just this stopped adds 1.Whenever MG receives any message from MGC, comprise that the counter reset that all this stopped is 0 to the response of the circular message of the subsidiary overtime incident of stopping.The currency of counter if stop, the timer that promptly stops is overtime number of times continuously, surpassed certain preset threshold value, can determine that then the state of MGC has occurred unusually, so just can effectively avoid occurring unusually owing to " dodging disconnected " situation causes mistake to be judged as MGC.
The present invention is stopped the timer except use to the monitoring of MGC message silence period, also has another kind of implementation to be: independently be provided with one and be initially 0 message sink sign (promptly be provided with message sink be masked as invalid) and a general timer that presets default value on MG.When MG receives message from MGC, then the message sink sign is set to 1 (message sink promptly is set to be masked as effectively), if this general timer is overtime, and described message sink sign still is 0, and then MG reports the overtime incident of stopping to give MGC, promptly sends circular message to MGC, and wait for that MGC returns response message, otherwise MG is reset to 0 with the message sink sign, and restarts described general timer.
When MG receives response message that MGC returns or other message, then described message sink sign is set to 1, like this, when described general timer is overtime once more, just can determine that MGC is for being in normal condition according to described message sink sign, again the message sink sign is reset to 0, and restarts described general timer and get final product.
Equally, also the counter that stops accordingly can be set in the method, so that still be that 0 continuous occurrence number determines whether described MGC is in abnormality, be abnormality to avoid under " dodging disconnected " situation, causing erroneous judgement MGC according to the overtime and described message sink of described general timer sign.
In sum, even realization of the present invention makes MGC when not having professional control messages to send, the message that also needn't send similar test in addition or keep activating, for example the MG end points on MG sends empty AUEP (audit endpoint) message, unless MGC oneself wants the state by this message monitoring MG, and it also needn't be subject to the above-mentioned maximum duration parameters of stopping to the control that sends opportunity.
The above; only for the preferable embodiment of the present invention, but protection scope of the present invention is not limited thereto, and anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.

Claims (10)

1. the implementation method of a monitoring state of media gateway controller by media gateway is characterized in that, comprising:
A, media gateway MG monitor the message that media gateway controller MGC is sent in real time;
B, MG judge in the time period of setting whether monitor the message that MGC sends, if receive, determine that then described MGC is a normal operating conditions, otherwise described MGC are an abnormality.
2. the implementation method of monitoring state of media gateway controller by media gateway according to claim 1 is characterized in that, this method also comprises:
It is the timer that stops of default value that overtime duration is set on MG, starts the described timer that stops at MG when MGC succeeds in registration, and in the time period that the timer expiry duration that stops limits execution in step B.
3. the implementation method of monitoring state of media gateway controller by media gateway according to claim 2 is characterized in that, described step B comprises:
B1, MG judge whether to monitor the message that MGC sends before the timer expiry that stops, if, execution in step B2 then, otherwise, execution in step B3;
B2, determine that described MGC is a normal operating conditions, the described timer that stops that resets, and carry out described steps A;
B3, determine that described MGC is an abnormality.
4. the implementation method of monitoring state of media gateway controller by media gateway according to claim 3 is characterized in that, described step B3 further comprises:
B31, MG send the circular message of the subsidiary overtime incident of stopping to MGC, and wait for that MGC returns any message, comprise the response message to this circular message;
B32, MG judge in the time period of setting whether receive the message of MGC, if receive, and execution in step B2 then, otherwise, determine that described MGC is in abnormality.
5. the implementation method of monitoring state of media gateway controller by media gateway according to claim 4 is characterized in that, described step B31 also comprises:
The described timer that stops that resets, and in the time period that the described timer expiry duration that stops limits execution in step B32.
6. the implementation method of monitoring state of media gateway controller by media gateway according to claim 4 is characterized in that, described step B2 also comprises:
Stop overtime incident and provide maximum when stopping duration and request mark information if MG receives to carry in the service request message of MGC, then the overtime duration of the described timer that stops is updated to the described maximum duration that stops, and the timer expiry that stops adopts described request mark information when sending circular message in subsequent process.
7. the implementation method of monitoring state of media gateway controller by media gateway according to claim 3 is characterized in that, described step B also comprises:
The setting counter that stops, when stopping timer expiry, this counter that stops adds 1;
Described step B3 also comprises:
Only when the described counter current count value that stops surpasses set point, determine that MGC is for being in abnormality.
8. the implementation method of monitoring state of media gateway controller by media gateway according to claim 1 is characterized in that, this method also comprises:
Overtime duration is set is the general timer of default value and be initially invalid message sink sign, when MG when MGC succeeds in registration, start described general timer;
When MG received the message that MGC sends, it is effective that described message sink sign is set;
Described step B comprises:
B4, when described general timer is overtime, judge whether described message sink sign effective, if effectively, execution in step B5 then, otherwise, execution in step B6;
B5, determine that described MGC is in normal condition, the described general timer that resets, be provided with described message sink be masked as invalid, execution in step A;
B6, determine that described MGC is for being in abnormality.
9. the implementation method of monitoring state of media gateway controller by media gateway according to claim 8 is characterized in that, described step B6 also comprises:
The MG described general timer that resets;
MG sends the circular message of the subsidiary overtime incident of stopping to MGC, and waits for that MGC returns any message, comprises the response message to this circular message, is masked as effectively if receive then described message sink is set;
When described general timer is overtime, if message sink is masked as effectively, execution in step B5 then, otherwise, determine that described MGC is in abnormality.
10. the implementation method of monitoring state of media gateway controller by media gateway according to claim 9 is characterized in that, described step B also comprises:
The setting counter that stops, when overtime and message sink sign still was invalid whenever described general timer, the described counter that stops added 1;
Described step B6 comprises:
Only when the described counter current count value that stops surpasses set point, determine that MGC is for being in abnormality.
CNB2004100985724A 2004-12-14 2004-12-14 Realizing method for monitoring state of media gateway controller by media gateway Expired - Fee Related CN100414892C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2004100985724A CN100414892C (en) 2004-12-14 2004-12-14 Realizing method for monitoring state of media gateway controller by media gateway

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2004100985724A CN100414892C (en) 2004-12-14 2004-12-14 Realizing method for monitoring state of media gateway controller by media gateway

Publications (2)

Publication Number Publication Date
CN1791031A CN1791031A (en) 2006-06-21
CN100414892C true CN100414892C (en) 2008-08-27

Family

ID=36788555

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2004100985724A Expired - Fee Related CN100414892C (en) 2004-12-14 2004-12-14 Realizing method for monitoring state of media gateway controller by media gateway

Country Status (1)

Country Link
CN (1) CN100414892C (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100442727C (en) * 2006-07-04 2008-12-10 华为技术有限公司 Detecting method between medium control device and medium processing device
CN101166165B (en) * 2006-10-17 2011-12-28 中兴通讯股份有限公司 Method for switching home of control gateway of core control device
CN101977396B (en) * 2010-10-22 2014-11-05 中兴通讯股份有限公司 System and method for realizing network element service switching in multimedia messaging service
CN103546491B (en) * 2013-11-08 2017-01-11 烽火通信科技股份有限公司 Communication link abnormity protection method based on H.248 terminal
CN105450466B (en) * 2015-11-10 2018-11-02 浪潮(北京)电子信息产业有限公司 A kind of ICMP request messages keep-alive control method and system
CN108173707B (en) * 2017-11-29 2020-06-26 北京百悟科技有限公司 Method and device for controlling use of media resources

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1452347A (en) * 2002-04-20 2003-10-29 深圳市中兴通讯股份有限公司 Method for detecting medium gateway controller and medium between-gateways link state
CN1533113A (en) * 2003-03-20 2004-09-29 华为技术有限公司 Method for detecting transmission link state by using medium gateway control protocol
US20040228471A1 (en) * 2003-05-16 2004-11-18 Lucent Technologies Inc. DTMF tone generation in a media gateway

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1452347A (en) * 2002-04-20 2003-10-29 深圳市中兴通讯股份有限公司 Method for detecting medium gateway controller and medium between-gateways link state
CN1533113A (en) * 2003-03-20 2004-09-29 华为技术有限公司 Method for detecting transmission link state by using medium gateway control protocol
US20040228471A1 (en) * 2003-05-16 2004-11-18 Lucent Technologies Inc. DTMF tone generation in a media gateway

Also Published As

Publication number Publication date
CN1791031A (en) 2006-06-21

Similar Documents

Publication Publication Date Title
CA2830273C (en) Method for monitoring and reporting events by media gateways
KR100771797B1 (en) A method for monitoring the state of the media gateway controller by the media gateway
CN100479380C (en) Network device managing method, network device and network managing system
CN100414892C (en) Realizing method for monitoring state of media gateway controller by media gateway
CN1870646B (en) Method for improving jump mechanism of media gateway control protocol centre
CN100428686C (en) MGC obtaining service quality information realizing method in next generation network
CN103166766A (en) Billing method, device and system
TWI394402B (en) Network detecting device and method of network quality detecting thereof
CN100334845C (en) Method for detecting link failure between media getway and media gatway controller
CN100442717C (en) Method and device for controlling preset event
US8116322B2 (en) Method and apparatus for controlling reporting of an event timestamp
KR100469244B1 (en) Voice Over Internet Protocol gateway, method of processing system error for the same
CN100563207C (en) A kind of synchronous R2 signaling method of call state between MGW and the MGC under framework H.248
CN102624571A (en) Detection method and system
CN101120595A (en) Method and device for transmitting signalling data between peripheral appliances of a switching system
CN101330471A (en) Method for collecting medium gateway information on one side of base station controller when non-frame release call

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20080827

Termination date: 20141214

EXPY Termination of patent right or utility model