摘要
以往对协议功能,性能的研究都是采用网络仿真的方式进行的。需要将协议实现到仿真器所要求的框架中去,在实现过程中代码的改动是大量的,对于测试问题来说,直接的仿真结果并不能客观的代表具体协议实现的好坏。要想解决这个问题必须通过自动的方式对代码进行更改,即通过代码植入技术来解决。文中通过改动主流的网络仿真器NS框架,并结合代码植入技术实现了一个原型协议测试工具PTB。
Previous work on protocol function and performance testing was based on the network emluator. The protocol need to be implemented in the framework of the network emluator, in this case, much code must be modified. For the testing problem, the firsthand emulational result can't estimate the protocol implement objectively. We solve this problem by automatically modifying the code, namely code instrumentation technology. In this paper we implement a protocol testing tool PTB by changing the framework of ns and combining code instrumentation technology.
出处
《电子科技》
2007年第2期46-50,共5页
Electronic Science and Technology
关键词
网络仿真器
测试工具
代码植入
network emluator
testing tool
code instrumentation