[go: up one dir, main page]

CN103079018A - Relay package capture method and device for positioning interconnection business exception - Google Patents

Relay package capture method and device for positioning interconnection business exception Download PDF

Info

Publication number
CN103079018A
CN103079018A CN2011103292811A CN201110329281A CN103079018A CN 103079018 A CN103079018 A CN 103079018A CN 2011103292811 A CN2011103292811 A CN 2011103292811A CN 201110329281 A CN201110329281 A CN 201110329281A CN 103079018 A CN103079018 A CN 103079018A
Authority
CN
China
Prior art keywords
relay
module
voip
resource
time slot
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
Application number
CN2011103292811A
Other languages
Chinese (zh)
Other versions
CN103079018B (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.)
Haining Hi Tech Zone Science And Innovation Center Co Ltd
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 CN201110329281.1A priority Critical patent/CN103079018B/en
Publication of CN103079018A publication Critical patent/CN103079018A/en
Application granted granted Critical
Publication of CN103079018B publication Critical patent/CN103079018B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Monitoring And Testing Of Exchanges (AREA)

Abstract

本发明公开一种定位对接业务异常的中继抓包方法及装置,该方法包括以下步骤:中继资源模块根据抓包请求,进行指定时隙到固定监听时隙的环回接续;在环回接续成功后,电路交换模块进行需监听中继时隙和用于监听的VOIP通道资源之间的接续;VOIP资源模块设置通道参数,对需监听的中继时隙进行抓包。本发明通过VOIP资源模块对经过中继时隙的数据流进行监听,从而产生标准格式文件,从而可以根据数据流分析对设备故障进行快速的定位。另外,不需要借助其他的辅助工具,且不影响原有业务即可对中继时隙的数据流进行监听。

Figure 201110329281

The present invention discloses a relay packet capture method and device for abnormal location and docking services. The method includes the following steps: a relay resource module performs a loopback connection from a designated time slot to a fixed monitoring time slot according to a packet capture request; After the connection is successful, the circuit switching module performs the connection between the relay time slot to be monitored and the VOIP channel resource used for monitoring; the VOIP resource module sets channel parameters, and captures packets for the relay time slot to be monitored. The invention monitors the data flow passing through the relay time slot through the VOIP resource module, so as to generate a standard format file, thereby quickly locating the equipment failure according to the data flow analysis. In addition, the data flow of the relay time slot can be monitored without using other auxiliary tools and without affecting the original business.

Figure 201110329281

Description

中继抓包定位对接业务异常的方法及装置Method and device for packet capture, location, and docking service exceptions in relay

技术领域 technical field

本发明涉及通信技术领域,尤其涉及一种中继抓包定位对接业务异常的方法及装置。The present invention relates to the field of communication technology, in particular to a method and device for packet capturing, locating, and docking service exceptions in relays.

背景技术 Background technique

现代通信系统中,PSTN(Public Switched Telephone Network,公共交换电话网,PSTN)平滑演进过度到NGN(Next Generation Network,NGN)是现网改造的最佳方案,PSTN TDM(Time Division Multiplex,简称TDM)媒体流经过网关全部转换为IP(Internet Protocol,网络之间互连的协议)媒体流,通过IP宽带数据网络发送到指定的对端网关设备。在PSTN和NGN对接过程中,经常会产生各种各样的对接问题,比如信令交互异常;VOIP(Voice overInternet Protocol,IP网承载语音)电话媒体单通或双不通;放音、收号等功能异常;以及系统内外多种媒体流之间切换的控制时序问题,严重制约工程的交付质量和效率。In modern communication systems, the smooth evolution of PSTN (Public Switched Telephone Network, PSTN) to NGN (Next Generation Network, NGN) is the best solution for the transformation of existing networks. PSTN TDM (Time Division Multiplex, referred to as TDM) The media streams are all converted into IP (Internet Protocol, a protocol for interconnection between networks) media streams through the gateway, and sent to the designated peer gateway device through the IP broadband data network. During the docking process of PSTN and NGN, various docking problems often occur, such as abnormal signaling interaction; VOIP (Voice over Internet Protocol, voice over IP network) telephone media can be connected or both cannot be connected; playback, number collection, etc. Abnormal functions; and the control timing problem of switching between multiple media streams inside and outside the system, seriously restricting the delivery quality and efficiency of the project.

上述对接问题往往涉及两种不同设备,且电路交换系统中HW资源和功能资源对应关系复杂,无日志和抓包手段,定位问题比较麻烦,通常反映在以下几个方面:The above interconnection problems often involve two different devices, and the relationship between HW resources and functional resources in the circuit switching system is complex, there is no log and packet capture means, and the positioning problem is troublesome, which is usually reflected in the following aspects:

1、往往需要借助第三方工具,比如昂贵的信令仪,E1/T1测试仪,录音设备,示波器等;1. It is often necessary to use third-party tools, such as expensive signaling instruments, E1/T1 testers, recording equipment, oscilloscopes, etc.;

2、测试工具一般比较庞大,携带现场不方便;2. The test tools are generally large and inconvenient to carry on site;

3、往往需要中断现网业务,连接测试仪器,且接线和操作麻烦,特殊情况,还需硬件飞线;3. It is often necessary to interrupt the current network business and connect the test equipment, and the wiring and operation are troublesome. In special cases, hardware flying wires are required;

4、在现场组网复杂,线缆距离较远,数目较多的情况下,工作量较大;4. When the on-site network is complex, the cable distance is long, and the number of cables is large, the workload is relatively large;

5、不同数据流跨IP和TDM两域多种资源,需要分别判断资源本身是否,时序排查也较难入手。5. Different data streams cross multiple resources in IP and TDM domains. It is necessary to judge whether the resources themselves are independent, and it is difficult to check the timing.

综上所述,一种易操作、高效率的无需其他辅助工具且不影响原有业务的软件抓包监听方法成为迫切需求。To sum up, an easy-to-operate, high-efficiency software packet capture and monitoring method that does not require other auxiliary tools and does not affect the original business has become an urgent need.

发明内容 Contents of the invention

本发明的主要目的是提供一种定位对接业务异常的中继抓包方法,旨在提供一种易操作、高效率的无需其他辅助工具且不影响原有业务的抓包方法。The main purpose of the present invention is to provide a relay packet capture method for locating and docking business abnormalities, aiming to provide an easy-to-operate, high-efficiency packet capture method that does not require other auxiliary tools and does not affect the original business.

本发明提供了一种定位对接业务异常的中继抓包方法,包括以下步骤:The present invention provides a relay capture method for locating and docking service exceptions, comprising the following steps:

中继资源模块根据抓包请求,进行指定时隙到固定监听时隙的环回接续;The relay resource module performs the loopback connection from the specified time slot to the fixed listening time slot according to the packet capture request;

在环回接续成功后,电路交换模块进行需监听中继时隙和用于监听的VOIP通道资源之间的接续;After the loopback connection is successful, the circuit switching module performs the connection between the relay time slot to be monitored and the VOIP channel resource used for monitoring;

VOIP资源模块设置通道参数,对需监听的中继时隙进行抓包。The VOIP resource module sets channel parameters and captures packets for the relay time slots to be monitored.

优选地,所述中继资源模块根据抓包请求,进行指定时隙到固定监听时隙的环回接续的步骤之前还包括:Preferably, the relay resource module further includes before the step of performing the loopback connection from the specified time slot to the fixed listening time slot according to the packet capture request:

操作维护模块接收测试命令,并对其进行解析后获得测试参数;The operation and maintenance module receives the test command, and obtains the test parameters after parsing it;

业务控制模块根据解析后的测试参数,发送抓包请求至所述中继资源模块。The service control module sends a packet capture request to the relay resource module according to the analyzed test parameters.

优选地,所述中继资源模块根据抓包请求,进行指定时隙到固定监听时隙的环回接续的步骤之后还包括:Preferably, after the step of performing loopback connection from the specified time slot to the fixed listening time slot according to the packet capture request, the relay resource module further includes:

业务控制模块预占VOIP资源,并在预占VOIP资源成功后,发送资源接续命令至所述电路交换模块,同时发送打开通道命令至所述VOIP资源模块。The service control module preempts VOIP resources, and after successfully preempting VOIP resources, sends a resource connection command to the circuit switching module, and at the same time sends an open channel command to the VOIP resource module.

优选地,所述VOIP资源模块设置通道参数,对需监听的中继时隙进行抓包的步骤之后还包括:Preferably, the VOIP resource module sets channel parameters, and after the step of capturing the relay time slots to be monitored, further includes:

将所述VOIP资源模块监听的数据包发送至操作维护模块。Send the data packet monitored by the VOIP resource module to the operation and maintenance module.

优选地,所述中继资源模块根据抓包请求,进行指定时隙到固定监听时隙的环回接续的步骤之后还包括:Preferably, after the step of performing loopback connection from the specified time slot to the fixed listening time slot according to the packet capture request, the relay resource module further includes:

根据测试结束请求,业务控制模块释放VOIP资源,并发送关闭通道命令至VOIP资源模块;同时分别发送环回拆续命令及资源拆续命令至所述中继资源模块及电路交换模块。According to the test end request, the service control module releases the VOIP resource, and sends a channel close command to the VOIP resource module; at the same time, it sends a loopback dismantling command and a resource dismantling command to the relay resource module and the circuit switching module respectively.

本发明还提供了一种定位对接业务异常的中继抓包装置,包括:The present invention also provides a relay packet capture device for locating and docking service exceptions, including:

中继资源模块,用于根据抓包请求,进行指定时隙到固定监听时隙的环回接续;The relay resource module is used to carry out the loopback connection from the specified time slot to the fixed listening time slot according to the packet capture request;

电路交换模块,用于在环回接续成功后,进行需监听中继时隙和用于监听的VOIP通道资源之间的接续;The circuit switching module is used to perform the connection between the relay time slot to be monitored and the VOIP channel resource used for monitoring after the loopback connection is successful;

VOIP资源模块,用于设置通道参数,对需监听的中继时隙进行抓包。The VOIP resource module is used to set channel parameters and capture packets for the relay time slots to be monitored.

优选地,上述装置还包括:Preferably, the above-mentioned device also includes:

操作维护模块,用于接收测试命令,并对其进行解析后获得测试参数;The operation and maintenance module is used to receive test commands and analyze them to obtain test parameters;

业务控制模块,用于根据解析后的测试参数,发送抓包请求至所述中继资源模块。The service control module is configured to send a packet capture request to the relay resource module according to the analyzed test parameters.

优选地,所述业务控制模块还用于:Preferably, the service control module is also used for:

预占VOIP资源,并在预占VOIP资源成功后,发送资源接续命令至所述电路交换模块,同时发送打开通道命令至所述VOIP资源模块。Reserve VOIP resources, and after successfully preserving VOIP resources, send a resource connection command to the circuit switching module, and send an open channel command to the VOIP resource module at the same time.

优选地,所述VOIP资源模块还用于:Preferably, the VOIP resource module is also used for:

将所述VOIP资源模块监听的数据包发送至操作维护模块。Send the data packet monitored by the VOIP resource module to the operation and maintenance module.

优选地,所述业务控制模块还用于:Preferably, the service control module is also used for:

根据测试结束请求,释放VOIP资源,并发送关闭通道命令至VOIP资源模块;同时分别发送环回拆续命令及资源拆续命令至所述中继资源模块及电路交换模块。According to the test end request, release the VOIP resource, and send the channel closing command to the VOIP resource module; at the same time, send the loopback dismantling command and the resource dismantling command to the relay resource module and the circuit switching module respectively.

本发明通过VOIP资源模块30对经过中继时隙的数据流进行监听,从而产生标准格式文件,从而可以根据数据流分析对设备故障进行快速的定位。另外,不需要借助其他的辅助工具,且不影响原有业务即可对中继时隙的数据流进行监听。The present invention uses the VOIP resource module 30 to monitor the data stream passing through the relay time slot, so as to generate a standard format file, so that the device failure can be quickly located according to the data stream analysis. In addition, the data flow of the relay time slot can be monitored without using other auxiliary tools and without affecting the original business.

附图说明 Description of drawings

图1是本发明一种定位对接业务异常的中继抓包装置一实施例的结构示意图;Fig. 1 is a schematic structural view of an embodiment of a relay packet capture device for positioning and docking service exceptions according to the present invention;

图2是本发明一种定位对接业务异常的中继抓包装置中建立的中继时隙环回的结构示意图;Fig. 2 is a structural schematic diagram of a relay timeslot loopback established in a relay packet capture device for abnormal positioning and docking services of the present invention;

图3是本发明一种定位对接业务异常的中继抓包装置另一实施例的结构示意图;Fig. 3 is a structural schematic diagram of another embodiment of a relay packet capture device for locating and docking service exceptions according to the present invention;

图4是本发明一种定位对接业务异常的中继抓包方法一实施例的结构示意图;Fig. 4 is a structural schematic diagram of an embodiment of a relay packet capture method for locating and docking service exceptions according to the present invention;

图5是本发明一种定位对接业务异常的中继抓包方法另一实施例的结构示意图;Fig. 5 is a schematic structural diagram of another embodiment of a relay packet capture method for locating and docking service exceptions according to the present invention;

图6是本发明一种定位对接业务异常的中继抓包方法又一实施例的结构示意图。FIG. 6 is a schematic structural diagram of another embodiment of a relay packet capturing method for locating and interconnecting service exceptions according to the present invention.

本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization of the purpose of the present invention, functional characteristics and advantages will be further described in conjunction with the embodiments and with reference to the accompanying drawings.

具体实施方式 Detailed ways

以下结合说明书附图及具体实施例进一步说明本发明的技术方案。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。The technical solutions of the present invention will be further described below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

图1是本发明一种定位对接业务异常的中继抓包装置一实施例的结构示意图。FIG. 1 is a schematic structural diagram of an embodiment of a relay packet capture device for locating and docking service exceptions according to the present invention.

参照图1,本发明一种定位对接业务异常的中继抓包装置包括:Referring to Fig. 1, a relay packet capture device for positioning and docking service exceptions according to the present invention includes:

中继资源模块10,用于根据抓包请求,进行指定时隙到固定监听时隙的环回接续;The relay resource module 10 is used for carrying out the loopback connection from the specified time slot to the fixed listening time slot according to the packet capture request;

电路交换模块20,用于在环回接续成功后,进行需监听的中继时隙和用于监听的VOIP通道资源之间的接续;The circuit switching module 20 is used for connecting between the relay time slot to be monitored and the VOIP channel resource for monitoring after the loopback connection is successful;

VOIP资源模块30,用于对需监听的中继时隙进行抓包。The VOIP resource module 30 is configured to capture packets of the relay time slots to be monitored.

该抓包请求可以为用户需要对网络的某一中继时隙进行测试而发出的,也可以为网络发生故障时自动触发产生的。该抓包请求可以包括:需要抓包的时隙、时隙的种类,例如单向时隙或者双向时隙等等。中继资源模块10根据该抓包请求,进行指定时隙到固定监听时隙的环回接续。该环回接续为利用复用时隙、空闲时隙而形成的由指定时隙到固定监听时隙的环回。该环回可以包括单向环回或双向环回。如图2所示,时隙T2为指定进行抓包的时隙,时隙T7为固定监听的时隙,则中继资源模块10利用空闲或复用的时隙T4、T5、T6组成了一个中继时隙环回,则时隙T2的数据流经过时隙T4、T5到达固定监听时隙T7后,再经过时隙T6返回时隙T2。The packet capture request may be sent by the user to test a certain relay time slot of the network, or may be automatically triggered when a network failure occurs. The packet capture request may include: a time slot to be captured and a type of the time slot, such as a one-way time slot or a two-way time slot, and the like. The relay resource module 10 performs a loopback connection from the specified time slot to the fixed listening time slot according to the packet capture request. The loopback connection is a loopback from a designated time slot to a fixed listening time slot formed by using multiplexed time slots and idle time slots. The loopback may include a one-way loopback or a two-way loopback. As shown in Figure 2, time slot T2 is the time slot designated for capturing packets, and time slot T7 is the time slot for fixed monitoring, then the relay resource module 10 uses idle or multiplexed time slots T4, T5, T6 to form a When the relay time slot is looped back, the data stream of time slot T2 passes through time slots T4 and T5 to arrive at fixed monitoring time slot T7, and then returns to time slot T2 through time slot T6.

上述中继资源模块10建立的是中继内部的一个环回。所以在环回接续成功后,还需要电路交换模块20建立用于监听的VOIP通道资源的T网与需要监听的中继资源之间的连接。该连接一旦建立,则建立一条VOIP资源模块30监听中继资源的通道,除非该连接被拆续,则VOIP资源模块30自始至终通过该通道进行抓包。The above-mentioned relay resource module 10 establishes a loopback inside the relay. Therefore, after the loopback connection is successful, the circuit switching module 20 needs to establish a connection between the T network of the VOIP channel resource for monitoring and the relay resource to be monitored. Once the connection is established, a channel for the VOIP resource module 30 to monitor the relay resource is established. Unless the connection is disconnected, the VOIP resource module 30 captures packets through the channel from beginning to end.

VOIP资源模块30设置通道参数,具体为远近端IP和端口,编解码类型,打包时长,ec使能开关,静音检测开关,增益控制等,然后对需监听的中继时隙进行抓包。The VOIP resource module 30 sets channel parameters, specifically far and near end IP and port, codec type, packing duration, ec enabling switch, mute detection switch, gain control, etc., and then captures packets for the relay time slots to be monitored.

本发明实施例通过VOIP资源模块30对经过中继时隙的数据流进行监听,从而产生标准格式文件,从而可以根据数据流分析对设备故障进行快速的定位。另外,不需要借助其他的辅助工具,且不影响原有业务即可对中继时隙的数据流进行监听。In the embodiment of the present invention, the VOIP resource module 30 monitors the data flow passing through the relay time slot, thereby generating a standard format file, so that the device failure can be quickly located according to the data flow analysis. In addition, the data flow of the relay time slot can be monitored without using other auxiliary tools and without affecting the original business.

图3是本发明一种定位对接业务异常的中继抓包装置另一实施例的结构示意图。FIG. 3 is a schematic structural diagram of another embodiment of a relay packet capture device for locating and docking business abnormalities according to the present invention.

参照图3,在上述实施例的基础上,本实施例一种定位对接业务异常的中继抓包装置还包括:Referring to Fig. 3, on the basis of the above-mentioned embodiments, a relay packet capture device for locating and docking service exceptions in this embodiment also includes:

操作维护模块40,用于接收测试命令,并对其进行解析后获得测试参数;The operation and maintenance module 40 is used to receive the test order and obtain the test parameters after parsing it;

业务控制模块50,用于根据解析后的测试参数,发送抓包请求至所述中继资源模块10。The service control module 50 is configured to send a packet capture request to the relay resource module 10 according to the analyzed test parameters.

该操作维护模块10可以包括前端窗口单元及后端处理单元。前端窗口单元可以提供可供用户选择的测试选项,该前端窗口单元还可以提供用户直接输入测试命令等,后端处理单元则对用户选择的测试选项进行解析,并将解析结果下发至业务控制模块50。The operation and maintenance module 10 may include a front-end window unit and a back-end processing unit. The front-end window unit can provide test options for users to choose. The front-end window unit can also provide users with direct input of test commands. The back-end processing unit analyzes the test options selected by the user and sends the analysis results to the business control unit. Module 50.

业务控制模块50接收到解析后的测试参数后,需要对其进行资源有效性判断,若有效则根据该测试参数,发送抓包请求至中继资源模块10;若无效则返回测试参数异常消息至操作维护模块40。中继资源模块10则根据抓包请求,进行指定时隙与固定监听时隙之间的环回接续,并在环回接续成功后,返回接续成功消息至业务控制模块50。若环回接续失败,则返回接续失败消息至业务控制模块50,并结束本流程。After the service control module 50 receives the test parameter after parsing, it needs to judge its resource validity, if it is valid, then according to the test parameter, send a packet capture request to the relay resource module 10; if it is invalid, then return the test parameter exception message to Operation and maintenance module 40 . The relay resource module 10 performs a loopback connection between the designated time slot and the fixed listening time slot according to the packet capture request, and returns a connection success message to the service control module 50 after the loopback connection is successful. If the loopback connection fails, return a connection failure message to the service control module 50, and end this process.

上述业务控制模块50还用于:The above-mentioned service control module 50 is also used for:

预占VOIP资源,并在预占资源成功后,发送资源接续命令至所述电路交换模块20,控制电路交换模块20进行需监听的中继时隙和用于监听的VOIP通道资源之间的接续;同时发送打开通道命令至所述VOIP资源模块30,控制VOIP资源模块30对需监听的中继时隙进行抓包。Reserve VOIP resources, and after the resources are successfully reserved, send a resource connection command to the circuit switching module 20, and control the circuit switching module 20 to perform the connection between the relay time slot to be monitored and the VOIP channel resource for monitoring ; At the same time, send an open channel command to the VOIP resource module 30, and control the VOIP resource module 30 to capture packets for the relay time slots to be monitored.

上述VOIP资源模块30还用于:将所述VOIP资源模块30监听的数据包发送至操作维护模块10。The VOIP resource module 30 is further configured to: send the data packets monitored by the VOIP resource module 30 to the operation and maintenance module 10 .

VOIP资源模块30根据业务控制模块发送的打开通道命令,设置通道参数,对需监听的中继时隙进行抓包,并将获取的数据包发送至操作维护模块40,以供用户进行分析。该操作维护模块40也可以包括包文件分析单元,该包文件分析单元对VOIP资源模块30发送的数据包进行分析,并产生分析结果,通过前端窗口单元进行显示,从而使得用户可以根据分析结果对故障进行快速定位,以便及时进行处理。The VOIP resource module 30 sets channel parameters according to the command to open the channel sent by the service control module, captures packets of the relay time slots to be monitored, and sends the obtained data packets to the operation and maintenance module 40 for user analysis. This operation maintenance module 40 also can comprise package file analysis unit, and this package file analysis unit analyzes the data packet that VOIP resource module 30 sends, and produces analysis result, displays by front-end window unit, thereby makes user can according to analysis result to Faults can be quickly located so that they can be dealt with in a timely manner.

上述业务控制模块50还用于:The above-mentioned service control module 50 is also used for:

根据测试结束请求,释放VOIP资源,并发送关闭通道命令至VOIP资源模块30;同时分别发送环回拆续命令及资源拆续命令至所述中继资源模块10及电路交换模块20。According to the test end request, the VOIP resource is released, and the channel closing command is sent to the VOIP resource module 30; at the same time, the loopback dismantling command and the resource dismantling command are respectively sent to the relay resource module 10 and the circuit switching module 20.

在VOIP资源模块30根据抓包请求,完成了对指定时隙的抓包后,操作维护模块40将会产生提示信息,提示用户是否还要进行测试,若用户选择是,则根据用户的测试指令继续进行中继时隙的抓包;若用户选择否,则发出测试结束请求。业务控制模块50释放VOIP通道资源,并发送关闭通道命令至VOIP资源模块30,则VOIP资源模块30将关闭VOIP通道;发送环回拆续命令至中继资源模块10,则中继资源模块10拆续之前建立的指定时隙到固定监听时隙之间的连接;发送资源拆续命令至电路交换模块20,则电路交换模块20拆续之前建立的用于监听的VOIP通道资源30的T网通路与需要监听的中继资源之间的连接。After the VOIP resource module 30 has completed the packet capture of the specified time slot according to the packet capture request, the operation and maintenance module 40 will generate a prompt message, prompting the user whether to test, if the user selects yes, then according to the user's test instruction Continue to capture packets of relay time slots; if the user chooses no, send a test end request. Service control module 50 releases VOIP channel resource, and sends closing channel command to VOIP resource module 30, then VOIP resource module 30 will close VOIP channel; Continue the connection between the specified time slot established before and the fixed listening time slot; send the resource dismantling order to the circuit switching module 20, then the circuit switching module 20 dismantling and continuing the T network path of the VOIP channel resource 30 for monitoring established before The connection with the relay resource that needs to be monitored.

在这里需要说明的是,在上述业务控制模块50预占资源失败后,可以发送环回拆续命令至中继资源模块10,控制中继资源模块30拆续之前建立的指定时隙到固定监听时隙之间的连接。也可以重新发送请求至VOIP资源模块30,请求VOIP通道资源。What needs to be explained here is that after the above-mentioned service control module 50 fails to reserve resources, it can send a loopback dismantling command to the relay resource module 10 to control the relay resource module 30 to dismantle the previously established designated time slot to the fixed monitoring connections between slots. It is also possible to resend the request to the VOIP resource module 30 to request VOIP channel resources.

图4是本发明一种定位对接业务异常的中继抓包方法一实施例的流程示意图。FIG. 4 is a schematic flowchart of an embodiment of a relay packet capture method for locating and docking service exceptions according to the present invention.

参照图4,本发明一种定位对接业务异常的中继抓包方法包括以下步骤:With reference to Fig. 4, the present invention a kind of relay packet capturing method of location docking business abnormality comprises the following steps:

步骤S01、中继资源模块10根据抓包请求,进行指定时隙到固定监听时隙的环回接续;Step S01, the relay resource module 10 performs a loopback connection from the specified time slot to the fixed listening time slot according to the packet capture request;

该抓包请求可以为用户需要对网络的某一中继时隙进行测试而发出的,也可以为网络发生故障时自动触发产生的。该抓包请求可以包括:需要抓包的时隙、时隙的种类,例如单向时隙还是双向时隙等等。中继资源模块根据该抓包请求,进行指定时隙到固定监听时隙的环回接续。该环回接续为利用复用时隙、空闲的时隙等分别连接指定的时隙与固定监听时隙的环回。该环回可以为单向环回,如图2所示;也可以为双向环回。The packet capture request may be sent by the user to test a certain relay time slot of the network, or may be automatically triggered when a network failure occurs. The packet capture request may include: a time slot to be captured, a type of the time slot, such as a one-way time slot or a two-way time slot, and the like. The relay resource module performs a loopback connection from the specified time slot to the fixed listening time slot according to the packet capture request. The loopback connection is a loopback in which a designated time slot and a fixed listening time slot are respectively connected by using a multiplexed time slot, an idle time slot, or the like. The loopback may be a one-way loopback, as shown in FIG. 2 ; it may also be a two-way loopback.

步骤S02、在环回接续成功后,电路交换模块20进行需监听的中继时隙和用于监听的VOIP通道资源之间的接续;Step S02, after the loopback connection is successful, the circuit switching module 20 performs the connection between the relay time slot to be monitored and the VOIP channel resource used for monitoring;

步骤S01建立的环回接续为中继内部的一个环回。所以在环回接续成功后,还需要建立用于监听的VOIP通道资源的T网通路与需要监听的中继资源之间的连接。该连接一旦建立,则建立一条VOIP资源模块30监听中继时隙的通道,除非该连接被拆续,则VOIP资源模块30自始至终通过该通道进行抓包。The loopback connection established in step S01 is a loopback inside the trunk. Therefore, after the loopback connection is successful, it is also necessary to establish a connection between the T-network channel of the VOIP channel resource for monitoring and the relay resource to be monitored. Once the connection is established, a channel for the VOIP resource module 30 to monitor the relay time slot is established, unless the connection is torn down, the VOIP resource module 30 captures packets through the channel from beginning to end.

步骤S03、VOIP资源模块30对需监听的中继时隙进行抓包。Step S03, the VOIP resource module 30 captures packets for the relay time slots to be monitored.

VOIP资源模块30设置通道参数,具体为远近端IP和端口,编解码类型,打包时长,ec使能开关,静音检测开关,增益控制等,然后对需监听的中继时隙进行抓包。The VOIP resource module 30 sets channel parameters, specifically far and near end IP and port, codec type, packing duration, ec enabling switch, mute detection switch, gain control, etc., and then captures packets for the relay time slots to be monitored.

本发明实施例通过VOIP资源模块30对经过中继时隙的数据流进行监听,从而产生标准格式文件,从而可以根据数据流分析对设备故障进行快速的定位。另外,不需要借助其他的辅助工具,且不影响原有业务即可对中继时隙的数据流进行监听。In the embodiment of the present invention, the VOIP resource module 30 monitors the data flow passing through the relay time slot, thereby generating a standard format file, so that the device failure can be quickly located according to the data flow analysis. In addition, the data flow of the relay time slot can be monitored without using other auxiliary tools and without affecting the original business.

图5提出了本发明一种定位对接业务异常的中继抓包方法另一实施例的流程示意图。FIG. 5 presents a schematic flow chart of another embodiment of a relay packet capture method for locating and docking service exceptions according to the present invention.

参照图5,上述步骤S01之前还包括:With reference to Fig. 5, before above-mentioned step S01 also comprises:

步骤S04、操作维护模块40接收测试命令,并对其进行解析后获得测试参数;Step S04, the operation and maintenance module 40 receives the test command, and obtains the test parameters after analyzing it;

该操作维护模块40可以包括前端窗口单元及后端处理单元。前端窗口单元可以提供可供用户选择的测试选项,该前端窗口单元还可以提供用户直接输入测试命令等,后端处理单元则对用户选择的测试选项进行解析并获得测试参数。The operation and maintenance module 40 may include a front-end window unit and a back-end processing unit. The front-end window unit can provide test options that can be selected by the user, and the front-end window unit can also provide the user to directly input test commands, etc., and the back-end processing unit parses the test options selected by the user and obtains test parameters.

步骤S05、业务控制模块50根据所述测试参数,发送抓包请求至中继资源模块10。Step S05 , the service control module 50 sends a packet capture request to the relay resource module 10 according to the test parameters.

业务控制模块50收到解析的测试参数后,需要对其进行资源有效性判断,若有效则根据该测试参数,发送抓包请求至中继资源模块10;若无效则返回测试参数异常消息至操作维护模块40。中继资源模块10则根据抓包请求,进行指定时隙与固定监听时隙之间的环回接续,并在环回接续成功后,返回业务控制模块接续成功。若环回接续失败,则返回接续失败消息至业务控制模块50,并结束本流程。After the service control module 50 receives the analyzed test parameters, it needs to judge the validity of the resource, if it is valid, it will send a packet capture request to the relay resource module 10 according to the test parameters; if it is invalid, it will return a test parameter exception message to the operation Maintenance module 40 . The relay resource module 10 performs a loopback connection between the designated time slot and the fixed listening time slot according to the packet capture request, and returns to the service control module that the connection is successful after the loopback connection is successful. If the loopback connection fails, return a connection failure message to the service control module 50, and end this process.

上述步骤S01之后进一步包括:After the above step S01, further include:

步骤S06、业务控制模块50预占VOIP资源,并在预占VOIP资源成功后,发送资源接续命令至所述电路交换模块20,同时发送打开通道命令至所述VOIP资源模块30。Step S06 , the service control module 50 reserves VOIP resources, and after successfully preserving VOIP resources, sends a resource connection command to the circuit switching module 20 , and sends an open channel command to the VOIP resource module 30 at the same time.

该业务控制模块50向VOIP资源模块30发送请求,请求预占VOIP通道资源。若VOIP资源模块30中存在空闲的VOIP通道,则返回预占VOIP资源成功消息至业务控制模块50,则业务控制模块50发送资源接续命令至电路交换模块20,同时发送打开通道命令至所述VOIP资源模块30。若VOIP资源模块30中不存在空闲的VOIP通道,则返回预占VOIP资源失败消息至业务控制模块50,则业务控制模块50可以发送环回拆续命令至中继资源模块10,对之前建立的中继时隙环回进行拆续;也可以重新发送请求至VOIP资源模块30,请求VOIP通道资源。The service control module 50 sends a request to the VOIP resource module 30 to reserve VOIP channel resources. If there is an idle VOIP channel in the VOIP resource module 30, then return to reserve the VOIP resource success message to the service control module 50, then the service control module 50 sends a resource connection command to the circuit switching module 20, and sends an open channel command to the VOIP simultaneously Resource module 30. If there is no idle VOIP channel in the VOIP resource module 30, then return to occupy the VOIP resource failure message to the service control module 50, then the service control module 50 can send the loopback dismantling order to the relay resource module 10, set up before The relay time slot is looped back for dismantling; the request can also be resent to the VOIP resource module 30 to request VOIP channel resources.

上述步骤S03之后进一步包括:After the above step S03, further include:

步骤S07、将所述VOIP资源模块30监听的数据包发送至操作维护模块40。Step S07 , sending the data packet monitored by the VOIP resource module 30 to the operation and maintenance module 40 .

VOIP资源模块30根据业务控制模块50发送的打开通道命令,设置通道参数,对需监听的中继时隙进行抓包,并将获取的数据包发送至操作维护模块40,以供用户进行分析。该操作维护模块40也可以包括包文件分析单元,该包文件分析单元对VOIP资源发送的数据包进行分析,并产生分析结果,通过前端窗口单元进行显示,从而使得用户可以根据分析结果对故障进行快速定位,以便及时进行处理。The VOIP resource module 30 sets channel parameters according to the command to open the channel sent by the service control module 50, captures the relay time slots to be monitored, and sends the obtained data packets to the operation and maintenance module 40 for user analysis. The operation and maintenance module 40 can also include a package file analysis unit, which analyzes the data packets sent by the VOIP resource, and generates analysis results, which are displayed by the front-end window unit, so that users can troubleshoot according to the analysis results Quickly locate for timely processing.

图6是本发明一种定位对接业务异常的中继时隙抓包方法另一实施例的流程示意图。FIG. 6 is a schematic flow chart of another embodiment of a packet capture method for relay time slots for locating and docking service exceptions according to the present invention.

参照图6,在上述步骤S03之后还包括:With reference to Fig. 6, also include after above-mentioned step S03:

步骤S08、根据测试结束请求,业务控制模块50释放VOIP资源,并发送关闭通道命令至VOIP资源模块30;同时分别发送环回拆续命令及资源拆续命令至所述中继资源模块10及电路交换模块20。Step S08, according to the test end request, the service control module 50 releases the VOIP resource, and sends a channel closing command to the VOIP resource module 30; simultaneously sends a loopback dismantling command and a resource dismantling command to the relay resource module 10 and the circuit Switch module 20.

业务控制模块50收到测试结束请求后,发送释放VOIP资源请求至VOIP资源模块30,则VOIP资源模块30释放VOIP通道资源。同时业务控制模块50还发送关闭通道命令至VOIP资源模块30,则VOIP资源模块30关闭VOIP通道;发送环回拆续命令至中继资源模块10,则中继资源模块10拆续之前建立的指定时隙到固定监听时隙之间的连接;发送资源拆续命令至电路交换模块20,则电路交换模块20拆续之前建立的用于监听的VOIP通道资源的T网通路与需要监听的中继资源之间的连接。After receiving the test end request, the service control module 50 sends a VOIP resource release request to the VOIP resource module 30, and the VOIP resource module 30 releases the VOIP channel resource. Simultaneously service control module 50 also sends closing channel command to VOIP resource module 30, then VOIP resource module 30 closes VOIP channel; time slot to the connection between the fixed monitoring time slot; send the resource dismantling command to the circuit switching module 20, then the circuit switching module 20 dismantling the T network path of the VOIP channel resource for monitoring and the relay to be monitored before the circuit switching module 20 is dismantled Connections between resources.

在这里需要说明的是,释放VOIP通道资源、环回拆续及资源拆续的执行没有先后顺序,可以同时进行,也可以根据具体情况而设置顺序。What needs to be explained here is that there is no sequence for the execution of releasing VOIP channel resources, loopback dismantling and resource dismantling, they can be performed at the same time, or the order can be set according to specific conditions.

以上所述仅为本发明的优选实施例,并非因此限制其专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above is only a preferred embodiment of the present invention, and does not limit the scope of its patents. Any equivalent structure or equivalent process transformation made by using the description of the present invention and the contents of the accompanying drawings is directly or indirectly used in other related technical fields. All are included in the scope of patent protection of the present invention in the same way.

Claims (10)

1.一种定位对接业务异常的中继抓包方法,其特征在于,包括以下步骤:1. A relay capture method for abnormal location docking business, characterized in that, comprising the following steps: 中继资源模块根据抓包请求,进行指定时隙到固定监听时隙的环回接续;The relay resource module performs the loopback connection from the specified time slot to the fixed listening time slot according to the packet capture request; 在环回接续成功后,电路交换模块进行需监听中继时隙和用于监听的VOIP通道资源之间的接续;After the loopback connection is successful, the circuit switching module performs the connection between the relay time slot to be monitored and the VOIP channel resource used for monitoring; VOIP资源模块设置通道参数,对需监听的中继时隙进行抓包。The VOIP resource module sets channel parameters and captures packets for the relay time slots to be monitored. 2.根据权利要求1所述的方法,其特征在于,所述中继资源模块根据抓包请求,进行指定时隙到固定监听时隙的环回接续的步骤之前还包括:2. The method according to claim 1, wherein the relay resource module further includes before the step of performing the loopback connection from the specified time slot to the fixed listening time slot according to the packet capture request: 操作维护模块接收测试命令,并对其进行解析后获得测试参数;The operation and maintenance module receives the test command, and obtains the test parameters after parsing it; 业务控制模块根据解析后的测试参数,发送抓包请求至所述中继资源模块。The service control module sends a packet capture request to the relay resource module according to the analyzed test parameters. 3.根据权利要求1所述的方法,其特征在于,所述中继资源模块根据抓包请求,进行指定时隙到固定监听时隙的环回接续的步骤之后还包括:3. The method according to claim 1, characterized in that, the relay resource module further includes after the step of carrying out the loopback connection from the specified time slot to the fixed listening time slot according to the packet capture request: 业务控制模块预占VOIP资源,并在预占VOIP资源成功后,发送资源接续命令至所述电路交换模块,同时发送打开通道命令至所述VOIP资源模块。The service control module preempts VOIP resources, and after successfully preempting VOIP resources, sends a resource connection command to the circuit switching module, and at the same time sends an open channel command to the VOIP resource module. 4.根据权利要求1至3中任一项所述的方法,其特征在于,所述VOIP资源模块设置通道参数,对需监听的中继时隙进行抓包的步骤之后还包括:4. according to the method described in any one in claim 1 to 3, it is characterized in that, described VOIP resource module sets channel parameter, also comprises after the step of capturing packets to the relay timeslot that needs monitoring: 将所述VOIP资源模块监听的数据包发送至操作维护模块。Send the data packet monitored by the VOIP resource module to the operation and maintenance module. 5.根据权利要求1至3中任一项所述的方法,其特征在于,所述中继资源模块根据抓包请求,进行指定时隙到固定监听时隙的环回接续的步骤之后还包括:5. The method according to any one of claims 1 to 3, characterized in that, after the step of performing loopback connection from the specified time slot to the fixed listening time slot according to the packet capture request, the relay resource module further includes : 根据测试结束请求,业务控制模块释放VOIP资源,并发送关闭通道命令至VOIP资源模块;同时分别发送环回拆续命令及资源拆续命令至所述中继资源模块及电路交换模块。According to the test end request, the service control module releases the VOIP resource, and sends a channel close command to the VOIP resource module; at the same time, it sends a loopback dismantling command and a resource dismantling command to the relay resource module and the circuit switching module respectively. 6.一种定位对接业务异常的中继抓包装置,其特征在于,包括:6. A relay packet capture device for abnormal location and docking services, characterized in that it comprises: 中继资源模块,用于根据抓包请求,进行指定时隙到固定监听时隙的环回接续;The relay resource module is used to carry out the loopback connection from the specified time slot to the fixed listening time slot according to the packet capture request; 电路交换模块,用于在环回接续成功后,进行需监听中继时隙和用于监听的VOIP通道资源之间的接续;The circuit switching module is used to perform the connection between the relay time slot to be monitored and the VOIP channel resource used for monitoring after the loopback connection is successful; VOIP资源模块,用于设置通道参数,对需监听的中继时隙进行抓包。The VOIP resource module is used to set channel parameters and capture packets for the relay time slots to be monitored. 7.根据权利要求6所述的中继抓包装置,其特征在于,还包括:7. The relay packet capture device according to claim 6, further comprising: 操作维护模块,用于接收测试命令,并对其进行解析后获得测试参数;The operation and maintenance module is used to receive test commands and analyze them to obtain test parameters; 业务控制模块,用于根据解析后的测试参数,发送抓包请求至所述中继资源模块。The service control module is configured to send a packet capture request to the relay resource module according to the analyzed test parameters. 8.根据权利要求6所述的中继抓包装置,其特征在于,所述业务控制模块还用于:8. The relay packet capturing device according to claim 6, wherein the service control module is also used for: 预占VOIP资源,并在预占VOIP资源成功后,发送资源接续命令至所述电路交换模块,同时发送打开通道命令至所述VOIP资源模块。Reserve VOIP resources, and after successfully preserving VOIP resources, send a resource connection command to the circuit switching module, and send an open channel command to the VOIP resource module at the same time. 9.根据权利要求6至8中任一项所述的中继抓包装置,其特征在于,所述VOIP资源模块还用于:9. The relay packet capturing device according to any one of claims 6 to 8, wherein the VOIP resource module is also used for: 将所述VOIP资源模块监听的数据包发送至操作维护模块。Send the data packet monitored by the VOIP resource module to the operation and maintenance module. 10.根据权利要求6至8中任一项所述的中继抓包装置,其特征在于,所述业务控制模块还用于:10. The relay packet capturing device according to any one of claims 6 to 8, wherein the service control module is also used for: 根据测试结束请求,释放VOIP资源,并发送关闭通道命令至VOIP资源模块;同时分别发送环回拆续命令及资源拆续命令至所述中继资源模块及电路交换模块。According to the test end request, release the VOIP resource, and send the channel closing command to the VOIP resource module; at the same time, send the loopback dismantling command and the resource dismantling command to the relay resource module and the circuit switching module respectively.
CN201110329281.1A 2011-10-25 2011-10-25 Relay package capture method and device for positioning interconnection business exception Active CN103079018B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110329281.1A CN103079018B (en) 2011-10-25 2011-10-25 Relay package capture method and device for positioning interconnection business exception

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110329281.1A CN103079018B (en) 2011-10-25 2011-10-25 Relay package capture method and device for positioning interconnection business exception

Publications (2)

Publication Number Publication Date
CN103079018A true CN103079018A (en) 2013-05-01
CN103079018B CN103079018B (en) 2015-01-28

Family

ID=48155418

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110329281.1A Active CN103079018B (en) 2011-10-25 2011-10-25 Relay package capture method and device for positioning interconnection business exception

Country Status (1)

Country Link
CN (1) CN103079018B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110336698A (en) * 2019-07-05 2019-10-15 精英数智科技股份有限公司 A kind of failure data analyzing method, server and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1866886A (en) * 2006-02-05 2006-11-22 华为技术有限公司 Network monitoring system and method for realizing monitoring
CN101179449A (en) * 2007-11-27 2008-05-14 华为技术有限公司 A monitoring system, device and method in an IP network
JP2011182011A (en) * 2010-02-26 2011-09-15 Mitsubishi Electric Corp Repeater, communication system, and abnormality detection method, and program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1866886A (en) * 2006-02-05 2006-11-22 华为技术有限公司 Network monitoring system and method for realizing monitoring
CN101179449A (en) * 2007-11-27 2008-05-14 华为技术有限公司 A monitoring system, device and method in an IP network
JP2011182011A (en) * 2010-02-26 2011-09-15 Mitsubishi Electric Corp Repeater, communication system, and abnormality detection method, and program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110336698A (en) * 2019-07-05 2019-10-15 精英数智科技股份有限公司 A kind of failure data analyzing method, server and storage medium

Also Published As

Publication number Publication date
CN103079018B (en) 2015-01-28

Similar Documents

Publication Publication Date Title
CN107453884B (en) Method and device for detecting service quality of network equipment
CN102204164B (en) Method and apparatus for reporting network packet-losing message
US8248953B2 (en) Detecting and isolating domain specific faults
US7369509B2 (en) System and method for facilitating network troubleshooting
EP4189932A1 (en) Correlating network data with instant app feedback for ml-based customer experience management
WO2012079324A1 (en) Media gateway and method for detecting high way resources thereof
CN100358301C (en) Active measuring system and method
US8031708B2 (en) Methods and apparatus for dual-tone multi-frequency signal analysis within a media over internet protocol network
CN101436960A (en) Test method for monitoring P bearing network quality
US8908557B2 (en) Method and apparatus for monitoring a packet network
CN101640672A (en) Internet protocol network fault location test method, system and device
CN101895642B (en) Method and device for detecting telephone channel faults
US7099280B1 (en) Method and system for logging voice quality issues for communication connections
CN103079018B (en) Relay package capture method and device for positioning interconnection business exception
US8619586B2 (en) System and method for providing troubleshooting in a network environment
WO2007118429A1 (en) Method and apparatus for detecting backward defect indication path condition
CN100450016C (en) Realization method of online maintenance in communication network
CN107835109B (en) Method and system for testing packet transport network defined by software
US10162733B2 (en) Debugging failure of a service validation test
JP2009296060A (en) Remote communication analysis system and communication method
EP3185478A1 (en) Automatic packet capture method and apparatus
CN103238293B (en) Method for monitoring a communication system
Kuwabara et al. Adaptive network monitoring system for large-volume streaming services in multi-domain networks
JP2006094487A (en) Fault isolation configuration for POTS emulation service on FTTx platform
CN110086691A (en) Data package processing method and device

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
TR01 Transfer of patent right

Effective date of registration: 20191223

Address after: 314400 No.11, Weisan Road, Nongfa District, Chang'an Town, Haining City, Jiaxing City, Zhejiang Province

Patentee after: Haining hi tech Zone Science and Innovation Center Co., Ltd

Address before: 518057 Nanshan District Guangdong high tech Industrial Park, South Road, science and technology, ZTE building, Ministry of Justice

Patentee before: ZTE Communications Co., Ltd.

TR01 Transfer of patent right