Media gateway, Media Gateway Controller and relevant registration control and treatment method
Technical field
The present invention relates to media gateway (MG, Media Gateway) and Media Gateway Controller (MGC, Media Gateway Controller) in the next generation network (NGN), and MGC is restarted (promptly; Restart) back MG to the MGC process registration.
Background technology
The NGN network is to adopt soft switch (SoftSwitch) technology of separating with control, carrying and professional three that voice, multimedia and multiple business such as mobile are provided.Divide from function, flexible exchanging network can be divided into operation layer, key-course, transport layer and Access Layer from top to down.Wherein: the major function entity of key-course is MGC, mainly provides and calls out control, connects functions such as control, protocol processes, and the open interface of bottom various network resources is provided for operation layer; The core transmission network of transport layer is the IP packet network, and the passage of various signalings and media flow transmission is provided; The major function entity of Access Layer is MG, dissimilar access waies is converted into RTP/RTCP (RTP/RTCP Real-time Transport Control Protocol) stream that is adapted at transmitting on the IP network.
Adopt H.248/MGCP agreement between MGC and the MG, MGC is by connection, foundation and the release of the Media Stream on this agreement control MG.
When MGC meets with burst accident (outage, equipment fault etc.) and causes it to restart, and after startup was finished, the log-on message of the relevant media gateway on Media Gateway Controller may all be lost, and caused the control connection interruption.Therefore need a kind of method of design or mechanism, make between MGC and the MG and can recover control connection.Defined in the existing H248/MGCP MGCP and obtained process registration to MGC again after a kind of MG detects control disconnection and disconnection, to recover control connection, that is: MG sends message to MGC, and MGC does not have response, then MG starts the disconnection flow process, is the registration message of disconnect (disconnection) to the MGC sending method.
Do not lose at MGC under the situation of MG log-on message though above-mentioned MG obtains process registration, have no progeny in the control connection of MGC and MG, can handle well such as network connection interruption and wait the MGC-MG that causes to connect disruption.But this method relies on MG can detect the control disconnection, initiates " disconnection flow process " then, obtains registration to MGC again.For the detection of control disconnection, the H248/MGCP agreement has only defined " MG sends message and not response of MGC to MGC " this a kind of form.Its shortcoming is:
1) in the MGC start-up course, there is not service message between MG and the MGC; MGC start finish after, MGC can make " mistake " response to the message of MG, according to the test format of the control disconnection of protocol definition, MG can not detect the control disconnection, can initiatively not obtain registration to MGC.And go up the situation of all losing about the log-on message of MG for restarting back MGC, and cause MG can not obtain registration forever, enter service.
2) after MGC restarts,, must trigger " disconnection flow process ", and before " disconnection flow process " finished, the business of MG was disabled by " MG initiatively sends message and not response of MGC to MGC " according to the test format of the control disconnection of protocol definition.In fact after also just meaning the control disconnection, the first time of MG, professional trial was always unsuccessful.
Summary of the invention
Purport of the present invention provides a kind of Media Gateway Controller of can realizing fast and effectively and restarts the back media gateway to the Media Gateway Controller process registration, and realize the media gateway and the Media Gateway Controller of this method, in the hope of improving in the NGN network robustness of control interface between the MGC and MG.
To achieve these goals, the invention provides many technical schemes, be followed successively by:
The first, Media Gateway Controller restarts the back media gateway to the Media Gateway Controller process registration.Be characterized in: after MGC restarts, in setting-up time, stop to send message, until the setting-up time end to MG; Simultaneously, MG does not receive any message of MGC in setting-up time, determines to control between the MGC-MG disconnection, initiatively triggers the disconnection flow process, sends registration message to MGC; After MGC receives message, check data,, then reply the message that succeeds in registration, if not registration of MG then at MGC internal registration MG, is replied the message that succeeds in registration to MG simultaneously to MG if MG registers.
In the Media Gateway Controller process registration, MGC stops to send message to MG in setting-up time in above-mentioned media gateway, comprises the message that initiatively sends and the response message of non-registered message that MG is sent.
The second, Media Gateway Controller.On the basis of existing MGC module, also comprise the MGC registration control treatment module that is connected with described MGC module, be used to control MGC after restarting, in setting-up time, stop to send message, until the setting-up time end to MG.
In above-mentioned Media Gateway Controller, MGC stops to send message to MG in setting-up time, comprises the message that initiatively sends and the response message of non-registered message that MG is sent.
The 3rd, the registration control and treatment method of Media Gateway Controller.Be characterized in: MGC stops to send message to MG in setting-up time, until the setting-up time end after restarting.
In the registration control and treatment method of above-mentioned Media Gateway Controller, MGC stops to send message to MG in setting-up time, comprises the message that initiatively sends and the response message of non-registered message that MG is sent.
The 4th, media gateway.On the basis of existing MG module, also comprise the MG registration control treatment module that is connected with described MG module, when being used to control MG and in setting-up time, not receiving the message that sends by MGC, trigger the disconnection flow process, to MGC transmission registration message.
The 5th, the registration control and treatment method of media gateway.Be characterized in: when MG does not receive the message that is sent by MGC in setting-up time, trigger the disconnection flow process, send registration message to MGC.
Adopted above-mentioned technical solution, Media Gateway Controller because burst accident (outage, equipment fault etc.) and take place restart after, the behavior of further clear and definite MGC and MG guarantees that MG can obtain registration, fast and effeciently enters service.The present invention has improved in the NGN network robustness of control interface between the MGC and MG.
Description of drawings
Fig. 1 is that Media Gateway Controller of the present invention restarts the embodiment flow chart that the back media gateway is obtained register method;
Fig. 2 is the structured flowchart of Media Gateway Controller;
Fig. 3 is the structured flowchart of media gateway.
Embodiment
One of the present invention, Media Gateway Controller restarts the back media gateway to the Media Gateway Controller process registration
One of embodiment: as shown in Figure 1, after MGC restarts, the MG several times send notification event (Notify/NTFY) message to MGC in setting-up time, this MGC is not responded, MG is after retransmitting failure through several times, trigger the disconnection flow process, that is: send registration (ServiceChange/RSIP) message to MGC, it includes method is disconnection (disconnected); After MGC receives this message, check data,, then simply reply OK message if MG registers; If OK message is not then replied in registration, simultaneously at MGC internal registration MG.
Two of embodiment: after MGC restarted, MG did not have active message in setting-up time, and until the setting-up time end, MG triggers the disconnection flow process, sends the ServiceChange/RSIP registration message to MGC that is:, and it includes method and is " disconnected "; After MGC receives this message, check data,, then simply reply OK message if MG registers; If OK message is not then replied in registration, simultaneously at MGC internal registration MG.
Crucial part of the present invention is: after MGC restarts, MGC can not respond to the non-registered class message that MG sends, otherwise receive at MG under the situation of message response (no matter being correct response or errored response) that MG can not think the control disconnection, thereby does not start the disconnection flow process.
Another crucial part of the present invention is: MG can not receive under the situation of MGC message at setting-up time (as 10 minutes), to initiatively trigger " disconnection flow process ", this is different from the disconnection trigger flow condition that defines in the agreement: MG and sends message and not response of MGC to MGC.The disconnection trigger flow does not depend on the message that MG sends in the inventive method, and depend on that MGC does not send message, even do not have at MG under the situation of active message, still can in setting-up time (a few minutes are to dozens of minutes), make MG enter service, can avoid the defective that call attempt (user's off-hook event) all the time can not be successful first to a great extent.
The present invention's two, Media Gateway Controller
As shown in Figure 2, Media Gateway Controller comprises MGC module 11 and coupled MGC registration control treatment module 12, be used to control MGC after restarting, in setting-up time, stop initiatively to send message and the response message of non-registered message that MG is sent to MG, until the setting-up time end, after control connection was recovered, this Media Gateway Controller can send message to MG, also can handle message, and respond from MG.
The present invention's three, the registration control and treatment method of Media Gateway Controller
MGC stops to send message to MG in setting-up time after restarting, and comprises the message that initiatively sends and the response message of non-registered message that MG is sent, until the setting-up time end, after control connection is recovered.
The present invention's four, media gateway
As shown in Figure 3, media gateway comprises MG module 21 and connected MG registration control treatment module, when being used to control MG and in setting-up time, not receiving the message that sends by MGC, trigger the disconnection flow process, to the MGC sending method is the registration message of " disconnect ", attempt to re-register, recover control connection.
The present invention's five, the registration control and treatment method of media gateway
When MG does not receive the message that is sent by MGC in setting-up time, trigger the disconnection flow process, send registration message to MGC.
Above embodiment is only for the usefulness that the present invention is described, but not limiting the scope of the invention.Relevant those skilled in the art under the situation that does not break away from the spirit and scope of the present invention, can also make various conversion or modification, and the technical scheme that all are equal to also should belong within the category of the present invention's protection, is limited by each claim.