如何测试一个内核模块或系统的是否运行?
本人最近在作毕设移动IP(Mobile IP)的研究我已经把两个移动IP系统嵌入内核和编译安装了。
这两个系统是
1)Standford UniversityMosquitoNet-MIP 实现系统。
2)Columbia UniversityCellular IP 实现系统。
现在导师给我们的任务是,如何测试系统是否正在运行。要找出工具和测试方案。
比如说:
一)在MosquitoNet-MIP系统,先安装他的patch,然后在内核配置中选入mobile ip support使其编译进入到linux内核中 .最后在编译他的user-leve daemon .
我的问题是
1)我如何测试内核中加入了mobile ip support 模块?如果我运行他的mobile host daemon 和home agent daemon ,我如何知道他在运行或是否起作用?
有什么linux下测试的命令或工具来测试吗?linux下有什么网络工具来跟踪测试数据包的路由或IP地址之类的工具吗?
总之,你要用什么办法或工具来证明你安装的MosquitoNet-MIP系统正在运行并且运行正常?
大家能提供什么建议吗? 看有没有加入很简单: lsmod
看有没有工作的话,可以加一些调试信息或输出结果 for kernel, add some printk in its code and recompile and install. use dmesg to check if printed out.
for user space, ps -Al can check all processes.
for network analyzer, use ethereal.
all this can verify if it is running. but for running properly, who know?
u can only verify whether it works via using. for example, dynamically enter/leave a network, check if archieve the mobileip requirement. i read mobile ip protocol 3 years before. so i can not help u more now. what isethereal and -Al ? How to use them ?
I know linux a little . http://www.ethereal.com/
'ps -Al' is the ps command with options.:wink: 谢谢cheungming的回答。
chenugming你能介绍一些国外的关于移动IP或linux的网站或论坛吗?
国内的资源很少,我想到国外问。 welcome. www.lwn.net is a good place.
linuxnow.com
http://www.linuxhq.com/lkprogram.html
..
页:
[1]