CN1866830A - Method for realizing media gateway synchronization in communication system - Google Patents
Method for realizing media gateway synchronization in communication system Download PDFInfo
- Publication number
- CN1866830A CN1866830A CN 200510088635 CN200510088635A CN1866830A CN 1866830 A CN1866830 A CN 1866830A CN 200510088635 CN200510088635 CN 200510088635 CN 200510088635 A CN200510088635 A CN 200510088635A CN 1866830 A CN1866830 A CN 1866830A
- Authority
- CN
- China
- Prior art keywords
- media gateway
- time
- network
- synchronous
- message
- 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.)
- Granted
Links
Images
Abstract
The invention discloses a media gateway realizing synchronization method and device of communication system, which is characterized by the following: the media gateway gets time synchronizing parameter from media gateway controller MGC and realizes synchronization with network time according to the get time synchronizing parameter. The invention saves network time server and reduces complexity of NGN network and gateway system.
Description
Technical field
The present invention relates to network communications technology field, relate in particular to the synchronous method of media gateway realization in a kind of communication system.
Background technology
Along with the continuous maturation of NGN (next generation network) technology, voice-bearer has obtained application more and more widely on IP network.Fig. 1 is the simple single domain networking diagram of NGN network application in voice service, has only provided a MGC (Media Gateway Controller) among the figure, and actual networking may have a plurality of MGC when using.
In Fig. 1, IAD (integrated access equipment), AMG (access media gateway) and TMG (Trunk Media Gateway) etc. have been the effects of media stream transition, promptly be used for G.711 the user's voice signal encoding is become, G.729 or G.723.1 wait the speech frame that can on IP, transmit of form, simultaneously, also be used for on the IP network G.711, G.729 or speech frame G.723.1 be decoded into voice signal.
In the NGN commercial process, edge media gateway such as AMG, IAD and HGW all need acquisition time parameter from the network, to guarantee the system time and the network time synchronization of the network equipment.At present, common way is to realize NTP (NTP (Network Time Protocol)) or SNTP (SNTP) on gateway devices such as AMG, IAD and HGW, then, obtains network time based on the time server of corresponding protocol from network.The network model that corresponding IAD, AMG and TMG equipment obtain network time as shown in Figure 2, described time server can be ntp server or SNTP server.
That is to say, at present media gateway device is to obtain network time by NTP or SNTP agreement from NTP/SNTP server independently, as shown in Figure 2, specifically be by on media gateway device, realizing NTP or SNTP agreement, and according to the NTP/SNTP server address that disposes, to the fiducial time that corresponding time server obtains whole network, synchronous with time of realizing media gateway devices such as IAD, AMG and TMG and network time.
The method of above-mentioned realization media gateway device and network time synchronization need realize NTP or SNTP agreement on media gateway device, this will inevitably increase the overhead of media gateway device.Simultaneously, also need in network, increase NTP/SNTP server (NTP/SNTP server) is set, so then can increase the system complexity of network cost and networking.And, on media gateway device, need to carry out NTP/SNTP server configuration, increase the network O﹠M workload greatly.
Summary of the invention
In view of above-mentioned existing in prior technology problem, the purpose of this invention is to provide the synchronous method of media gateway realization in a kind of communication system, with the complexity of effective reduction network organizing, reduce the network O﹠M workload.
The objective of the invention is to be achieved through the following technical solutions:
The invention provides the synchronous method of media gateway realization in a kind of communication system, comprising:
A, media gateway are from Media Gateway Controller acquisition time synchronization parameter;
B, media gateway realize its synchronous with network time according to the time synchronized parameter of obtaining.
Described steps A comprises:
Media gateway by the expansion media gateway and Media Gateway Controller between interactive messages from Media Gateway Controller acquisition time synchronization parameter.
Described steps A comprises:
Audit message or heartbeat response message acquisition time synchronization parameter that media gateway sends to media gateway by the Media Gateway Controller of expanding.
Described step B comprises:
Media gateway is according to the time synchronized parameter obtained and calculate the network transfer delay that obtains and realize its synchronous with network time.
The processing that described calculating obtains network delay comprises:
C, media gateway are determined the network transfer delay value according to the time value information calculations of carrying in the interactive messages between Media Gateway Controller and the media gateway;
Perhaps,
D, Media Gateway Controller calculate the network transfer delay value between itself and the media gateway, and are handed down to corresponding media gateway by message.
Described step C specifically comprises:
C1, media gateway send a request message to Media Gateway Controller, and the record transmitting time, wait for that Media Gateway Controller returns response message;
After C2, media gateway receive response message, calculate definite network transfer delay value according to the transmitting time value of time that receives response message and record.
Described step C also comprises:
The time that will receive the time of request message and send response message on Media Gateway Controller all is carried in the described response message and sends,
Media gateway is also determined the network transfer delay value according to the time of described reception request message and the Time Calculation of transmission response message after receiving response message;
Perhaps,
Media Gateway Controller is carried on its processing time value at request message in the response message and sends, and after media gateway receives response message, also calculates according to described processing time value and determines the network transfer delay value.
Interactive messages comprises between described Media Gateway Controller and the media gateway:
The notification message of expansion and the push-notification-answer message of expansion.
Described step B also comprises:
Media gateway is regularly according to the time synchronized parameter of obtaining from Media Gateway Controller and calculate the network transfer delay that obtains and realize its synchronous with network time.
The present invention also provides a kind of media gateway realization synchronous device, comprising:
Lock in time acquisition module: be used for from Media Gateway Controller acquisition time synchronization parameter;
Media gateway synchronous processing module: be used for the current time that corresponding time synchronized parameter is set to media gateway, realize the synchronous of media gateway and network time.
Described device also comprises:
Network transfer delay processing module: be used for determining the network transfer delay value according to interactive messages between media gateway and the Media Gateway Controller, and utilize this network transfer delay value to adjust described time synchronized parameter value, then, give the media gateway synchronous processing module with adjusted time synchronized parameter value.
As seen from the above technical solution provided by the invention, obtain network time and realize the method that media gateway is synchronous from MGC owing to the present invention has adopted directly.Therefore, the present invention can save the network time server in the network, thereby can reduce the complexity of NGN network and the complexity of gateway system; Simultaneously, can also reduce the overhead that the NTP/SNTP module is brought in the gateway; That is to say that the present invention can simplify the media gateway device configuration, and reduces communication system O﹠M workload.
Description of drawings
Fig. 1 is the networking structure schematic diagram of NGN network;
Fig. 2 is the NGN schematic network structure that comprises network time server;
Fig. 3 is the process schematic diagram of audit interacting message;
Fig. 4 is the mutual process schematic diagram of heartbeat message;
Fig. 5 is the structural representation of device of the present invention.
Embodiment
Core of the present invention is that media gateway device is directly carried out the whole network of system time by MGC (Media Gateway Controller) is synchronous, serves as to realize that the whole network realizes the NTP/SNTP agreement synchronously, the complexity of reduction networking to avoid in network.
For the present invention there being further understanding, be described in detail below in conjunction with the specific implementation of accompanying drawing to method of the present invention.
Method of the present invention is applicable to operation MGCP (MGCP), H.248 waits the media gateway of signaling protocol.To be example with the media gateway of operation MGCP agreement below, the specific implementation of method of the present invention will be described.
The present invention is in the specific implementation process, with MGC, be that SoftSwitch (soft switch) system time is a NGN network reference clock, and need to guarantee clock synchronization between many SoftSwitch equipment, corresponding media gateway equipment is then respectively by expansion MGCP agreement, directly obtain system time, thereby realize the synchronous of each media gateway device and network time from SoftSwitch.The clock synchronization of soft switch can be undertaken by NTP/SNTP or alternate manner, and this paper does not relate to.
The MGCP protocol extension goes out a parameter (T) and represents time synchronization information, and the time in the SoftSwitch system is issued to media gateway, and corresponding time format is as follows:
T:D/yyyy-mm-dd,T/hh-mm-ss,I/xxxxx;yyyyy;
Signal (D) the expression date is passed through for one section in the front, and signal (T) expression Hour Minute Second is passed through for one section in the back.Because MG equipment itself is less demanding to the time accuracy, therefore, it is just enough that corresponding time parameter is accurate to second level.
In order to improve the accuracy of time synchronized, need the network loop time delay between computing medium gateway and the SoftSwitch, in time synchronized parameter (T), define a software processes delay time signal (I) again, represent the software time delay of SoftSwtich processing messages, corresponding usage will be done detailed explanation in follow-up description process.
Among the present invention, described time synchronized parameter (T) specifically can issue by the timed message between media gateway and the SoftSwitch.For example, timed ports audit message that can be by SoftSwitch or the heartbeat message response of media gateway device issued.
(1) as shown in Figure 3 by the specific implementation that issues of audit message:
SoftSwitch-->MG: // by the message of soft switch to MG;
AUEP 993849703aaln/1@mgcp.huawei.com MGCP 1.0: // audit message;
F:X
T:D/2005-6-20, T/09-30-02: // date and time information;
MG-->SoftSwitch: // by the message of MG to soft switch;
200 993849703 OK: // acknowledge message;
X:1600990A;
(2) issue by the heartbeat response message, as shown in Figure 4:
MG-->SoftSwitch:
NTFY 111979aaln/0@mgcp.huawei.com MGCP 1.0: ∥ notification message;
K:111978
O:H/co2
X:FFFFFFFF
SoftSwitch-->MG:
200?111979?OK
T:D/2005-6-20, C/09-33-13: ∥ date and time information.
By above-mentioned audit message or heartbeat response message, media gateway device just can obtain corresponding time synchronized parameter (T) information from soft switch.Certainly, among the present invention, also can obtain corresponding time synchronized parameter information from soft switch, for example, can realize by the message that is used for acquisition time synchronization parameter information of special setting by other message, or the like.
To the specific implementation of the method for the invention be described below, method of the present invention specifically comprises following processing procedure:
(1) media gateway device obtains it by the message of being sent by soft switch and realizes synchronous needed time synchronized parameter information;
(2) media gateway device time of receipt (T of R) synchronization parameter (T) calculates the current time according to inner synchronized algorithm;
The method of concrete calculating current time is: at first, calculate loop time delay, obtain One Way Delay divided by 2 then, be i.e. network transfer delay between media gateway and the Media Gateway Controller; Afterwards, subtract each other (promptly removing the influence of network transfer delay) with time synchronized parameter T again and just can get access to the current network time; Certainly, the present invention does not repel any other and can obtain the method for unilateral network time delay.
And, consider that there is accidental error in the time parameter that once obtains, therefore in synchronizing process, can adopt and carry out N correction continuously, trimming process promptly is that the time that calculates is averaged.
Among the present invention, the calculating of network loop time delay can realize by expansion NTFY message, definition signal (I) in the time synchronized parameter (T), and signal (I) value unit is 10ms (being Tick);
No matter be time synchronized parameter (T) by audit message or the heartbeat response message issues, SoftSwitch all need be in to the NTYF message of media gateway response signal (I), its value xxxxx is the time point that SoftSwitch receives NTFY message, and yyyyy is the time point when sending the NTFY response;
Record Tick value A when media gateway is sent NTFY, record Tick value B just can calculate loop time delay by the method for { B-A-(yyyyy-xxxxx) } then when receiving the NTFY response;
Wherein, described (yyyyy-xxxxx) value also can directly be calculated by Media Gateway Controller and determine a concrete numerical value, is carried on then and is handed down to media gateway in the response message.
Signal (I) can be independent of the signal that is used for the delivery time synchronization parameter.
The message that is used to calculate loop time delay is exemplified below:
MG-->SoftSwitch:
NTFY?111979aaln/0@mgcp.huawei.com?MGCP?1.0
K:111978
O:H/co2
X:FFFFFFFF
SoftSwitch-->MG:
200?111979?OK
T:I/12345678;12345703;
Mutual by above-mentioned message, media gateway just can be in conjunction with the accurate computing network propagation delay time of the relevant information of self record values, thereby realize accurate Network Synchronization.
Among the present invention, the method that media gateway obtains network transfer delay also comprises: calculated the network transfer delay value of determining between itself and the media gateway by Media Gateway Controller, then, described network transfer delay value is handed down to media gateway by the message that sends to media gateway.
Among the present invention, in order to reduce time synchronization error, media gateway need regularly be carried out network time synchronization and be handled.The corresponding synchronous time interval can be configurable on MG, and when not exceeding synchronization of time intenals, MG does not handle the time synchronized parameter of receiving (T).
In addition, the signaling protocol among the present invention not only is confined to MGCP, also is applicable to H.248, H.323 waits other agreement.And time the issuing of time synchronization parameter among the present invention also is not limited only to adopt the message of appointing between any media gateway and the SoftSwitch to carry out the transmission of information such as time synchronized parameter by AUEP and NTFY response, all can realize the present invention.
The present invention also provides a kind of media gateway realization synchronous device, comprises as shown in Figure 5:
Lock in time acquisition module: be used for from Media Gateway Controller acquisition time synchronization parameter, the mode front that specifically obtains is described, and no longer describes in detail herein;
Network transfer delay processing module: be used for determining the network transfer delay value according to interactive messages between media gateway and the Media Gateway Controller, and utilize this network transfer delay value to adjust described time synchronized parameter value, then, give the media gateway synchronous processing module with adjusted time synchronized parameter value, thereby improve the synchronous accuracy of media gateway.
Media gateway synchronous processing module: be used for the current time that corresponding time synchronized parameter is set to media gateway, realize the synchronous of media gateway and network time.
In sum, the present invention can effectively reduce the complexity of NGN network and the complexity of gateway system; Simultaneously, can also reduce the overhead that the NTP/SNTP module is brought in the gateway; And can simplify the media gateway device configuration, reduce the O﹠M workload.
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 (11)
1, the synchronous method of media gateway realization in a kind of communication system is characterized in that, comprising:
A, media gateway are from Media Gateway Controller acquisition time synchronization parameter;
B, media gateway realize its synchronous with network time according to the time synchronized parameter of obtaining.
2, the synchronous method of media gateway realization in the communication system according to claim 1 is characterized in that described steps A comprises:
Media gateway by the expansion media gateway and Media Gateway Controller between interactive messages from Media Gateway Controller acquisition time synchronization parameter.
3, the synchronous method of media gateway realization in the communication system according to claim 2 is characterized in that described steps A comprises:
Audit message or heartbeat response message acquisition time synchronization parameter that media gateway sends to media gateway by the Media Gateway Controller of expanding.
4, according to the synchronous method of media gateway realization in claim 1, the 2 or 3 described communication systems, it is characterized in that described step B comprises:
Media gateway is according to the time synchronized parameter obtained and calculate the network transfer delay that obtains and realize its synchronous with network time.
5, the synchronous method of media gateway realization in the communication system according to claim 4 is characterized in that, the processing that described calculating obtains network delay comprises:
C, media gateway are determined the network transfer delay value according to the time value information calculations of carrying in the interactive messages between Media Gateway Controller and the media gateway;
Perhaps,
D, Media Gateway Controller calculate the network transfer delay value between itself and the media gateway, and are handed down to corresponding media gateway by message.
6, the synchronous method of media gateway realization in the communication system according to claim 5 is characterized in that described step C specifically comprises:
C1, media gateway send a request message to Media Gateway Controller, and the record transmitting time, wait for that Media Gateway Controller returns response message;
After C2, media gateway receive response message, calculate definite network transfer delay value according to the transmitting time value of time that receives response message and record.
7, the synchronous method of media gateway realization in the communication system according to claim 6 is characterized in that described step C also comprises:
The time that will receive the time of request message and send response message on Media Gateway Controller all is carried in the described response message and sends,
Media gateway is also determined the network transfer delay value according to the time of described reception request message and the Time Calculation of transmission response message after receiving response message;
Perhaps,
Media Gateway Controller is carried on its processing time value at request message in the response message and sends, and after media gateway receives response message, also calculates according to described processing time value and determines the network transfer delay value.
8, the synchronous method of media gateway realization in the communication system according to claim 5 is characterized in that interactive messages comprises between described Media Gateway Controller and the media gateway:
The notification message of expansion and the push-notification-answer message of expansion.
9, the synchronous method of media gateway realization in the communication system according to claim 4 is characterized in that described step B also comprises:
Media gateway is regularly according to the time synchronized parameter of obtaining from Media Gateway Controller and calculate the network transfer delay that obtains and realize its synchronous with network time.
10, the synchronous device of a kind of media gateway realization is characterized in that, comprising:
Lock in time acquisition module: be used for from Media Gateway Controller acquisition time synchronization parameter;
Media gateway synchronous processing module: be used for the current time that corresponding time synchronized parameter is set to media gateway, realize the synchronous of media gateway and network time.
11, the synchronous device of media gateway realization according to claim 10 is characterized in that, described device also comprises:
Network transfer delay processing module: be used for determining the network transfer delay value according to interactive messages between media gateway and the Media Gateway Controller, and utilize this network transfer delay value to adjust described time synchronized parameter value, then, give the media gateway synchronous processing module with adjusted time synchronized parameter value.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2005100886352A CN100474807C (en) | 2005-07-29 | 2005-07-29 | Method and device for realizing media gateway synchronization in communication system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2005100886352A CN100474807C (en) | 2005-07-29 | 2005-07-29 | Method and device for realizing media gateway synchronization in communication system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1866830A true CN1866830A (en) | 2006-11-22 |
CN100474807C CN100474807C (en) | 2009-04-01 |
Family
ID=37425722
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2005100886352A Active CN100474807C (en) | 2005-07-29 | 2005-07-29 | Method and device for realizing media gateway synchronization in communication system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100474807C (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2009097744A1 (en) * | 2008-02-02 | 2009-08-13 | Alcatel-Lucent Shanghai Bell Co., Ltd. | Gateway and base station based on content synchronization of window and its method |
CN101217356B (en) * | 2008-01-07 | 2011-03-23 | 中兴通讯股份有限公司 | A synchronous method of global safety variation within 3G mobile net elements |
CN101227381B (en) * | 2007-01-19 | 2012-01-18 | 杭州华三通信技术有限公司 | Method for packet switching network to transmit clock synchronizing information and circuit simulation communication equipment |
CN104104668A (en) * | 2013-04-12 | 2014-10-15 | 友讯科技股份有限公司 | Network Synchronization System and Method for Automatically Setting Through Physical Line |
CN107771387A (en) * | 2015-06-17 | 2018-03-06 | 汤姆逊许可公司 | System and method for the time and date in set device in the case of not accessing NTP |
CN112770382A (en) * | 2019-10-21 | 2021-05-07 | 阿里巴巴集团控股有限公司 | LoRa gateway, method, device and medium for realizing time synchronization of LoRa gateway |
-
2005
- 2005-07-29 CN CNB2005100886352A patent/CN100474807C/en active Active
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101227381B (en) * | 2007-01-19 | 2012-01-18 | 杭州华三通信技术有限公司 | Method for packet switching network to transmit clock synchronizing information and circuit simulation communication equipment |
CN101217356B (en) * | 2008-01-07 | 2011-03-23 | 中兴通讯股份有限公司 | A synchronous method of global safety variation within 3G mobile net elements |
WO2009097744A1 (en) * | 2008-02-02 | 2009-08-13 | Alcatel-Lucent Shanghai Bell Co., Ltd. | Gateway and base station based on content synchronization of window and its method |
US8509240B2 (en) | 2008-02-02 | 2013-08-13 | Alcatel Lucent | Gateway, base station and method for window-based content synchronization |
CN104104668A (en) * | 2013-04-12 | 2014-10-15 | 友讯科技股份有限公司 | Network Synchronization System and Method for Automatically Setting Through Physical Line |
CN107771387A (en) * | 2015-06-17 | 2018-03-06 | 汤姆逊许可公司 | System and method for the time and date in set device in the case of not accessing NTP |
US10979541B2 (en) | 2015-06-17 | 2021-04-13 | Interdigital Madison Patent Holdings, Sas | System and method for setting time and date in a device without access to network time protocol |
CN107771387B (en) * | 2015-06-17 | 2022-10-28 | 交互数字麦迪逊专利控股公司 | System and method for setting time and date in a device |
CN112770382A (en) * | 2019-10-21 | 2021-05-07 | 阿里巴巴集团控股有限公司 | LoRa gateway, method, device and medium for realizing time synchronization of LoRa gateway |
Also Published As
Publication number | Publication date |
---|---|
CN100474807C (en) | 2009-04-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1866830A (en) | Method for realizing media gateway synchronization in communication system | |
CN1949879A (en) | Lip synchronous method for multimedia real-time transmission in packet network and apparatus thereof | |
WO2015053530A1 (en) | Method and apparatus for content delivery | |
CN101079742A (en) | Data synchronization method and system between disaster tolerance home user servers | |
CN101057439A (en) | Transmitter, receiver and communication system | |
CN1585382A (en) | Apparatus and method for processing packets in wireless local area network access point | |
CN1780354A (en) | Network communication system | |
WO2016119560A1 (en) | Self-adaptive audio transmission method and device | |
WO2008045775A3 (en) | Integrating sip control messaging into existing communication center routing infrastructure | |
RU2013156404A (en) | DEVICE AND METHODS FOR COMPRESSION HEAD OF ACCESS MANAGEMENT | |
CN106507024B (en) | A kind of self-adaption code rate method of adjustment and device | |
WO2009071029A1 (en) | Synchronization system and method of time information and related equipment | |
CN1706124A (en) | Synchronization method and system for transmitting voice data in a mobile communication system | |
JP2016503623A5 (en) | ||
CN1812397A (en) | Network management interface adapter and information interacting method | |
CN1889527A (en) | Load sharing apparatus and method for realizing multi-chain circuit transmission | |
WO2013005996A3 (en) | Apparatus for transmitting and receiving data by selectively using plurality of heterogeneous networks on basis of fixed host address and method therefor | |
CN1199493C (en) | Wireless network with user time synchronization | |
CN1479536A (en) | Method and device dfor realizing synchronization of interface business between base stution controller and base stations in radio commumnication system | |
CN1248517C (en) | System and method for synchronous service GPRs supporting node and gateway GPRs supporting mode | |
CN1741480A (en) | Method and equipment for detecting signalling or media path fault in next generation method | |
CN101047625A (en) | Strategy route device and method | |
WO2010102565A1 (en) | Method, apparatus and system for time synchronization | |
CN1941819A (en) | Method and system for transmitting speech service in Ethernet | |
CN1863207A (en) | Clock synchronous method and system for communication network |
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 |