CN101383880B - Media gateway log system and log outputting method - Google Patents

Media gateway log system and log outputting method Download PDF

Info

Publication number
CN101383880B
CN101383880B CN2008102165484A CN200810216548A CN101383880B CN 101383880 B CN101383880 B CN 101383880B CN 2008102165484 A CN2008102165484 A CN 2008102165484A CN 200810216548 A CN200810216548 A CN 200810216548A CN 101383880 B CN101383880 B CN 101383880B
Authority
CN
China
Prior art keywords
daily record
log
output
media gateway
agent module
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.)
Active
Application number
CN2008102165484A
Other languages
Chinese (zh)
Other versions
CN101383880A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN2008102165484A priority Critical patent/CN101383880B/en
Publication of CN101383880A publication Critical patent/CN101383880A/en
Application granted granted Critical
Publication of CN101383880B publication Critical patent/CN101383880B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a media gateway log system and a log output method thereof. A media packet snap is output as a log event to serve as an evidence for analyzing a media communication state to analyze and judge the reason of a media fault, thereby providing an effective measure for locating the media fault in media gateway engineering maintenance and having a great significance in media gateway starting maintenance. Further, during the log output, the invention also performs flux control so as to realize the allocation of bandwidth according to needs and ensure the normal output of the media packet snap and the normal operation of a service function; and the invention adopts a method for storing a route redundancy backup to reduce the probability of log loss resulted from the blockage between a media gateway and a log server, thereby improving the reliability.

Description

Media gateway log system and log-output method thereof
[technical field]
The present invention relates to the WMG technology, relate in particular to the maintenance of WMG.
[background technology]
In actual beginning running, the phenomenon of phone medium single-pass or no audio takes place in WMG sometimes, and how fast and effeciently locating this type of media defect becomes a difficult point in the engineering maintenance.Log system is used to recording system information, for system carries out misarrangement, optimization, adjustment foundation is provided.Because communication network bandwidth resource-constrained (generally being 100-M network Ethernet) between WMG and the log server; And WMG itself is made up of a lot of networking telephone VOIP processing modules; Various days aim at outputing in real time log server in the whole log system; Like abnormal log, trace log etc., if therefore some bandwidth requirements of WMG output are used than higher daily record, incomplete problem may appear preserving.
[summary of the invention]
Main purpose of the present invention is: a kind of effective positioning media gateway fails is provided, the media gateway log output system and the log-output method thereof that maintain easily.
For realizing above-mentioned purpose, the present invention proposes a kind of media gateway log system, comprises WMG and log server, and said WMG comprises VOIP driver module, journaling agent module and local memory module; Said VOIP driver module is exported daily record through said journaling agent module; Comprise medium bag snapshot in the said daily record.
Above-mentioned media gateway log system, said VOIP driver module be through calling logging application interface, issues the journaling agent module after the voice medium package of specified format is dressed up asynchronous message; The journaling agent module receives medium bag snapshot data output request, and medium bag snapshot is output as daily record.
Above-mentioned media gateway log system, before medium bag snapshot is output as daily record, the connection status of said journaling agent module inquiry and log server; When connecting just often, daily record outputs to log server; Connect when unusual, daily record outputs to said local memory module.
Above-mentioned media gateway log system, said journaling agent module is provided with the daily record switch; Said journaling agent module is read this daily record on off state after receiving medium bag snapshot data output request, then returns for closing like this daily record on off state, then allows daily record output like this daily record on off state for opening.Or above-mentioned media gateway log output system, said journaling agent module is provided with the daily record switch; After said journaling agent module receives medium bag snapshot data output request, through the journal function of this other module of daily record switch temporary close.
Above-mentioned media gateway log system, said journaling agent module is provided with the CPU usage thresholding; Reach this thresholding like CPU usage, then return, as do not reach this thresholding and then allow daily record output.
Simultaneously, the present invention proposes a kind of media gateway log output intent, medium bag snapshot is exported as daily record.
Above-mentioned media gateway log output intent comprises the steps:
11) the VOIP driver module of WMG is through calling logging application interface, issues the journaling agent module after the voice medium package of specified format is dressed up asynchronous message;
12) the journaling agent module receives medium bag snapshot data output request, and medium bag snapshot is output as daily record.
Above-mentioned media gateway log output intent in the said step 12), before medium bag snapshot is output as daily record, also comprises the steps: to inquire about the connection status with log server; When connecting just often, daily record outputs to log server; Malunion often, daily record outputs to local memory module.
Above-mentioned media gateway log output intent in the said step 12), after said journaling agent module receives medium bag snapshot data output request, also comprises the step of judging the output authority: read the daily record on off state, then return for closing like this daily record on off state; For opening, then allow daily record output like this daily record on off state.
Above-mentioned media gateway log output intent is characterized in that: after said journaling agent module receives medium bag snapshot data output request, through the journal function of other module of daily record switch temporary close.
Above-mentioned media gateway log output intent; It is characterized in that: in the said step 12); After said journaling agent module receives medium bag snapshot data output request; Also comprise the step of judging the output authority: whether reach the CPU usage thresholding like CPU usage, then return, as do not reach this thresholding and then allow daily record output.
Owing to adopted above scheme; Media gateway log system of the present invention; Through with the method for medium bag snapshot, can be used as the analysis foundation of medium communication state, with the reason of this analysis and judgement media defect as log event output; For positioning media fault in the WMG engineering maintenance provides effective means, WMG beginning is safeguarded that very big meaning is arranged.
Further, when the present invention exports in daily record, carry out flow control, can realize bandwidth on demand, guarantee the normal output of medium bag snapshot and the operation of regular traffic function; Adopt the method for store path redundancy backup among the present invention, having reduced communicates by letter between WMG and the log server blocking-up takes place and causes the probability that daily record is lost, and has improved reliability.
[description of drawings]
Fig. 1 is the overall software architecture diagram of the embodiment of the invention.
Fig. 2 is the software overview flow chart of the embodiment of the invention.
[embodiment]
Below through concrete embodiment and combine accompanying drawing that the present invention is described in further detail.
Please refer to shown in Figure 1ly, the media gateway log system that this is routine comprises some WMGs and log server; WMG comprises VOIP driver module, journaling agent module and local memory module; In this routine media gateway log system, medium bag snapshot is exported as log event.The VOIP driver module is exported daily record through the journaling agent module; The journaling agent module can be selected the outgoing route of daily record, and preferential selection will be mail to log server as the medium bag snapshot of daily record output; If Communication Block, then journaling agent module selection outgoing route is local memory module; In case WMG and log server communication recovery, the daily record outgoing route can switch to log server again.
Please refer to shown in Figure 2, the media gateway log output intent that this is routine, concrete steps are following:
1) the VOIP driver module is through calling logging application interface (API), issues the journaling agent module after the voice medium package of specified format is dressed up asynchronous message.
2) the daily record flow control of bandwidth on demand: the journaling agent module receives medium bag data output request; Its legitimacy of verification at first; Judged whether the output authority; The journaling agent module is set up differentiation of CPU usage thresholding and daily record switch, comprises the output authority differentiation that the CPU usage thresholding is differentiated and the daily record switch is differentiated.
The process of daily record flow control is following:
The media gateway log proxy module receives log request message, realizes the daily record flow control through control of authority, and authority comprises that the CPU usage thresholding is differentiated and the daily record switch is differentiated.
The CPU usage thresholding is differentiated: database disposes the CPU thresholding respectively to different module in advance, and under the very high situation of telephone traffic, current C PU occupancy surpasses threshold value, for guaranteeing regular traffic function, closing journal output function; When CPU usage falls back to below the thresholding, then open the daily record output function again.
The daily record switch is differentiated: database provides the configuration of module daily record switch; The user can control according to actual needs; Can be very big like medium bag snapshot situation log information flow; Consider that the AM/BAM communication bandwidth has only 100M, journal function that can be through this other module of switch temporary close follow-uply reactivates again.If this daily record switch is in closed condition, then abandon medium bag snapshot daily record output.
3) standby redundancy in log store path: according to the communication conditions between WMG and the log server, the journaling agent module can be selected medium bag outgoing route, and preferential the selection mail to log server with the medium bag.
The standby redundancy strategy in log store path:
Before the media gateway log proxy module sends daily record data, need the communications status between judgement earlier and the log server, if communication is normal, then the daily record outgoing route is chosen as log server; If Communication Block, then the daily record outgoing route is chosen as the WMG local storage medium, like hard disk or reserved memory; Consider that WMG storage resources itself is limited, the time of preservation and capacity are limited, if Communication Block overlong time and log information amount are very big again, when exceeding storage medium permission use maximum, then abandon follow-up data.In case with the log server communication recovery, the daily record outgoing route can switch to log server again.
Above content is to combine concrete preferred implementation to the further explain that the present invention did, and can not assert that practical implementation of the present invention is confined to these explanations.For the those of ordinary skill of technical field under the present invention, under the prerequisite that does not break away from the present invention's design, can also make some simple deduction or replace, all should be regarded as belonging to protection scope of the present invention.

Claims (11)

1. a media gateway log system is characterized in that, comprises WMG and log server, and said WMG comprises VOIP driver module, journaling agent module and local memory module;
Said VOIP driver module is through calling logging application interface, issues the journaling agent module after the voice medium package of specified format is dressed up asynchronous message;
Said VOIP driver module is exported daily record through said journaling agent module; Comprise medium bag snapshot in the said daily record.
2. media gateway log system as claimed in claim 1 is characterized in that: the journaling agent module receives medium bag snapshot data output request, and medium bag snapshot is output as daily record.
3. media gateway log system as claimed in claim 2 is characterized in that: before medium bag snapshot is output as daily record, and the connection status of said journaling agent module inquiry and log server; When connecting just often, daily record outputs to log server; Connect when unusual, daily record outputs to said local memory module.
4. like claim 2 or 3 described media gateway log systems, it is characterized in that: said journaling agent module is provided with the daily record switch; Said journaling agent module is read this daily record on off state after receiving medium bag snapshot data output request, then returns for closing like this daily record on off state, then allows daily record output like this daily record on off state for opening.
5. like claim 2 or 3 described media gateway log systems, it is characterized in that: said journaling agent module is provided with the daily record switch; After said journaling agent module receives medium bag snapshot data output request, through the journal function of this other module of daily record switch temporary close.
6. like claim 2 or 3 described media gateway log systems, it is characterized in that: said journaling agent module is provided with the CPU usage thresholding; Reach this thresholding like CPU usage, then return, as do not reach this thresholding and then allow daily record output.
7. media gateway log output intent, it is characterized in that: medium bag snapshot is exported as daily record, and said method comprises the steps:
11) the VOIP driver module of WMG is through calling logging application interface, issues the journaling agent module after the voice medium package of specified format is dressed up asynchronous message;
12) the journaling agent module receives medium bag snapshot data output request, and medium bag snapshot is output as daily record.
8. media gateway log output intent as claimed in claim 7 is characterized in that: in the said step 12), before medium bag snapshot is output as daily record, also comprise the steps: to inquire about the connection status with log server; When connecting just often, daily record outputs to log server; Malunion often, daily record outputs to local memory module.
9. like claim 7 or 8 described media gateway log output intents; It is characterized in that: in the said step 12); After said journaling agent module receives medium bag snapshot data output request; Also comprise the step of judging the output authority: read the daily record on off state, then return for closing like this daily record on off state; For opening, then allow daily record output like this daily record on off state.
10. like claim 7 or 8 described media gateway log output intents, it is characterized in that: in the said step 12), after said journaling agent module receives medium bag snapshot data output request, through the journal function of this other module of daily record switch temporary close.
11. like claim 7 or 8 described media gateway log output intents; It is characterized in that: in the said step 12); After said journaling agent module receives medium bag snapshot data output request; Also comprise the step of judging the output authority: read CPU usage and whether reach the CPU usage thresholding, then return in this way, as do not reach this thresholding and then allow daily record output.
CN2008102165484A 2008-09-26 2008-09-26 Media gateway log system and log outputting method Active CN101383880B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008102165484A CN101383880B (en) 2008-09-26 2008-09-26 Media gateway log system and log outputting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008102165484A CN101383880B (en) 2008-09-26 2008-09-26 Media gateway log system and log outputting method

Publications (2)

Publication Number Publication Date
CN101383880A CN101383880A (en) 2009-03-11
CN101383880B true CN101383880B (en) 2012-05-23

Family

ID=40463493

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008102165484A Active CN101383880B (en) 2008-09-26 2008-09-26 Media gateway log system and log outputting method

Country Status (1)

Country Link
CN (1) CN101383880B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101826984A (en) * 2010-04-08 2010-09-08 中兴通讯股份有限公司 Log information processing method and device thereof
US8849296B2 (en) 2011-06-27 2014-09-30 Empire Technology Development Llc Dynamic optimization of the uplink and downlink bandwidths based on calendar data
CN104104667B (en) * 2013-04-15 2019-01-08 中兴通讯股份有限公司 Improve the method and device of networking telephone VOIP voice quality
CN106357454B (en) * 2016-10-08 2020-06-16 武汉斗鱼网络科技有限公司 Log system control device and control method thereof
CN111416767A (en) * 2020-03-16 2020-07-14 广东科徕尼智能科技有限公司 Log output method, device and storage medium of edge intelligent gateway
CN113254414A (en) * 2021-06-29 2021-08-13 天聚地合(苏州)数据股份有限公司 Interface call log generation method and device, storage medium and equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101102220A (en) * 2007-07-24 2008-01-09 中兴通讯股份有限公司 A method for capturing information snap in wireless communication system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101102220A (en) * 2007-07-24 2008-01-09 中兴通讯股份有限公司 A method for capturing information snap in wireless communication system

Also Published As

Publication number Publication date
CN101383880A (en) 2009-03-11

Similar Documents

Publication Publication Date Title
CN101383880B (en) Media gateway log system and log outputting method
CN102413046B (en) Method for forwarding flow by means of virtual router redundancy protocol backup set and equipment
CN100456701C (en) Apparatus and method for improving reliability of communication system and communication system thereof
CN102868552A (en) Data sending method
CN100484004C (en) Charging buffer storage system of broad band network cut-in service device and method thereof
CN109639503B (en) Abnormal message tracing implementation method based on substation process layer network equipment
CN103139018A (en) Network card condition monitoring and transmission control protocol (TCP) communication method in dispatching and transformer substation integrated system
CN104350488A (en) Systems and methods for selective data redundancy elimination for resource constrained hosts
CN101436993A (en) Method, equipment and system for grabbing package
CN102006314B (en) Multiserver self-adapting task scheduling method and device
CN102510398B (en) Request concurrent processing method and device, and server
CN110445639B (en) Hot standby method and device for server
CN101494598A (en) Flow control method, device and system
CN113596083B (en) High-availability cloud communication call recovery method and system based on state tracking
US9042396B2 (en) System and method for processing multimedia messaging service
CN111083060B (en) Network flow control method
CN111131095B (en) Message forwarding method and device
CN113992609A (en) Method and system for processing multilink service data disorder
CN100514920C (en) Next-generation network system and service quality failure positioning method in next-generation network
CN112383471A (en) Method, device and equipment for managing knife box link and machine readable storage medium
CN101588402B (en) Method for receiving, storing and managing mobile terminal short message
CN114826957B (en) Redundancy message detection method applied to lossless communication network
CN112637079B (en) Multi-line flow impact control method and device
CN112685151B (en) Resource scheduling system based on optimized weight model
CN201234265Y (en) Diskless network terminal system

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