论文部分内容阅读
Megaco/H.248协议是软交换网络中最重要的网关控制协议,其协议解析对网络分析、故障定位具有重要的意义。该协议支持文本和二进制两种编码规范,通常,文本编码的称为Megaco,二进制编码的称为H.248。其文本编码采用传统的字符串查找方式进行解析效率很低。文中提出了一种基于正则表达式的协议解析方法,可以大大提高协议的解析速度。该方法还可以应用于其他采用文本编码的协议,如SIP、MGCP等。
The Megaco / H.248 protocol is the most important gateway control protocol in the softswitch network. Its protocol analysis is of great significance to network analysis and fault location. The protocol supports both text and binary encoding conventions. Generally, text encoding is called Megaco and binary encoding is called H.248. Its text encoding using traditional string search method to resolve inefficient. In this paper, a method of protocol analysis based on regular expressions is proposed, which can greatly improve the resolution speed of the protocol. The method can also be applied to other protocols that use text encoding, such as SIP, MGCP and the like.