WO2012079324A1 - 一种媒体网关及其检测高速通道资源的方法 - Google Patents

一种媒体网关及其检测高速通道资源的方法 Download PDF

Info

Publication number
WO2012079324A1
WO2012079324A1 PCT/CN2011/072694 CN2011072694W WO2012079324A1 WO 2012079324 A1 WO2012079324 A1 WO 2012079324A1 CN 2011072694 W CN2011072694 W CN 2011072694W WO 2012079324 A1 WO2012079324 A1 WO 2012079324A1
Authority
WO
WIPO (PCT)
Prior art keywords
test
module
command
resource
media gateway
Prior art date
Application number
PCT/CN2011/072694
Other languages
English (en)
French (fr)
Inventor
王月菊
郑玉新
王一
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2012079324A1 publication Critical patent/WO2012079324A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/10Architectures or entities
    • H04L65/102Gateways
    • H04L65/1023Media gateways
    • H04L65/103Media gateways in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Definitions

  • the invention relates to a media gateway technology, in particular to a media gateway and a detection high speed channel thereof
  • PSTN Public Switched Telephone Network
  • NTN Next Generation Network
  • TDM time division multiplexing
  • the docking problem often involves two different devices, and the correspondence between the HW resources and the functional resources in the circuit switching system is complicated, and there is no means such as logging and packet capture. Therefore, the positioning is troublesome, and it is impossible to specifically determine whether it is a media gateway problem, or The problem with the end device.
  • the methods and disadvantages of the prior art to solve the problem are as follows: 1. Using third-party tools, such as expensive signaling devices, E1/T1 testers, recording devices, oscilloscopes, etc.; It is inconvenient to carry to the site; Third, in the process of testing, it is often necessary to interrupt the existing network business, connect the test equipment, and the wiring and operation are more troublesome. In special cases, the hardware flying line is also needed. 4.
  • the on-site networking is complicated. Especially in the case where the cable distance is long and the number is large, the workload is large. Summary of the invention
  • the main purpose of the present invention is to provide a media gateway and a method for detecting the HW resource, and implement automatic testing of the media gateway HW resource.
  • a media gateway includes: an operation and maintenance module, a diagnostic test module, a circuit switch module, and a test execution module;
  • the operation and maintenance module is configured to receive a test option input by the user and perform command analysis to obtain a test command; parse the result of the comparison reported by the diagnostic test module to display the test result; and the diagnostic test module is configured to determine and analyze the test command; Comparing the test data reported by the test execution module with the test original data, and reporting the comparison result to the operation and maintenance module; the circuit switching module is configured to connect the HW resources to be tested according to the analysis result of the diagnostic test module;
  • the test execution module is configured to test the connected HW resource according to the test command analyzed by the diagnostic test module, and report the test data to the diagnostic test module.
  • the operation and maintenance module is specifically configured to package a test option input by the user, obtain a test command, and send the test command to the diagnostic test module;
  • the diagnostic test module is specifically configured to perform resource validity judgment on the test command, and when the resource does not meet the validity requirement, return a test parameter exception message to the operation and maintenance module; when the resource meets the validity requirement, further A test option analysis is performed to generate a connection command containing source and destination information of the HW resource to be tested and sent to the circuit switch module.
  • circuit switching module is specifically configured to: according to the source and destination information of the HW resource that needs to be tested in the received connection command, connect the HW resource to be tested, and return a connection completion message to the diagnostic test. Module.
  • the diagnostic test module is specifically configured to determine whether the connection completion message is received, and if yes, send the analyzed test command to the test execution module, and when testing a long timer setting, otherwise, sending a connection command to the circuit switching module again; the test execution module is specifically configured to receive the test command, and perform setting of a timer for reporting test data, and use the timer The duration is a period, and the test data is reported to the diagnostic test module.
  • the diagnostic test module sends a test end command to the test execution module when receiving the test duration timer message or the end test message sent by the operation and maintenance module;
  • the test execution module stops the current test and releases the currently tested HW resource.
  • a method for a media gateway to detect an HW resource includes:
  • the connected HW resource is tested, and the received test data is compared with the test original data, and the comparison result is reported for display.
  • the operation and maintenance module of the media gateway packages the test options input by the user, obtains test commands, and sends them to the diagnostic test module;
  • the determining and analyzing the test command is: the diagnostic test module of the media gateway performs resource validity judgment on the test command, and when the resource does not meet the validity requirement, returns a test parameter abnormal message to the operation and maintenance of the media gateway. Module; When the resource meets the validity requirements, further test option analysis is performed to generate a connection command containing the source and destination information of the HW resource to be tested.
  • the HW resource to be tested is connected to: the circuit switching module connects the HW resource to be tested according to the source and destination information of the HW resource to be tested in the received connection command, and returns a connection completion message to Diagnostic test module. Further, before the testing, according to the test command, the connected HW resource is tested, the method further includes:
  • the diagnostic test module determines whether the connection completion message is received, and if yes, sends the analyzed test command to the test execution module, and sets a timer for the test duration; otherwise, the connection command is resent to the circuit switch module;
  • the test execution module receives the test command, and performs setting of a timer for reporting the test data, and reports the test data to the diagnostic test module according to the duration of the timer.
  • the method further includes:
  • the current test is stopped, and the currently tested HW resource is released.
  • the result of the report comparison is: when the test data received by the diagnostic test module is consistent with the test original data, the message that the HW resource is normal is reported to the operation and maintenance module in a format that can be parsed by the operation and maintenance module; The HW resource exception message is sent to the operation and maintenance module.
  • the media gateway provided by the present invention and the method for detecting the HW resource, when the media gateway is connected with the PSTN side device, the signaling link is abnormal, the receiving number when the phone is not connected, the abnormality of the playing function, and the call is connected.
  • the HW resource to be tested by the media gateway is tested by parsing the test option input by the user, and the working condition of the HW resource is parsed into a user-friendly description according to the test result. Displaying, quickly checking whether the media gateway is normal, and locating the faulty media gateway HW resource segment, realizing automatic detection of the media gateway HW resources, which is convenient and efficient.
  • FIG. 1 is a schematic structural diagram of a media gateway of the present invention
  • FIG. 2 is a schematic flowchart of a method for detecting an HW resource by a media gateway according to the present invention
  • FIG. 3 is a schematic flowchart of a specific embodiment of a method for detecting a WW resource by a media gateway according to the present invention
  • the basic idea of the present invention is: When an abnormality occurs between the media gateway and the PSTN side device, the HW resource segment of the media gateway to be checked is determined according to the test option input by the user, and the HW to be tested is determined by the connection function of the circuit switching module. The resource is connected and tested, and the working of the media gateway is determined based on the comparison between the received data (test data) and the transmitted data (test raw data).
  • Figure 1 shows the structure of the media gateway of the present invention.
  • the media gateway includes: an operation and maintenance module 10, a diagnostic test module 20, a test execution module 30, and a circuit switching module 40.
  • the module 10 is configured to receive a test option input by the user and perform command analysis to obtain a test command, parse the result of the comparison reported by the diagnostic test module 20, and display the test result.
  • the diagnostic test module 20 is configured to determine and analyze the test command.
  • the test data reported by the test execution module 30 is compared with the test original data, and the comparison result is reported to the operation and maintenance module 10;
  • the circuit switching module 40 is configured to: according to the analysis result of the diagnostic test module 20, the HW resource to be tested.
  • the test execution module 30 is configured to test the connected HW resources according to the test command analyzed by the diagnostic test module 20, and report the test data to the diagnostic test module 20.
  • operation and maintenance module 10 is specifically configured to package the test option input by the user, obtain a test command, and send the test command to the diagnostic test module 20;
  • the diagnostic test module 20 is specifically configured to perform resource validity judgment on the test command, and when the resource does not meet the validity requirement, return a test parameter abnormal message to the operation and maintenance module 10; when the resource meets the validity requirement Further, test option analysis is performed to generate a connection command including source and destination information of the HW resource to be tested, and sent to the circuit switching module 40. Further, the circuit switching module 40 is specifically configured to: according to the source and destination information of the HW resource that needs to be tested in the connection command, connect the HW resource that needs to be tested, and return a connection completion message to the diagnostic test. Module 20.
  • the diagnostic test module 20 further determines whether the connection completion message is received, and if yes, sends the analyzed test command to the test execution module 30, and sets a timer for testing the duration, otherwise, resends the connection.
  • the command is sent to the circuit switching module 40.
  • the test execution module 30 is specifically configured to receive the test command, and perform setting of a timer for reporting the test data to the diagnostic test module 20, and use the duration of the timer as a period.
  • the test data obtained by the test is reported to the diagnostic test module 20.
  • the HW resource normal message is reported to the operation and maintenance module 10 in a format that can be parsed by the operation and maintenance module 10; otherwise, the HW resource abnormality message is reported.
  • the operation and maintenance module 10 receives the result returned by the diagnostic test module 20, parses it, and displays it in the user interface in a description language that is easy for the user to understand; specifically, the result of the analysis by the operation and maintenance module 10 is easy for the user to understand.
  • the language form may include a task operation abnormal result, an HW resource abnormality, and a normal result, etc., wherein the task operation abnormal result specifically includes a test task timeout no response, a parameter input error, and the like.
  • the diagnostic test module 20 receives the test duration timer message or the end test message sent by the operation and maintenance module 10, the test end command is sent to the test execution module 30; accordingly, the test execution module 30 stops the current Test and release the currently tested HW resources.
  • FIG. 2 is a flowchart of a method for detecting a HW resource by a media gateway according to the present invention. As shown in FIG. 2, the method includes the following steps:
  • Step 201 Receive a test option input by the user and perform command parsing to obtain a test command. Specifically, in this step, a test option input by the operation and maintenance module of the media gateway to the user The command is parsed and packaged into a test command that can be recognized by the diagnostic test module of the media gateway, and sent to the diagnostic test module.
  • the test options that the operation and maintenance module can provide to the user input include: HW resource segment selection, test type, and test direction. , test raw data sources and other options.
  • Step 202 Determine and analyze the test command, and connect the HW resource to be tested.
  • the diagnostic test module first performs resource validity judgment according to the command structure parameter in the test command, when the resource does not meet the validity requirement.
  • the test parameter exception message is returned to the operation and maintenance module, the test is terminated; when the resource meets the validity requirement, the test option analysis of the test command is continued, such as analyzing the execution object of the test command, etc., and then generating and transmitting the There is a connection command for the source and destination information of the HW resource to be tested to the circuit switch module;
  • the circuit switching module connects the HW resources to be tested according to the source and destination information of the HW resources to be tested included in the connection command, implements data transmission and reception between the HW resource segments to be tested, and returns a connection completion message to the diagnostic test.
  • the diagnostic test module determines whether a connection completion message is received, and if not, resends the connection command to the circuit switching module; if yes, performs a timer setting of the test duration, and sends the analyzed test command to the test execution module;
  • the timer of the duration is used to determine the timing of the test task. The time can be set according to the actual situation to avoid the long-term execution of the test task and affect the normal operation of the user service.
  • Step 203 Perform, according to the analyzed test command, test the connected HW resource, compare the received data with the sent test original data, and report the comparison result for display;
  • the test execution module of the media gateway performs preparation for the HW resource test, enters a specific test process, and reports the test data to the diagnostic test module.
  • the test execution module may also be configured to report the test.
  • the timer duration of the data, and the test data obtained by the test is reported to the diagnostic test module according to the duration of the timer;
  • the diagnostic test module compares the received data, that is, the test data with the sent test raw data, and returns the compared result to the operation and maintenance module according to the format that the operation and maintenance module can parse; the operation and maintenance module parses the result, and
  • the user interface is displayed in a description language that is easy for the user to understand; wherein when the test raw data is the receiving user configuration in step 201, the test raw data here is the data input by the user; when the original data source is tested in step 201, the system automatically generates the data. At this time, the test raw data here can automatically generate the required test raw data through the diagnostic test module according to the pre-stored database.
  • the digital signal processor DSP HW resource of the relay side media gateway is connected to the specific circuit of the relay.
  • the relay side media gateway can be The playback DSP HW resource is directly connected to the DSP, and the DSP HW resource issues the test original data. If the data received by the DSP, that is, the test data is inconsistent with the test original data, it is determined that the playback DSP HW resource of the media gateway is abnormal.
  • the step further includes: when the timer of the test duration expires, generating a test duration timer message, when the diagnostic test module receives the test duration timer message or the operation and maintenance module sends an end test message according to the user input, sending the test End the command to the test execution module and end the current test task.
  • the embodiment includes the following steps:
  • Step 301 The operation and maintenance module of the media gateway performs command parsing according to the specific test option selected by the user, and sends the parsed test command to the diagnostic test module.
  • the operation and maintenance module performs command parsing on the test option input by the user, and packages the test command that can be recognized by the diagnostic test module, and sends the test command to the diagnostic test module; wherein the operation and maintenance module can provide the test input to the user.
  • Options include: HW resource segment selection, test type, test direction, test raw data source, and more.
  • Step 302 The diagnostic test module judges and analyzes the received test command, and sends and receives the test command. Continue command to the circuit switch module;
  • the diagnostic test module first performs resource validity determination according to the command structure parameter in the test command, for example, determining whether the parameter is out of range, whether the input resource is online, whether it is operable, etc.; If the validity requirement is not met, the test parameter exception message is returned to the operation and maintenance module to end the test; when the resource meets the validity requirement, the test option analysis of the test command is continued, such as analyzing the execution object of the test command, etc.
  • a connection command containing source and destination information of the HW resource to be tested is generated and transmitted to the circuit switching module.
  • Step 303 The circuit switching module performs a connection of the HW path according to the connection command, and returns a connection completion message to the diagnostic test module after the connection is successful;
  • the circuit switching module connects the HW resources to be tested according to the source and destination information of the HW resources to be tested included in the connection command, and implements data transmission and reception between the HW resource segments to be tested, and Return the connection completion message to the diagnostic test module.
  • Step 304 The diagnostic test module receives the connection completion message, and if yes, performs step 305, otherwise returns to step 302 to perform the connection command transmission again;
  • Step 305 The diagnostic test module performs a timer setting of the test duration, and sends the analyzed test command to the test execution module.
  • the timer of the test duration refers to the timing of the duration of the entire test. To ensure normal service, you need to set the timer for each test duration according to the actual situation.
  • Step 306 After receiving the test command, the test execution module performs related preparation of the HW resource test, enters a specific test process, and reports the test data to the diagnostic test module.
  • the test execution module sets a timer for reporting the test data according to the received test command, and saves the parameters included in the test command; and further determines the test type, the test data source, and the test data source in the test parameter. After testing the direction of the test and the length of the test, etc. The specific test process is performed, and the received data, that is, the test data is periodically reported to the diagnostic test module according to the set timer duration of the test data.
  • the above test type is to determine the test type as the receive type.
  • the original data source of the test is the receiving user configuration, or the system automatically generates; and because of the bidirectional nature of the HW resources, it is also necessary to distinguish which side of the test is tested, for example, the HW resources are divided into systems.
  • Side to the internal direction of the media gateway
  • interface side the direction of the docking device of the outgoing media gateway
  • the test raw data here is the data input by the user
  • the test raw data can automatically generate the required test raw data through the pre-stored database through the diagnostic test module.
  • Step 307 The diagnostic test module compares the received data with the sent test original data, and reports the compared result to the operation maintenance module in a format that can be parsed by the operation and maintenance module;
  • the diagnostic test module compares the received data, that is, the test data with the sent test original data, if the two are consistent and the tested HW resources are normal, the diagnostic test module returns according to the parameters of the saved test commands.
  • a macro is defined for the operation and maintenance module.
  • Step 308 the operation and maintenance module receives the result reported by the diagnostic test module, parses it, and displays it in the user interface in a description language that is easy for the user to understand, and the test process ends;
  • the result of the operation and maintenance module parsing is a language form that is easy for the user to understand, and may include a task operation abnormal result, an HW resource abnormality, and a normal result, etc., wherein the task operation abnormal result specifically includes a test task timeout no response, a parameter input error, and the like. .
  • Step 309 When the diagnostic test module receives the test duration timer message or the end test message sent by the operation and maintenance module, sending a test end command to the test execution module;
  • a test duration timer message is generated; the end test message may be an end test message sent by the operation and maintenance module according to the received user input; wherein, the user may Need, or operate maintenance modules in the user community After the test result displayed by the face locates the faulty HW resource, the input of the end test message is performed.
  • the step further includes: when the diagnostic test module receives the message command of the user input to continue the test, proceeding to step 301.
  • step 310 the test execution module stops the current test, releases the resource, and ends the test process.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Telephonic Communication Services (AREA)

Abstract

本发明提供了一种媒体网关及其检测HW资源的方法,所述方法包括:接收用户输入的测试选项并进行命令解析,得到测试命令;判断分析所述测试命令,根据分析结果将需要测试的HW资源进行连接;根据分析后的测试命令,对连接的HW资源进行测试,并将接收到的测试数据与测试原始数据进行比较,上报比较的结果进行显示。本发明提供的媒体网关及其检测HW资源的方法,当媒体网关与PSTN侧设备对接的时候,出现信令链路异常等功能异常情况时,通过解析用户输入的测试选项,对需要测试的HW资源进行测试,根据测试得到的结果将HW资源的工作情况解析为用户易理解的描述进行显示,快速定位出故障HW资源段,实现了媒体网关HW资源的自动化检测,较易实现,且效率较高。

Description

一种媒体网关及其检测高速通道资源的方法 技术领域
本发明涉及媒体网关技术, 尤其涉及一种媒体网关及其检测高速通道
( High Way, HW ) 资源的方法。 背景技术
在现代通信系统中, 公共交换电话网 ( Public Switched Telephone Network , PSTN )平滑演进过渡到下一代网络 ( Next Generation Network , NGN )是现代网络改造的最佳方案, PSTN是基于时分复用 ( Time Division Multiplex, TDM )技术的, 媒体流经过媒体网关全部转换为 IP媒体流, 通 过 IP宽带数据网络发送到指定的对端网关设备。
在 PSTN通过媒体网关和 NGN的对接过程中, 经常会产生各种各样的 对接问题, 比如信令交互异常、 互联网协议语音技术(Voice Over Internet Protocol, VOIP )电话媒体单通或双不通、 放音收号等功能异常, 严重制约 了工程的交付质量和交付效率。
而对接问题往往涉及到两种不同的设备, 且电路交换系统中 HW资源 和功能资源对应关系复杂, 无日志和抓包等手段, 因此定位比较麻烦, 无 法具体确定是媒体网关的问题, 还是对端设备的问题。 而目前现有技术解 决该问题的方法及其缺点为: 一、 借助第三方工具, 比如昂贵的信令仪、 E1/T1测试仪、 录音设备、 示波器等等; 二、 测试工具一般比较庞大, 携带 到现场不方便; 三、 在进行测试的过程中, 往往需要中断现网业务, 连接 测试仪器, 且接线和操作较为麻烦, 特殊情况时, 还需要硬件飞线; 四、 现场组网复杂, 尤其在线缆距离较远、 数目较多的情况下, 工作量较大。 发明内容
有鉴于此, 本发明的主要目的在于提供一种媒体网关及其检测 HW资 源的方法, 实现了媒体网关 HW资源的自动化测试。
为达到上述目的, 本发明的技术方案是这样实现的:
一种媒体网关, 所述媒体网关包括: 操作维护模块、 诊断测试模块、 电路交换模块以及测试执行模块; 其中,
操作维护模块, 用于接收用户输入的测试选项并进行命令解析, 得到 测试命令; 对诊断测试模块上报的比较的结果进行解析, 显示测试结果; 诊断测试模块, 用于判断分析所述测试命令; 将测试执行模块上报的 测试数据与测试原始数据进行比较, 将比较的结果上报给操作维护模块; 电路交换模块,用于根据诊断测试模块的分析结果,将需要测试的 HW 资源进行连接;
测试执行模块, 用于根据诊断测试模块分析后的测试命令, 对连接的 HW资源进行测试, 并将测试数据上报给诊断测试模块。
进一步地, 所述操作维护模块, 具体用于对用户输入的测试选项进行 打包, 得到测试命令并发送至诊断测试模块;
所述诊断测试模块, 具体用于对所述测试命令进行资源有效性判断, 当资源不符合有效性要求时, 返回测试参数异常消息给所述操作维护模块; 当资源符合有效性要求时, 进一步进行测试选项分析, 产生包含有需要测 试的 HW资源的源和目的信息的接续命令, 并发送至电路交换模块。
进一步地, 所述电路交换模块, 具体用于根据接收到的接续命令中的 需要测试的 HW资源的源和目的信息, 将需要测试的 HW资源接通, 并返 回接续完成消息给所述诊断测试模块。
进一步地, 所述诊断测试模块, 具体用于判断是否接收到所述接续完 成消息, 若是, 则发送分析后的测试命令给测试执行模块, 并进行测试时 长的定时器设置, 否则, 再次发送接续命令给所述电路交换模块; 测试执行模块, 具体用于接收所述测试命令, 并进行用于上报测试数 据的定时器的设置, 并以该定时器的时长为周期, 上报测试数据给诊断测 试模块。
进一步地, 所述诊断测试模块接收到测试时长定时器消息或操作维护 模块发来的结束测试消息时, 发送测试结束命令给测试执行模块;
相应地, 所述测试执行模块停止当前测试, 并将当前测试的 HW资源 进行释放。
一种媒体网关检测 HW资源的方法, 所述方法包括:
接收用户输入的测试选项并进行命令解析, 得到测试命令;
判断分析所述测试命令, 根据分析结果将需要测试的 HW资源进行连 接;
根据分析后的测试命令, 对连接的 HW资源进行测试, 并将接收到的 测试数据与测试原始数据进行比较, 上报比较的结果进行显示。
其中, 所述接收用户输入的测试选项并进行命令解析为:
媒体网关的操作维护模块对用户输入的测试选项进行打包, 得到测试 命令并发送至诊断测试模块;
相应地, 所述判断分析所述测试命令为: 媒体网关的诊断测试模块对 所述测试命令进行资源有效性判断, 当资源不符合有效性要求时, 返回测 试参数异常消息给媒体网关的操作维护模块; 当资源符合有效性要求时, 进一步进行测试选项分析, 产生包含有需要测试的 HW资源的源和目的信 息的接续命令。
其中, 所述将需要测试的 HW资源进行连接为: 电路交换模块根据接 收的接续命令中的需要测试的 HW资源的源和目的信息,将需要测试的 HW 资源接通, 并返回接续完成消息给诊断测试模块。 进一步地, 所述根据分析后的测试命令, 对连接的 HW资源进行测试 之前, 所述方法还包括:
诊断测试模块判断是否接收到所述接续完成消息, 若是, 则发送分析 后的测试命令给测试执行模块, 并进行测试时长的定时器设置; 否则, 重 新发送接续命令给电路交换模块;
所述测试执行模块接收测试命令, 并进行用于上报测试数据的定时器 的设置, 并以该定时器的时长为周期, 上报测试数据给诊断测试模块。
进一步地, 所述方法还包括:
当接收到测试时长定时器消息或用户输入的结束测试消息时, 停止当 前测试, 并将当前测试的 HW资源进行释放。
其中, 所述上报比较的结果为: 当诊断测试模块接收到的测试数据与 测试原始数据一致时, 则以操作维护模块能够解析的格式上报 HW资源正 常的消息给操作维护模块; 不一致时, 上报 HW资源异常的消息给操作维 护模块。
本发明提供的媒体网关及其检测 HW资源的方法,当媒体网关与 PSTN 侧设备对接的时候, 出现信令链路异常、 电话没接通时的收号、 放音功能 的异常及电话接通后语音媒体单通或双不通等功能异常时, 通过解析用户 输入的测试选项, 对媒体网关需要测试的 HW资源进行测试, 根据测试得 到的结果将 HW资源的工作情况解析为用户易理解的描述进行显示, 快速 排查媒体网关是否正常, 并对出现故障的媒体网关 HW资源段进行定位, 实现了媒体网关 HW资源的自动化检测, 实现起来较为方便, 且效率较高。 附图说明
图 1为本发明的媒体网关的组成结构示意图;
图 2为本发明的媒体网关检测 HW资源的方法的流程示意图; 图 3为本发明的媒体网关检测 HW资源方法的具体实施例的流程示意 图。 具体实施方式
本发明的基本思想为: 当媒体网关与 PSTN侧设备对接出现异常时, 根据用户输入的测试选项, 确定所要排查的媒体网关的 HW资源段, 利用 电路交换模块的接续功能, 将需要测试的 HW资源接续, 并对其进行测试, 根据接收到的数据(测试数据)和发送的数据(测试原始数据) 的比较, 确定媒体网关的工作情况。
为使本发明的目的、 技术方案和优点更加清楚明白, 以下举实施例并 参照附图, 对本发明进一步详细说明。
图 1示出了本发明的媒体网关的组成结构, 如图 1所示, 所述媒体网 关包括: 操作维护模块 10、 诊断测试模块 20、 测试执行模块 30及电路交 换模块 40; 其中, 操作维护模块 10, 用于接收用户输入的测试选项并进行 命令解析,得到测试命令;对诊断测试模块 20上报的比较的结果进行解析, 显示测试结果; 诊断测试模块 20, 用于判断分析所述测试命令; 将测试执 行模块 30上报的测试数据与测试原始数据进行比较, 将比较的结果上报给 操作维护模块 10; 电路交换模块 40, 用于根据诊断测试模块 20的分析结 果, 将需要测试的 HW资源进行连接; 测试执行模块 30, 用于根据诊断测 试模块 20分析后的测试命令, 对连接的 HW资源进行测试, 并将测试数据 上报给诊断测试模块 20。
进一步地, 所述操作维护模块 10, 具体用于对用户输入的测试选项进 行打包, 得到测试命令并发送至诊断测试模块 20;
所述诊断测试模块 20,具体用于对所述测试命令进行资源有效性判断, 当资源不符合有效性要求时, 返回测试参数异常消息给所述操作维护模块 10; 当资源符合有效性要求时, 进一步进行测试选项分析, 产生包含有需 要测试的 HW资源的源和目的信息的接续命令,并发送至电路交换模块 40。 进一步地, 所述电路交换模块 40, 具体用于根据所述接续命令中的需 要测试的 HW资源的源和目的信息, 将需要测试的 HW资源接通, 并返回 接续完成消息给所述诊断测试模块 20。
进一步地, 所述诊断测试模块 20, 进一步判断是否接收到所述接续完 成消息, 若是, 则发送分析后的测试命令给测试执行模块 30, 并进行测试 时长的定时器设置, 否则, 重新发送接续命令给所述电路交换模块 40; 测试执行模块 30, 具体用于接收所述测试命令, 并进行用于给诊断测 试模块 20上报测试数据的定时器的设置, 并以该定时器的时长为周期, 上 报测试得到的测试数据给诊断测试模块 20。
其中, 当诊断测试模块 20接收到的测试数据与测试原始数据一致时, 则以操作维护模块 10能够解析的格式上报 HW资源正常的消息给操作维护 模块 10; 否则, 上报 HW资源异常的消息给操作维护模块 10; 操作维护模 块 10接收诊断测试模块 20返回的结果, 对其进行解析, 并以易于用户理 解的描述语言显示于用户界面; 具体地, 操作维护模块 10解析的结果为用 户易于理解的语言形式, 可以包括任务操作异常结果、 HW 资源异常和正 常结果等; 其中任务操作异常结果具体包括测试任务超时无应答、 参数输 入错误等。
进一步地, 所述诊断测试模块 20接收到测试时长定时器消息或操作维 护模块 10发来的结束测试消息时, 发送测试结束命令给测试执行模块 30; 相应地, 所述测试执行模块 30停止当前测试, 并将当前测试的 HW资 源进行释放。
图 2示出了本发明的媒体网关检测 HW资源方法的流程,如图 2所示, 所述方法包括下述步骤:
步骤 201 , 接收用户输入的测试选项并进行命令解析, 得到测试命令; 具体地, 本步骤中, 媒体网关的操作维护模块对用户输入的测试选项 进行命令解析, 打包成媒体网关的诊断测试模块能够识别的测试命令, 并 发送给诊断测试模块; 其中, 操作维护模块可提供给用户输入的测试选项 包括: HW资源段选择、 测试类型、 测试方向、 测试原始数据来源等选项。
步骤 202, 判断分析所述测试命令, 将需要测试的 HW资源进行连接; 本步骤中, 诊断测试模块首先根据测试命令中的命令结构体参数, 进 行资源有效性判断, 当资源不符合有效性要求时, 则返回测试参数异常消 息给操作维护模块, 结束本次测试; 当资源符合有效性要求时, 则继续进 行测试命令的测试选项分析, 如分析测试命令的执行对象等, 进而产生并 发送包含有需要测试的 HW资源的源和目的信息的接续命令给电路交换模 块;
电路交换模块根据接续命令中包含的需要测试的 HW资源的源和目的 信息将需要测试的 HW资源接通, 实现需要测试的 HW资源段之间的收发 数据互通, 并返回接续完成消息给诊断测试模块;
诊断测试模块判断是否接收到接续完成消息, 若否, 则重新发送接续 命令给电路交换模块; 若是, 则进行测试时长的定时器设置, 并将分析后 的测试命令发送给测试执行模块; 其中测试时长的定时器用于确定该次测 试任务的定时时长, 具体可以根据实际情况进行设置, 以避免长时间执行 测试任务而影响用户业务的正常进行。
步骤 203 , 根据分析后的测试命令, 对连接的 HW资源进行测试, 并 将接收到的数据与发出的测试原始数据进行比较, 上报比较的结果进行显 示;
具体地, 媒体网关的测试执行模块接收到测试命令后, 进行 HW资源 测试的相关准备, 进入具体的测试流程, 并上报测试数据给诊断测试模块; 其中, 测试执行模块还可以设置用于上报测试数据的定时器时长, 并 以该定时器的时长为周期, 上报测试得到的测试数据给诊断测试模块; 诊断测试模块将接收到的数据, 即测试数据与发出的测试原始数据进 行比较, 并将比较得到的结果按照操作维护模块能够解析的格式返回给操 作维护模块; 操作维护模块对其进行解析, 并以易于用户理解的描述语言 显示于用户界面; 其中当步骤 201 中测试原始数据为接收用户配置时, 此 处的测试原始数据为用户输入的数据; 当步骤 201 中测试原始数据来源为 系统自动产生时, 此处的测试原始数据可以通过诊断测试模块根据预先存 储的数据库, 自动生成所需的测试原始数据。
例如当中继侧放音的情况下, 中继侧媒体网关放音的数字信号处理器 DSP HW资源与中继的具体电路相连, 此时, 若链路出现异常, 可以将中 继侧媒体网关的放音 DSP HW资源直接接向该 DSP内部, DSP HW资源发 出测试原始数据, 若 DSP接收到的数据即测试数据与该测试原始数据不一 致时, 则判定该媒体网关的放音 DSP HW资源异常。
另外, 本步骤中还包括当测试时长的定时器到时, 产生测试时长定时 器消息, 当诊断测试模块接收到测试时长定时器消息或操作维护模块根据 用户输入发送的结束测试消息时, 发送测试结束命令给测试执行模块, 结 束当前的测试任务。 如图 3所示, 所述实施例包括下述步骤:
步骤 301,媒体网关的操作维护模块根据用户所选的具体测试选项进行 命令解析, 并将解析得到的测试命令发送到诊断测试模块;
具体地, 本步骤中, 操作维护模块对用户输入的测试选项进行命令解 析, 打包成诊断测试模块能够识别的测试命令, 并发送给诊断测试模块; 其中, 操作维护模块可提供给用户输入的测试选项包括: HW资源段选择、 测试类型、 测试方向、 测试原始数据来源等选项。
步骤 302,诊断测试模块对接收到的测试命令进行判断分析, 并发送接 续命令给电路交换模块;
具体地, 本步骤中, 诊断测试模块首先根据测试命令中的命令结构体 参数, 进行资源有效性判断, 例如, 判断参数是否超范围、 所输入的资源 是否在线、 是否可操作等等; 当资源不符合有效性要求时, 则返回测试参 数异常消息给操作维护模块, 结束本次测试; 当资源符合有效性要求时, 则继续进行测试命令的测试选项分析, 如分析测试命令的执行对象等, 进 而产生并发送包含有需要测试的 HW资源的源和目的信息的接续命令给电 路交换模块。
步骤 303 , 电路交换模块根据接续命令进行 HW通路的连接, 连接成 功后返回接续完成消息给诊断测试模块;
具体地, 本步骤中, 电路交换模块根据接续命令中包含的需要测试的 HW资源的源和目的信息将需要测试的 HW资源接通,实现需要测试的 HW 资源段之间的收发数据互通, 并返回接续完成消息给诊断测试模块。
步骤 304, 诊断测试模块是否接收到接续完成消息, 若是, 则执行步骤 305 , 否则返回步骤 302再次进行接续命令的发送;
步骤 305 ,诊断测试模块进行测试时长的定时器设置, 并将分析后的测 试命令发送给测试执行模块;
本步骤中, 测试时长的定时器是指对整个测试任务时长的定时, 为了 保证正常业务的进行, 需要根据实际情况, 对每次测试时长的定时器进行 恰当设置。
步骤 306, 测试执行模块接收到测试命令后, 进行 HW资源测试的相 关准备, 进入具体的测试流程, 并上报测试数据给诊断测试模块;
具体地, 本步骤中, 测试执行模块根据接收到的测试命令, 设置上报 测试数据的定时器, 对测试命令所包含的参数进行保存; 并进一步判断该 测试参数中的测试类型、 测试数据源、 测试方向及测试时长等信息后, 进 入具体的测试流程, 并根据设置的上报测试数据的定时器时长, 周期性将 接收到的数据, 即测试数据上报给诊断测试模块; 其中, 上述判断测试类 型为判断此次测试为接收类型, 还是发送类型; 测试的原始数据源是接收 用户配置, 还是系统自动产生; 又因为 HW资源的双向性, 因此还需要区 分此次测试是往哪一侧的测试, 比如, HW 资源就分为系统侧 (向媒体网 关内部方向 )和接口侧 (出媒体网关的对接设备方向); 其中当测试原始数 据来源为接收用户配置时, 此处的测试原始数据为用户输入的数据; 当测 试原始数据来源为系统自动产生时, 此处的测试原始数据可以通过诊断测 试模块根据预先存储的数据库, 自动生成所需的测试原始数据。
步骤 307,诊断测试模块将接收到的数据与发出的测试原始数据进行比 较, 并将比较得到的结果按照操作维护模块能够解析的格式上报给操作维 护模块;
例如, 诊断测试模块将接收到的数据即测试数据与发出的测试原始数 据进行比较后, 若二者一致, 得到所测试的 HW资源正常, 则诊断测试模 块根据所保存的测试命令的参数, 返回一宏定义给操作维护模块。
步骤 308,操作维护模块接收诊断测试模块上报的结果,对其进行解析, 并以易于用户理解的描述语言显示于用户界面, 本次测试流程结束;
本步骤中, 操作维护模块解析的结果为用户易于理解的语言形式, 可 以包括任务操作异常结果、 HW 资源异常和正常结果等; 其中任务操作异 常结果具体包括测试任务超时无应答、 参数输入错误等。
步骤 309,当诊断测试模块接收到测试时长定时器消息或操作维护模块 发送的结束测试消息时, 发送测试结束命令给测试执行模块;
具体地, 本步骤中, 当测试时长的定时器到时, 产生测试时长定时器 消息; 结束测试消息可以为操作维护模块根据接收到的用户输入发送的结 束测试消息; 其中, 用户可以根据测试的需要、 或操作维护模块在用户界 面显示的测试结果定位出故障 HW资源后, 进行结束测试消息的输入。 另外, 本步骤还包括当诊断测试模块接收到用户输入的继续进行测试 的消息命令, 则继续执行步骤 301。
步骤 310, 测试执行模块停止当前的测试, 释放资源, 结束本次测试流 程。
以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的保 护范围。

Claims

权利要求书
1、 一种媒体网关, 其特征在于, 所述媒体网关包括: 操作维护模块、 诊断测试模块、 电路交换模块以及测试执行模块; 其中,
操作维护模块, 用于接收用户输入的测试选项并进行命令解析, 得到 测试命令; 对诊断测试模块上报的比较的结果进行解析, 显示测试结果; 诊断测试模块, 用于判断分析所述测试命令; 将测试执行模块上报的 测试数据与测试原始数据进行比较, 将比较的结果上报给操作维护模块; 电路交换模块,用于根据诊断测试模块的分析结果,将需要测试的 HW 资源进行连接;
测试执行模块, 用于根据诊断测试模块分析后的测试命令, 对连接的 HW资源进行测试, 并将测试数据上报给诊断测试模块。
2、根据权利要求 1所述的媒体网关,其特征在于, 所述操作维护模块, 具体用于对用户输入的测试选项进行打包, 得到测试命令并发送至诊断测 试模块;
所述诊断测试模块, 具体用于对所述测试命令进行资源有效性判断, 当资源不符合有效性要求时, 返回测试参数异常消息给所述操作维护模块; 当资源符合有效性要求时, 进一步进行测试选项分析, 产生包含有需要测 试的 HW资源的源和目的信息的接续命令, 并发送至电路交换模块。
3、 根据权利要求 1或 2所述的媒体网关, 其特征在于, 所述电路交换 模块, 具体用于根据接收到的接续命令中的需要测试的 HW资源的源和目 的信息, 将需要测试的 HW资源接通, 并返回接续完成消息给所述诊断测 试模块。
4、 根据权利要求 3所述的媒体网关, 其特征在于, 所述诊断测试模块 进一步用于判断是否接收到所述接续完成消息, 若是, 则发送分析后的测 试命令给测试执行模块, 并进行测试时长的定时器设置, 否则, 再次发送 接续命令给所述电路交换模块;
测试执行模块, 具体用于接收所述测试命令, 并进行用于上报测试数 据的定时器的设置, 并以该定时器的时长为周期, 上报测试数据给诊断测 试模块。
5、 根据权利要求 4所述的媒体网关, 所述诊断测试模块接收到测试时 长定时器消息或操作维护模块发来的结束测试消息时, 发送测试结束命令 给测试执行模块;
相应地, 所述测试执行模块停止当前测试, 并将当前测试的 HW资源 进行释放。
6、 一种媒体网关检测 HW资源的方法, 其特征在于, 所述方法包括: 接收用户输入的测试选项并进行命令解析, 得到测试命令;
判断分析所述测试命令, 根据分析结果将需要测试的 HW资源进行连 接;
根据分析后的测试命令, 对连接的 HW资源进行测试, 并将接收到的 测试数据与测试原始数据进行比较, 上报比较的结果进行显示。
7、 根据权利要求 6所述的方法, 其特征在于, 所述接收用户输入的测 试选项并进行命令解析为:
媒体网关的操作维护模块对用户输入的测试选项进行打包, 得到测试 命令并发送至诊断测试模块;
相应地, 所述判断分析所述测试命令为: 媒体网关的诊断测试模块对 所述测试命令进行资源有效性判断, 当资源不符合有效性要求时, 返回测 试参数异常消息给媒体网关的操作维护模块; 当资源符合有效性要求时 , 进一步进行测试选项分析, 产生包含有需要测试的 HW资源的源和目的信 息的接续命令。
8、 根据权利要求 6所述的方法, 其特征在于, 所述将需要测试的 HW 资源进行连接为: 电路交换模块根据接收的接续命令中的需要测试的 HW 资源的源和目的信息, 将需要测试的 HW资源接通, 并返回接续完成消息 给诊断测试模块。
9、 根据权利要求 8所述的方法, 其特征在于, 所述根据分析后的测试 命令, 对连接的 HW资源进行测试之前, 所述方法还包括:
诊断测试模块判断是否接收到所述接续完成消息, 若是, 则发送分析 后的测试命令给测试执行模块, 并进行测试时长的定时器设置; 否则, 重 新发送接续命令给电路交换模块;
所述测试执行模块接收测试命令, 并进行用于上报测试数据的定时器 的设置, 并以该定时器的时长为周期, 上报测试数据给诊断测试模块。
10、 根据权利要求 9所述的方法, 其特征在于, 所述方法还包括: 当接收到测试时长定时器消息或用户输入的结束测试消息时, 停止当 前测试, 并将当前测试的 HW资源进行释放。
11、 根据权利要求 6至 10任一项所述的方法, 其特征在于, 所述上报 比较的结果为: 当诊断测试模块接收到的测试数据与测试原始数据一致时, 则以操作维护模块能够解析的格式上报 HW资源正常的消息给操作维护模 块; 不一致时, 上报 HW资源异常的消息给操作维护模块。
PCT/CN2011/072694 2010-12-14 2011-04-12 一种媒体网关及其检测高速通道资源的方法 WO2012079324A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2010105884960A CN102546476A (zh) 2010-12-14 2010-12-14 一种媒体网关及其检测高速通道资源的方法
CN201010588496.0 2010-12-14

Publications (1)

Publication Number Publication Date
WO2012079324A1 true WO2012079324A1 (zh) 2012-06-21

Family

ID=46244028

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/072694 WO2012079324A1 (zh) 2010-12-14 2011-04-12 一种媒体网关及其检测高速通道资源的方法

Country Status (2)

Country Link
CN (1) CN102546476A (zh)
WO (1) WO2012079324A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111078534A (zh) * 2019-11-26 2020-04-28 深圳云天励飞技术有限公司 一种测试调度方法和相关设备

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3116162A4 (en) * 2014-04-08 2017-03-29 Huawei Device Co., Ltd. Failure detection method and device
CN107493401A (zh) * 2016-06-12 2017-12-19 中兴通讯股份有限公司 线路状态处理方法及装置
CN106936632B (zh) * 2017-02-28 2019-07-16 烽火通信科技股份有限公司 网关的链路智能诊断方法及系统
CN111314563B (zh) * 2020-02-24 2022-08-19 深圳震有科技股份有限公司 一种检测媒体资源板状态的方法、存储介质、语音网关

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101541028A (zh) * 2009-04-22 2009-09-23 华为技术有限公司 高速信息通道的检测方法与装置
CN101895443A (zh) * 2010-07-23 2010-11-24 中兴通讯股份有限公司 媒体网关及媒体资源检测方法
CN101902452A (zh) * 2008-11-28 2010-12-01 株式会社日立制作所 管理装置

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101902452A (zh) * 2008-11-28 2010-12-01 株式会社日立制作所 管理装置
CN101541028A (zh) * 2009-04-22 2009-09-23 华为技术有限公司 高速信息通道的检测方法与装置
CN101895443A (zh) * 2010-07-23 2010-11-24 中兴通讯股份有限公司 媒体网关及媒体资源检测方法

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111078534A (zh) * 2019-11-26 2020-04-28 深圳云天励飞技术有限公司 一种测试调度方法和相关设备

Also Published As

Publication number Publication date
CN102546476A (zh) 2012-07-04

Similar Documents

Publication Publication Date Title
US8472327B2 (en) Apparatus and method for testing and fault isolation in a communication network
WO2012079324A1 (zh) 一种媒体网关及其检测高速通道资源的方法
US20110001833A1 (en) Computerized device and method for analyzing signals in a multimedia over coax alliance (moca) network and similar tdm / encrypted networks
US20080031143A1 (en) Voice Over Internet Protocol (Voip) Quality Testing Over Hybrid Fiber/Coax (Hfc) Network
US10348602B2 (en) Systems and methods for evaluating customer premises networks
US20120128134A1 (en) Test system for voice communications systems
CN101594222A (zh) 一种接口测试方法及装置
US20120269068A1 (en) Testing system
WO2013189381A2 (zh) 无源光网络链路检测方法及装置
US20230208967A1 (en) Site link tester via unique phone emulation
WO2011029327A1 (zh) 光网络保护装置和保护方法
CN101645983A (zh) 网络管理系统及使用其测试网络设备的方法
TWI638548B (zh) 寬頻迴路障礙查測系統
CN101895642A (zh) 电话通路故障的检测方法及装置
US7099280B1 (en) Method and system for logging voice quality issues for communication connections
CN113645058A (zh) 一种网络链路流量监控方法、装置及系统
WO2007118429A1 (fr) Procédé et appareil permettant de détecter un état de chemin d'indication de défaut arrière
US8687502B2 (en) Method and apparatus for enabling auto-ticketing for endpoint devices
CN101287263A (zh) 交换网中继线路测试方法、测试系统及测试服务器
CN113949657B (zh) 物联网检测装置、系统和测试方法
CN114157761A (zh) 基于路由器的多路语音网关设备语音测试的系统及方法
CN103079018B (zh) 中继抓包定位对接业务异常的方法及装置
KR100984844B1 (ko) VoIP 단말기 품질 측정 시스템 및 방법
JP2011188450A (ja) ネットワーク監視装置
TWI440355B (zh) Ltt/ag用戶迴路並存查測系統

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11849191

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11849191

Country of ref document: EP

Kind code of ref document: A1