CN1281080C - Method for realeasing terminal resource in media gateway - Google Patents

Method for realeasing terminal resource in media gateway Download PDF

Info

Publication number
CN1281080C
CN1281080C CN 200410048648 CN200410048648A CN1281080C CN 1281080 C CN1281080 C CN 1281080C CN 200410048648 CN200410048648 CN 200410048648 CN 200410048648 A CN200410048648 A CN 200410048648A CN 1281080 C CN1281080 C CN 1281080C
Authority
CN
China
Prior art keywords
terminal
timer
media gateway
mgw
mgc
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 - Lifetime
Application number
CN 200410048648
Other languages
Chinese (zh)
Other versions
CN1708141A (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 CN 200410048648 priority Critical patent/CN1281080C/en
Publication of CN1708141A publication Critical patent/CN1708141A/en
Application granted granted Critical
Publication of CN1281080C publication Critical patent/CN1281080C/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The present invention relates to resource management in next generation networks, which discloses a terminal resource releasing method in a media gateway. The present invention ensures the state consistency of terminals in an MGW and an MGC, and resources occupied by hanging death terminals in the MGW can be recovered in time. In the terminal resource releasing method in a media gateway, a long time occupied terminal event is added to the existing H. 248 protocol so that whether a terminal already exists in an MGC context for a long time can be detected; a timer for periodical overtime is arranged in the MWG; when the timer is in overtime, an MWG sends the long time occupied terminal event to the MGC; an MWC responds to the event so as to check whether the terminal is used currently; when the terminal is not used currently, resources occupied by the terminal are released.

Description

Terminal resource method for releasing in the media gateway
Technical field
The present invention relates to the resource management in the next generation network, the processing method when particularly terminal is hung in the next generation network.
Background technology
Traditional speech business end to end is usually by circuit-switched network, as public switched telephone network (Public Switched Telephone Network, abbreviation " PSTN "), PLMN (Public Lands Mobile Network is called for short " PLMN ") provides; The multi-medium data business provides as internetworking agreement (Internet Protocol is called for short " IP ") network then usually by packet switching network.Along with development of Communication Technique, all business are carried on is jointly progressively becoming possibility on the single data network.Utilize data network to unify voice-over business, data service, video traffic and will bring revolutionary transformation to operator.The trend of this fusion is promoting dissimilar business, different technology, and different application are headed for unification.Next generation network (Next Generation Network is called for short " NGN ") proposes just in this case, and has obtained development rapidly in recent years.
The NGN that ITU-T provided in February, 2004 is defined as: NGN is a packet network, it provides the multiple business that comprises telecommunication service, can utilize various bandwidth and have service quality (Quality of Service, abbreviation " QoS ") tranmission techniques of ability, the realization business function separates with the bottom tranmission techniques; It allows the user to freely the inserting of different business provider network, and supports universal mobility, realizes consistency and the uniformity of user to the business use.
One of NGN very important characteristic be exactly that professional control and carrying media are separated.The user can dispose and define the service feature of oneself voluntarily and needn't be concerned about the latticed form and the terminal type of bearer service, feasible business and the bigger flexibility that provides of using, thereby satisfy the business demand that the user is constantly developed renewal, also make network possess extensibility and quick ability of disposing new business, make the network operator more competitive.In NGN, professional control section is called Media Gateway Controller (MediaGateway Controller is called for short " MGC "), the bearing part is called media gateway (Media GateWay, be called for short " MGW "), the interface of MGC and MGW is called Mc interface, as shown in Figure 1.Wherein, in mobile field, Mc interface can use H.248/ media gateway controlling (Media Gataway Control, be called for short " MeGaCo ") agreement, this agreement is by the Internet engineering duty group (Internet EngineeringTask Force, be called for short " IETF "), (the InternationalTelecommunication Union Telecommunication Standardization Sector of ITU Telecommunication Standardization Sector, be called for short " ITU-T ") formulate, be used for the communication between MGC and the MGW, the foundation of control medium is provided, revise and releasing mechanism, simultaneously also portability some with the road call signaling, support the calling of legacy network terminal.About the detail of agreement H.248/MeGaCo, can be referring to " Megaco Protocol Version1.0 " (RFC 3015), Chinese can be translated into " MGCP 1.0 editions " (Request for Comments standard 3015).
In NGN, it is that terminal is not controlled that control separates an outstanding problem of being brought with carrying.Terminal is a logic entity that is positioned on the MGW, can transmission or receiving media and control flows, for example represent a time slot, an IP port or an asynchronous transfer mode (Asynchronous Transfer Mode is called for short " the ATM ") port that shape is " IP address+port numbers ".MGC is by realizing call function to the control of terminal, and these controls comprise the establishment, release, audit of terminal etc.Because terminal is positioned at MGW, create, discharge then at MGC, thereby the unusual of MGC may appear, for example converse abnormal end, MGC do not discharge terminal on the MGW, can cause terminal on the MGW for applying for, and MGC has discharged this terminal in fact, and promptly MGC and MGW are inconsistent to the state of same terminal, causes the terminal on the MGW to hang.Although H.248/MeGaCo wait gateway control protocol can report the media resource behaviour in service, yet can't satisfy real-time monitoring and control to terminal.
In order to address this problem, the terminal of existing technical scheme to having applied for starts a long timer of time on MGW, overtime then not tube terminal whether be used, discharge by MGW without exception, thereby guarantee to reclaim the terminal of being hung.Wherein, the timing length of timer can be set by the system manager as required.
In actual applications, there is following problem in such scheme: existing technical scheme can not solve MGC and MGW fully to the inconsistent problem of the state of same terminal, and the timing length of timer is difficult to determine.
Cause the main cause of this situation to be, because existing technical scheme just reclaims terminal according to timer duration, during recovery and do not know that whether MGC is using this terminal, thereby may cause inconsistent to SOT state of termination of MGW and MGC, and if timing length oversize, it is very slow that terminal reclaims speed, the terminal of hanging can not in time discharge, if timing length is too short, terminal reclaims very fast, this moment, MGC may also use this terminal, so the timing length of timer is bad definite.
Summary of the invention
In view of this, main purpose of the present invention is to provide terminal resource method for releasing in a kind of media gateway, makes terminal be guaranteed in the consistency of MGW and MGC state, can in time reclaim and hang the resource that terminal takies among the MGW.
For achieving the above object, the invention provides terminal resource method for releasing in a kind of media gateway, comprise following steps:
When A was described terminal distribution resource at Media Gateway Controller, described media gateway was to the timer of described starting terminal periodic timeout;
B is when described timer is overtime each time, and described media gateway sends terminal to described Media Gateway Controller and takies incident for a long time;
The described Media Gateway Controller of C responds described incident, whether just in use to check described terminal, if not then discharging the resource that described terminal takies.
Wherein, described terminal takies being described below of incident for a long time:
Event ID: 1dc
Effect: detect a terminal that has been present in for a long time in the context
The event description parameter:
Parameter identifier: 1dct
Type: integer, unit is second
Possible span: 0 to 65535,0 represented default value 1800 seconds.
The timing length of described timer can preestablish.
The timing length of described timer can be set at 30 minutes.
The present invention also provides terminal resource method for releasing in the another kind of media gateway, comprises following steps:
When the A Media Gateway Controller was the terminal distribution resource, described media gateway started first timer, and simultaneously described Media Gateway Controller starts the second timer that time-out time is shorter than the periodic timeout of described first timer;
B is when described second timer is overtime each time, and described Media Gateway Controller judges whether described terminal is used, if then described Media Gateway Controller sends audit message to described media gateway;
The described media gateway of C responds described audit message, restarts described first timer;
The described media gateway of D discharges the resource that described terminal takies when described first timer is overtime.
Wherein, the timing length of described first timer and described second timer can preestablish.
The timing length of described first timer can be set at 30 minutes, and the timing length of described second timer can be set at 15 minutes.
By relatively finding, technical scheme difference with the prior art of the present invention is, in the first string of the present invention, existing H.248/MeGaCo agreement is increased a terminal taken incident for a long time, be used for detecting the context whether a terminal has been present in MGC for a long time; The overtime timer of setting cycle in MWG, MWG sends terminal to MGC and takies incident for a long time when timer expiry; MWC responds this incident, checks whether terminal is used, if not then discharging the resource that this terminal takies.
In second scheme of the present invention, utilize audit (audit) function H.248, when the short timer cycle of MGC was overtime, whether in use MGC checked terminal, if just send an audit message to MGW, MGW receives that message just restarts the long timer of self.If the terminal among the MGC takes place unusual, then do not have audit message, the long timer expiry among the MGW discharges the resource that this terminal takies.
Difference on this technical scheme, brought comparatively significantly beneficial effect, the scheme that the terminal that promptly adopts the present invention to solve MGW is hung, owing to when reclaiming terminal, also combine the state whether terminal is being used, thereby avoided terminal to be recovered just when in use, guaranteed the consistency of terminal, and timing length can be regulated as required very easily during timer, thereby can guarantee that the shared resource of terminal of hanging is in time reclaimed at MGW and MGC state.
Description of drawings
Fig. 1 is the schematic diagram that MGC is connected with MGW;
In the method that Fig. 2 hangs for the terminal that solves MGW according to timer of the employing of a preferred embodiment of the present invention, the message transmission between MGW and the MGC and the schematic diagram of processing;
The flow chart of the method that Fig. 3 hangs for the terminal that solves MGW according to timer of the employing of a preferred embodiment of the present invention;
Fig. 4 solves the flow chart of the method that the MGW terminal hangs for the audit function that utilizes according to a preferred embodiment of the present invention.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, the present invention is described in further detail below in conjunction with accompanying drawing.
Below in conjunction with a specific embodiment of the present invention the present invention program is described.
In a preferred embodiment of the present invention, utilize the H.248/MeGaCo reporting events function of agreement, terminal of expansion takies incident (Long Duration CallDetected) for a long time and is used for representing that terminal is used for a long time on prior protocols, report MGC by MGW, MGC checks whether this terminal is used, if do not use then discharged by MGC.The Chinese and English that this terminal takies incident for a long time formally is described below:
Terminal takies incident for a long time
Event ID: 1dc (0x0003)
Detect a terminal that has been present in for a long time in the context
The event description parameter:
Parameter identifier: 1dct (0x0001)
Type: integer, unit is second
Possible span: 0 to 65535,0 represented default value 1800 seconds
The observation time characterising parameter:
Do not have
Long?Duration?Call
------------------
EventID:1dc(0x0003)
Detects?that?a?termination?has?been?in?the?context?for?a?long?time.
EventsDescriptor?parameters:
Long?Duration?Call?Time
-----------------------
ParameterID:1dct(0x0001)
Type:integer(second)
Possible?values:0..65535(0?means?take?the?defalt?value?of?1800seconds)
ObservedEventsDescriptor?parameters:
None
Solve in the method that the terminal of MGW hangs according to timer of the employing of a preferable enforcement of the present invention, the message transmission between MGW and the MGC and the schematic diagram of processing are as shown in Figure 2.
At first, MGC sends ADD_REQ to MGW (T1, event=g/1dc) message is created terminal T1, and simultaneously, MGW starts a timer after receiving this message.Wherein, 1dc is the event ID (EventID) that terminal takies incident for a long time.Need to prove that MGW needs to respond ADD_RSP message after the establishment terminal is finished and started timer.
Then, MGW sends NOTIFY_REQ at timer expiry to MGC (T1, event=g/1dc) message illustrates that the terminal of finding terminal T1 takies incident for a long time.
MGC receives that (T1 event=g/1dc) after the message, checks the state of terminal T1, if T1 uses then is left intact to NOTIFY_REQ; If T1 takes place to have discharged unusually MGC during timer regularly, T1 is in idle condition and then sends SUB_REQ (T1) message release terminal T1 by MGC to MGW.
At last, MGW responds SUB_RSP message after discharging terminal T1.
The release that has so just guaranteed terminal is weighed all the time at MGC, thereby has guaranteed the consistent of MGW and MGC state.
The flow process that solves the method that the terminal of MGW hangs with timer of the corresponding employing according to a preferred embodiment of the present invention of Fig. 2 as shown in Figure 3.
At first enter step 110, MGW receives that MGC creates the event request indication of terminal.For example, MGW receives that (T1, event=g/1dc) message requires to create terminal T1 to ADD_REQ mentioned above.The so-called terminal of creating mainly refers to be the corresponding resource of terminal to apply.
Then enter step 120, MGW is to the starting terminal timer of this establishment.Wherein, the timing length of timer can preestablish, and in a preferred embodiment of the present invention, the timing length of timer is set at 30 minutes.In this embodiment, timer is periodic timeout, and it is overtime to that is to say behind the one-shot that timer periodically triggers always, up to being stopped.
Then enter step 130, the MGW wait, overtime until timer cycle ground.
Then enter step 140, MGW takies incident for a long time to the MGC reporting terminal.In a preferred embodiment of the present invention, MGW sends NOTIFY_REQ (T1, event=g/1dc) message to MGC.
Then enter step 150, MGC checks whether the terminal of reported event correspondence is used, if process ends then, otherwise enter step 160.Wherein, if MGC takes place to have discharged terminal unusually, then terminal will be in idle condition, and this moment, the terminal of MGW side just was in the state of hanging, and needs to discharge.In addition, though the terminal of judging the reported event correspondence as MGC in this flow process is just in use, direct process ends, because the overtime timer of periodic triggers is not stopped, it is overtime next time therefore to work as timer, can reenter step 140.
In step 160, discharge the shared resource of this terminal of hanging and (comprise the resource among MGC and the MGW, unless this resource is because be released unusually.), MGW stops the timer of this terminal correspondence, finishes whole flow process then.
Those of ordinary skill in the art are appreciated that such step just guarantees terminal release always by the MGC execution, and guarantee that by timer terminal is not hung.
Need to prove,, utilize audit (audit) function H.248 also can avoid terminal to hang based on the thought that the terminal that adopts timer to solve MGW is hung.Illustrate below in conjunction with a preferred embodiment that utilizes audit function solution MGW terminal to hang.
Utilize flow chart that audit function solves the method that the MGW terminal hangs as shown in Figure 4 according to a preferred embodiment of the present invention.
At first enter step 210, MGW starts timer when long when creating terminal.In a preferred embodiment of the present invention, the timing length of timer is 30 minutes during this length, is used for reclaiming when regularly finishing terminal.
Then enter step 220, MGC starts a timer in short-term when creating terminal.In a preferred embodiment of the present invention, this in short-term the timing length of timer be 15 minutes.Need to prove, when long timer and in short-term length of timer all can set but the timing length of the timing length that must satisfy timer in short-term timer when growing as required.
Then enter step 230, wait for, until timer expiry in short-term.Timer is the periodicity timer in short-term, and promptly setting once can be periodically overtime.When being released, counterpart terminal just stops.
Then enter step 240, MGC judges whether if then enter step 270, otherwise to enter step 250 not using this terminal.Wherein, unusual if MGC takes place, terminal is released, and terminal then occurs hanging, needs to reclaim this and hangs the shared resource of terminal.
In step 250, MGC sends audit message to MGW.Wherein, to send audit message be in order to inform that the MGW terminal still uses for this step.
Then enter step 260, MGW response audit message is restarted timer when long.In this step, MGW has learnt that terminal uses, and therefore retiming, timer is released just when in use to avoid terminal when being used for discharging terminal long.
In step 270, wait for timer expiry when long.Can see,, make MGW constantly restart timer when long, otherwise timer can take place overtime according to the setting of the last time when long unless constantly trigger step 260 in audit message.
In step 280, MGW discharges the shared resource of terminal and (comprises the resource among MGC and the MGW, unless this resource is because be released unusually.)。In this step, timer expiry illustrates that then MGC does not send audit message during the timer timing when long when long, and promptly MGC has discharged terminal, and terminal is hung, and then reclaims the terminal of being hung in this step.
Timer and timer combination in short-term when such scheme passes through length, whether MGC makes regular check on terminal with the timing length of timer in short-term and is using, if terminal is timer when long with the timing length schedule reboot of timer in short-term then in use, then no longer restart timer when long if terminal has discharged, system discharges when timer regularly finishes when long and hangs terminal.Those of ordinary skill in the art are appreciated that the timely recovery that also can successfully realize hanging terminal like this.
Though by reference some preferred embodiment of the present invention, the present invention is illustrated and describes, but those of ordinary skill in the art should be understood that, can do various changes to it in the form and details, and the spirit and scope of the present invention that do not depart from appended claims and limited.

Claims (7)

1. terminal resource method for releasing in the media gateway is characterized in that, comprises following steps:
When A was described terminal distribution resource at Media Gateway Controller, described media gateway was to the timer of described starting terminal periodic timeout;
B is when described timer is overtime each time, and described media gateway sends terminal to described Media Gateway Controller and takies incident for a long time;
The described Media Gateway Controller of C responds described incident, whether just in use to check described terminal, if not then discharging the resource that described terminal takies.
2. terminal resource method for releasing in the media gateway according to claim 1 is characterized in that, described terminal takies being described below of incident for a long time:
Event ID: 1dc
Effect: detect a terminal that has been present in for a long time in the context
The event description parameter:
Parameter identifier: 1dct
Type: integer, unit is second
Possible span: 0 to 65535,0 represented default value 1800 seconds.
3. terminal resource method for releasing in the media gateway according to claim 1 is characterized in that the timing length of described timer can preestablish.
4. terminal resource method for releasing in the media gateway according to claim 3 is characterized in that the timing length of described timer can be set at 30 minutes.
5. terminal resource method for releasing in the media gateway is characterized in that, comprises following steps:
When the A Media Gateway Controller was the terminal distribution resource, described media gateway started first timer, and simultaneously described Media Gateway Controller starts the second timer that time-out time is shorter than the periodic timeout of described first timer;
B is when described second timer is overtime each time, and described Media Gateway Controller judges whether described terminal is used, if then described Media Gateway Controller sends audit message to described media gateway;
The described media gateway of C responds described audit message, restarts described first timer;
The described media gateway of D discharges the resource that described terminal takies when described first timer is overtime.
6. terminal resource method for releasing in the media gateway according to claim 5 is characterized in that the timing length of described first timer and described second timer can preestablish.
7. terminal resource method for releasing in the media gateway according to claim 6 is characterized in that the timing length of described first timer can be set at 30 minutes, and the timing length of described second timer can be set at 15 minutes.
CN 200410048648 2004-06-08 2004-06-08 Method for realeasing terminal resource in media gateway Expired - Lifetime CN1281080C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200410048648 CN1281080C (en) 2004-06-08 2004-06-08 Method for realeasing terminal resource in media gateway

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200410048648 CN1281080C (en) 2004-06-08 2004-06-08 Method for realeasing terminal resource in media gateway

Publications (2)

Publication Number Publication Date
CN1708141A CN1708141A (en) 2005-12-14
CN1281080C true CN1281080C (en) 2006-10-18

Family

ID=35581742

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200410048648 Expired - Lifetime CN1281080C (en) 2004-06-08 2004-06-08 Method for realeasing terminal resource in media gateway

Country Status (1)

Country Link
CN (1) CN1281080C (en)

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101022454B (en) * 2006-02-16 2010-10-13 华为技术有限公司 Interentity auditing method and system
CN1984025B (en) * 2006-05-17 2012-05-30 华为技术有限公司 Method for releasing invalid-occupied resource and storage converter
CN101087302B (en) 2006-06-05 2010-12-01 华为技术有限公司 Call establishment method
CN101090511B (en) * 2006-06-14 2010-05-12 华为技术有限公司 Release method for death resource
WO2008003256A1 (en) 2006-06-26 2008-01-10 Huawei Technologies Co., Ltd. Method and system and device for instructing media gateway to set up connections between terminals
CN100542354C (en) * 2006-11-10 2009-09-16 华为技术有限公司 Terminal configuration method and terminal configuration system
CN1997085A (en) * 2006-12-22 2007-07-11 华为技术有限公司 A method for end release of the media gateway and a media gateway
CN101237361B (en) * 2007-01-31 2011-01-05 中兴通讯股份有限公司 A suspending death method for wireless network controller and B node communication context
CN101262679B (en) * 2007-03-06 2012-02-08 中兴通讯股份有限公司 Resource release method
WO2009079827A1 (en) * 2007-12-14 2009-07-02 Zte Corporation Method and system for releasing resources in gateway device
CN101262435B (en) * 2008-04-16 2010-09-29 华为技术有限公司 A return method and device for stream forward items
CN101594391B (en) * 2009-06-19 2012-09-26 中兴通讯股份有限公司 Method and system for reducing resource hang
CN102026292B (en) * 2009-09-18 2013-11-06 华为技术有限公司 Resource management method and equipment
CN101917302B (en) * 2010-04-02 2015-06-10 中兴通讯股份有限公司 Method and system for reducing call disconnection caused by transient interruption of terminal media
CN103338526B (en) * 2011-01-10 2014-08-20 华为技术有限公司 Method and equipment for releasing context related resource of user equipment
CN102595534B (en) * 2011-01-10 2014-12-03 华为技术有限公司 Method and device for releasing user equipment context related resource

Also Published As

Publication number Publication date
CN1708141A (en) 2005-12-14

Similar Documents

Publication Publication Date Title
CN1281080C (en) Method for realeasing terminal resource in media gateway
CN1874345A (en) Method for statistical parameter values of terminal reported from media gateway
CN1859371A (en) Method for checking flow engineering link time slot state consistency
CN1655532A (en) Managing routing path of voice over internet protocol (VoIP) system
CN1866855A (en) System for tele-managing local network device and realization method
CN1889470A (en) Chain-circuit time delay detecting method
CN1812397A (en) Network management interface adapter and information interacting method
CN101051981A (en) WLAN abnormal quick restoring method and device
CN1283070C (en) Monitoring method of media gateway controller state
CN1750540A (en) Method for keeping port open of fire-proof wall/address converting device in soft exhanging net
CN1842034A (en) Multi protocol label exchange performance supervision ability notifying and arranging method
CN101060466A (en) Multiple service access network control system and control method
CN1878389A (en) Next generation network service switching method and its device
CN1691636A (en) Method of flow state establishment
CN1855931A (en) Method for processing upload event of media gateway in network of the latter generation
CN1870527A (en) Internal storage warning processing method and route of converting without discontinuous
CN1791002A (en) MGC obtaining service quality information realizing method in next generation network
CN1298146C (en) Method for notifying busy status to session initiating protocol network from end user
CN101079892A (en) Processing method, system and device for subscription and registration status
CN1870647A (en) System and method for audit between entity
CN1905562A (en) Method for determining need configurating link protocol of marginal apparatus serial slot
CN1567844A (en) A method for controlling establishment of label switch path (LSP) based on resource reservation protocol (RSVP)
WO2006056123A1 (en) Method for processing the delay context in the media gateway
CN101035024A (en) Method for processing the batch configuration and network management device and network system
CN1889457A (en) Method for raising Diameter internodal communication reliability

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