QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1310|回复: 6

如何测试一个内核模块或系统的是否运行?

[复制链接]
发表于 2003-5-8 11:02:02 | 显示全部楼层 |阅读模式
本人最近在作毕设移动IP(Mobile IP)的研究

我已经把两个移动IP系统嵌入内核和编译安装了。
这两个系统是
1)Standford University  MosquitoNet-MIP 实现系统。
2)Columbia University  Cellular 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系统正在运行并且运行正常?
大家能提供什么建议吗?
发表于 2003-5-8 20:34:28 | 显示全部楼层
看有没有加入很简单: lsmod
看有没有工作的话,可以加一些调试信息或输出结果
回复

使用道具 举报

发表于 2003-5-8 22:19:04 | 显示全部楼层
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.
回复

使用道具 举报

 楼主| 发表于 2003-5-9 06:35:22 | 显示全部楼层
what is  ethereal and -Al ? How to use them ?
I know linux a little .
回复

使用道具 举报

发表于 2003-5-9 07:58:52 | 显示全部楼层
http://www.ethereal.com/

'ps -Al' is the ps command with options.  
回复

使用道具 举报

 楼主| 发表于 2003-5-9 09:09:50 | 显示全部楼层
谢谢cheungming的回答。
chenugming你能介绍一些国外的关于移动IP或linux的网站或论坛吗?
国内的资源很少,我想到国外问。
回复

使用道具 举报

发表于 2003-5-9 10:03:51 | 显示全部楼层
welcome. www.lwn.net is a good place.
linuxnow.com
http://www.linuxhq.com/lkprogram.html
..
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-5-18 07:57 , Processed in 0.073066 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表