CN1494289A - Method of implementing business transmission control in medium gateway control protocol - Google Patents
Method of implementing business transmission control in medium gateway control protocol Download PDFInfo
- Publication number
- CN1494289A CN1494289A CNA021377995A CN02137799A CN1494289A CN 1494289 A CN1494289 A CN 1494289A CN A021377995 A CNA021377995 A CN A021377995A CN 02137799 A CN02137799 A CN 02137799A CN 1494289 A CN1494289 A CN 1494289A
- Authority
- CN
- China
- Prior art keywords
- response
- order
- affairs
- identifying information
- queue
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The method includes following steps. When request command is sent, identification information of transaction transmission is kept in sending queue. Identification information of transaction transmission includes source address, port number of media gateway, transaction id. When command being received, looking up operation is carried out in response queue. If matched, original response message is retransmitted. If not matched, looking up operation is carried out in receiving queue. When response being received, looking up operation is carried out in response queue. If matched, the response is discarded. If not matched, looking up operation is carried out in the sending queue. In this looking up result, if matched, determining whether the response is a temporary response is continued. If it is a temporary response, then retransmission timer of correspond command is adjusted. The invention insure that same command is executed only once, and MGCP is executed correctly.
Description
Technical field:
The present invention relates to communication technical field, relate in particular to the realization of the affairs transmission control and treatment of MGCP.
Background technology
MGCP (Media Gateway Control Protocol is called for short MGCP) is the internet engineering service groups RFC2705 agreement of (The Internet Engineering Task Force is called for short IETF).
MGCP (RFC2705) is by two basic agreements: SGCP (Simple GatewayControl Protocol, be called for short SGCP) and the MGCP that forms of IP device control protocol (Internet Protocol DeviceControl is called for short IPDC) fusion.
Be illustrated in figure 1 as the system group network figure that realizes the MGCP agreement.The MGCP agreement has adopted separation gateway thought, and the gateway that former signaling and medium are focused on is decomposed into two parts: media gateway (MediaGateway is called for short MG) and call proxy server (Call agent, abbreviation CA).The CA processing signaling, MG handles medium, the action of CA control MG.From being a kind of master/slave (master/slave) relation in essence with MGCP, send the order that will carry out by CA to MG, MG gives CA with the information reporting of being collected.CA is equivalent to main (master), and MG is equivalent to from (slave).CA distributes to the MG specific tasks, and handles the request that MG submits.CA and MG are the network elements in the network, carry out communication by the MGCP agreement between they are mutual.
As the agreement of application layer, MGCP has not only defined the signaling interface between CA and the MG, has also defined the signal transmission method between CA and the MG.MGCP adopts a kind of based on the transmission mechanism of transaction (Transaction) at MGCP agreement bearer network.Described bearer network comprises internet (INTERNET) or ATM networks (ATM), specifically by the MGCP protocol definition.
The MGCP interface message is made up of command messages and response message, and among the present invention, command messages and response message are referred to as affairs.Command messages must comprise command header, and response message must comprise head response.Each order need meet with a response, and response needs recipient's back response to confirm, promptly adopts three-way handshake mode pass-along message.When order can not get responding, order transmit leg regularly to retransmit and order the recipient, and the order recipient must send Temporary Response, the process of re-transmission and Temporary Response is till order receive direction order transmit leg sends command response.
Command header is by an order line and set of parameter is capable forms.Order line is made up of request verb, Transaction Identifier (TransactionID), exectorial end points name, protocol version 4 parts.The value of TransactionID from 1 to 999999999, TransactionID is the keyword of sign affairs.Parameter line is by parameter name (being a capitalization under most of situation), a branch, and space and parameter value are formed.Head response is made up of a responsive trip and a plurality of (also can not having) responsive trip.Responsive trip partly is made up of answer code, TransactionID, optional note 3, separates with space character each other.
In order to accelerate message transmission speed, MGCP message adopts UDP (User Datagram Protocol, i.e. User Datagram Protoco (UDP)) to transmit.Because UDP itself can only provide insecure service, so the MGCP agreement must take measures to guarantee the reliable transmission and correct processing of message.Just owing to be to transmit on UDP, MGCP message can be lost, and does not in time receive response if send the entity of order, and the entity that sends order can be retransmitted this order.For most of orders, repeat this order and can cause confusion, so transmission course must be able to guarantee that same order only is performed once.
Transaction Identifier in the MGCP agreement (TransactionID) is the keyword of sign affairs, but Transaction Identifier TransactionID is not further described, include same TransactionID in the signaling that may cause different media gateway to send like this, cause this moment the recipient can not clearly distinguish whether new order of signaling of another gateway that signaling message actually from which media gateway, after can not distinguishing arrives, can not guarantee that same order only is performed technical problem once thereby cause.
Summary of the invention
The purpose of this invention is to provide a kind of method that in MGCP, realizes affairs transmission control, solving in the existing MGCP protocol implementation, the recipient can not clear and definite distinguishing signaling message from which media gateway and can not guarantee that same order only is performed technical problem once.
The technical scheme that realizes technical problem to be solved by this invention and take is summarized as follows,
A kind of method that realizes affairs transmission control in MGCP is provided, may further comprise the steps:
When (1) call proxy server or media gateway send command request, the affairs transmission identifying information that this order is corresponding is kept in the transmit queue, and described affairs transmission identifying information comprises source IP address, media gateway port number, the Transaction Identifier of this order correspondence;
When (2) the MGCP signaling processing entity receives order, in response queue, search earlier according to the affairs transmission identifying information that this order is corresponding, if coupling, retransmit former response message, if do not match, then in receiving formation, search, if in receiving formation, mate, loopback Temporary Response message, if in receiving formation, also do not match, then in receiving formation, preserve the relevant transmission identifying information of this order, back response after the fill order, the affairs transmission identifying information that comprises this order in the described back response will respond corresponding affairs transmission identifying information simultaneously and be kept in the response queue;
When (3) call proxy server or media gateway receive response, search in response queue according to the affairs transmission identifying information that this order is corresponding, if coupling then abandons this response, if do not match, in transmit queue, search,, continue to judge whether this response is Temporary Response if in transmit queue, mate, if Temporary Response, then adjust the retransmission timer of the corresponding command in the transmit queue, if not Temporary Response then handles accordingly.
Adopt technical scheme of the present invention, the reliable transmission and correct processing of affairs have been realized, guaranteed that same order only is performed once, thereby make the MGCP signaling can correct execution, greatly reduce the configuration requirement of gateway simultaneously, simplify the protocol processes of media gateway, made things convenient for media gateway realization to insert.
Description of drawings
Fig. 1 shows the networking diagram of MGCP protocol system;
Fig. 2 shows the system schematic that the present invention realizes the MGCP protocol layer;
Fig. 3 shows the transmission process of commands schematic flow sheet that the present invention realizes MGCP protocol transaction transmission control;
Fig. 4 shows the handling process schematic diagram that the present invention realizes the transmission response of MGCP protocol transaction transmission control;
Fig. 5 shows the reception process of commands schematic flow sheet that the present invention realizes MGCP protocol transaction transmission control;
Fig. 6 shows the handling process schematic diagram that the present invention realizes the reception response of MGCP protocol transaction transmission control.
Embodiment
Below in conjunction with accompanying drawing, illustrate the mode of concrete enforcement of the present invention.
Consider in implementation procedure, rely on the desired Transaction Identifier TransactionID of MGCP agreement can not distinguish different affairs fully separately, therefore in the present invention, discern for the port number information that the difference of different affairs has been increased source IP address and media gateway MG, rely on the three to distinguish different affairs.
The MGCP signaling processing entity will be preserved it to the response of nearest affairs loopback and the information of the present affairs of carrying out in memory, in the present invention, the affairs transmission identifying information of this affairs correspondence is kept in the transmit queue of being constructed, described transmit queue is kept in the memory, and described affairs transmission identifying information comprises source IP address, media gateway port number, the Transaction Identifier of this order correspondence.After the MGCP signaling processing entity receives order, should transmit identifying information according to the corresponding affairs of this order and compare with the response of loopback recently, if find to handle, then do not carry out these affairs, and loopback should respond again; Otherwise compare with the current affairs of carrying out, if find and the current affairs coupling of carrying out, a Temporary Response of loopback (Pending) message then represents that these affairs carry out, if do not match, then these affairs that receive are new affairs and this order are handled accordingly.Correspondingly, in the present invention, 3 message queues of structure in the MGCP protocol stack, be transmit queue, reception formation and response queue, element in each formation all comprises affairs transmission identifying information, i.e. 3 features of each affairs correspondence: Transaction Identifier TransactionID, source IP address, media gateway port number.
Fig. 2 shows the system schematic that the present invention realizes the MGCP protocol layer, as shown in the figure, the protocol transmission processing layer, the transmission control and treatment of responsible affairs, 3 message queues that hereinafter relate to all are arranged in this layer, and operation layer is responsible for Business Processing.
As shown in Figure 5, when the MGCP signaling processing entity receives order, in response queue, search earlier according to the affairs transmission identifying information that this order is corresponding, if Transaction Identifier, source IP address and media gateway port number all can find consistent information in response queue, that is obtain to mate, then retransmit the former response message in the response queue, if do not match, then in receiving formation, search the command request of having received, if affairs transmission identifying information obtains coupling in receiving formation, loopback Temporary Response message then, if in receiving formation, do not match yet, show that this command messages is a new request, then in receiving formation, application idle data district, preserve this order correspondent transaction transmission identifying information in the data field, simultaneously this command messages is reported Business treatment, by Business treatment this command messages is carried out respective handling, and result returned to the protocol transmission processing layer, the protocol transmission processing layer is again to the gateway back response, the affairs transmission identifying information that comprises this order in the response of loopback will respond corresponding affairs transmission identifying information simultaneously and be kept in the response queue, as shown in Figure 4.
As shown in Figure 6, when call proxy server or media gateway receive response, search in response queue according to the affairs transmission identifying information that this order is corresponding, if Transaction Identifier, source IP address and media gateway port number all can find consistent information in response queue, that is obtain to mate, then abandon this response, if do not match, then in transmit queue, search, if in transmit queue, do not match, then abandon this response, if in transmit queue, mate, continue to judge that whether this respond Temporary Response, if this response be Temporary Response (respond reason-code equal more than or equal to 100 and less than 200 scopes within), adjust the retransmission timer (i.e. control regularly retransmits order) of the corresponding command in the transmit queue,, then handle accordingly if this response is not a Temporary Response.Because response transactions is the response to the order of sending, therefore can be according to the characteristics of the order of sending, simplify relatively, for example, if the Transaction Identifier TransactionID of the order of sending is unique in present transmit queue, can only mate Transaction Identifier so, other two (source IP address and media gateway port number) can not carry out matching ratio.
As shown in Figure 3, when call proxy server or media gateway transmission command request, the affairs transmission identifying information that this order is corresponding is kept in the transmit queue, so that when receiving response, search coupling, structure retransmission mechanism when sending command request promptly is provided with retransmission timer and retransmits number of times simultaneously.
Although the disclosed method that realizes affairs transmission control in MGCP that relates to has been carried out special description with reference to embodiment, those skilled in the art can understand, under the situation that does not depart from scope and spirit of the present invention, can carry out all conspicuous modification of form and details to it.Therefore, embodiment described above is illustrative and not restrictive, and under the situation that does not break away from the spirit and scope of the present invention, all variations and modification are all within the scope of the present invention.
Claims (3)
1, a kind of method that realizes affairs transmission control in MGCP is characterized in that may further comprise the steps:
When (1) call proxy server or media gateway send command request, the affairs transmission identifying information that this order is corresponding is kept in the transmit queue, and described affairs transmission identifying information comprises source IP address, media gateway port number, the Transaction Identifier of this order correspondence;
When (2) the MGCP signaling processing entity receives order, in response queue, search earlier according to the affairs transmission identifying information that this order is corresponding, if coupling, retransmit former response message, if do not match, then in receiving formation, search, if in receiving formation, mate, loopback Temporary Response message, if in receiving formation, also do not match, then in receiving formation, preserve the relevant transmission identifying information of this order, back response after the fill order, the affairs transmission identifying information that comprises this order in the described back response will respond corresponding affairs transmission identifying information simultaneously and be kept in the response queue;
When (3) call proxy server or media gateway receive response, search in response queue according to the affairs transmission identifying information that this order is corresponding, if coupling then abandons this response, if do not match, in transmit queue, search,, continue to judge whether this response is Temporary Response if in transmit queue, mate, if Temporary Response, then adjust the retransmission timer of the corresponding command in the transmit queue, if not Temporary Response then handles accordingly.
2, method according to claim 1 is characterized in that in the step (1) further comprising the steps of:
Retransmission timer is set and retransmits number of times.
3, method according to claim 1 is characterized in that in the step (3) further comprising the steps of:
When in transmit queue, searching,, then can only mate Transaction Identifier in transmit queue, and source IP address, media gateway port number need not carry out matching ratio if Transaction Identifier is unique in the affairs of the described response transmission identifying information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA021377995A CN1494289A (en) | 2002-10-31 | 2002-10-31 | Method of implementing business transmission control in medium gateway control protocol |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA021377995A CN1494289A (en) | 2002-10-31 | 2002-10-31 | Method of implementing business transmission control in medium gateway control protocol |
Publications (1)
Publication Number | Publication Date |
---|---|
CN1494289A true CN1494289A (en) | 2004-05-05 |
Family
ID=34231712
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNA021377995A Pending CN1494289A (en) | 2002-10-31 | 2002-10-31 | Method of implementing business transmission control in medium gateway control protocol |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1494289A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2007107041A1 (en) * | 2006-03-22 | 2007-09-27 | Zte Corporation | A method for implementing call agent based on the media gateway control protocol and a system thereof |
CN100440890C (en) * | 2005-12-26 | 2008-12-03 | 华为技术有限公司 | Method for statistical parameter values of terminal reported from media gateway |
CN101931608A (en) * | 2009-06-26 | 2010-12-29 | 中兴通讯股份有限公司 | System and method for reliably transmitting resource position and discovery base protocol message |
CN110750485A (en) * | 2019-09-27 | 2020-02-04 | 深圳震有科技股份有限公司 | Method and device for confirming and processing communication messages between boards, computer equipment and medium |
-
2002
- 2002-10-31 CN CNA021377995A patent/CN1494289A/en active Pending
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100440890C (en) * | 2005-12-26 | 2008-12-03 | 华为技术有限公司 | Method for statistical parameter values of terminal reported from media gateway |
CN101160885B (en) * | 2005-12-26 | 2010-08-18 | 华为技术有限公司 | Media gateway and method of reporting terminal statistical parameter value |
WO2007107041A1 (en) * | 2006-03-22 | 2007-09-27 | Zte Corporation | A method for implementing call agent based on the media gateway control protocol and a system thereof |
CN101931608A (en) * | 2009-06-26 | 2010-12-29 | 中兴通讯股份有限公司 | System and method for reliably transmitting resource position and discovery base protocol message |
CN110750485A (en) * | 2019-09-27 | 2020-02-04 | 深圳震有科技股份有限公司 | Method and device for confirming and processing communication messages between boards, computer equipment and medium |
CN110750485B (en) * | 2019-09-27 | 2023-09-01 | 深圳震有科技股份有限公司 | Method and device for confirming and processing inter-board communication message, computer equipment and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6694471B1 (en) | System and method for periodic retransmission of messages | |
US7496672B2 (en) | Method and apparatus for a SIP client manager | |
CN101473622B (en) | Method and system for outband identification of data network communication | |
US6141785A (en) | Error control method for multiparty multimedia communications | |
CN106330414B (en) | Message transmission method and device | |
EP1349347B1 (en) | Method and apparatus for redundant signaling links | |
CN1251446C (en) | Method of defending network transmission control protocol sync message from overflowing attack | |
US6321269B1 (en) | Optimized performance for transaction-oriented communications using stream-based network protocols | |
US20040156393A1 (en) | Architecture and API for of transport and upper layer protocol processing acceleration | |
CN101834783B (en) | Method and device for forwarding messages and network equipment | |
EP1708445A1 (en) | Communication device and logical link abnormality detection method | |
JPH09321821A (en) | Protocol conversion system and its method | |
JP2004343762A (en) | Reliable delivery of multi-cast conference data | |
JPH11252179A (en) | Tcp communication high speed device for asymmetrical line | |
CN100363870C (en) | Method and apparatus for providing multi-client support in a SIP-enabled terminal | |
US20100115102A1 (en) | Method for improving a tcp data transmission in case the physical transmission medium is disconnected | |
CN1812405A (en) | Reliable one-way messaging over request-response transport protocols | |
KR19990053163A (en) | Packet Error Controller for Multicast Communication and Packet Error Control Method Using the Same | |
Farber et al. | Thinwire protocol for connecting personal computers to the Internet | |
CN1494289A (en) | Method of implementing business transmission control in medium gateway control protocol | |
CN112468513B (en) | Terminal management communication method for enterprise network | |
JP4527523B2 (en) | Server selection method, server selection method, server, and client terminal | |
CN116132001A (en) | Packet loss retransmission method | |
KR20070092392A (en) | Method for controlling server with multicast transmitting and system thereof | |
CN1482781A (en) | Network system and method for implementing media gateway control protocol stack |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |