我来我网
https://5come5.cn
 
您尚未 登录  注册 | 菠菜 | 软件站 | 音乐站 | 邮箱1 | 邮箱2 | 风格选择 | 更多 » 
 

本页主题: [求助]一个关于网络的题目 显示签名 | 打印 | 加为IE收藏 | 收藏主题 | 上一主题 | 下一主题

cnm



性别: 帅哥 状态: 该用户目前不在线
头衔: 战略研究所长
等级: 荣誉会员
家族: 战略研究所
发贴: 6542
威望: 3
浮云: 416
在线等级:
注册时间: 2005-10-09
最后登陆: 2021-11-05

5come5帮你背单词 [ lovely /'lΛvli/ a. 美丽的,可爱的,有趣的,令人愉快的 ]


[求助]一个关于网络的题目

An utility to test the availability of Internet Application.
--------------------------------------------------------------------------------

Just like ‘ping’ to test the IP layer availability, a small program should be designed,
developed, to test the availability of Internet Applications like, WWW/FTP/TFTP/DNS/DHCP/SNMP.
The utility could be in a CLI or GUI user interface.
The input is the FQDN or IP address of the target computer for testing.
The output of the utility shall contain the following
- The name of your program
- The date/time your program started
- The availability of the Internet Application services
- The time used to get the service, just like a ‘ping’, such as www-ping, ftp-ping, dhcp-ping, …

Example:
c:\>dhcp-ping 202.126.3.16
DHCP-PING (ver.1.2) is an utility to test the availability of DHCP service.
The current date/time: 2006/11/06 10:22:54
DHCP service is available from server [202.126.3.16].
The response time is 305ms.
c:\>

原题就是这样了,哪位蝈蝈能帮忙看一下,谢谢了
顶端 Posted: 2007-01-12 19:04 | [楼 主]
ufly



性别: 帅哥 状态: 该用户目前不在线
等级: 希望之光
发贴: 1930
威望: 0
浮云: 1366
在线等级:
注册时间: 2006-06-19
最后登陆: 2010-10-14

5come5帮你背单词 [ employ /im'ploi/ vt. & n. 使用,雇用 ]


先把你选的服务的协议分析一下,看看客户端和服务端的对应端口以及应答信息,然后根据这些来写。
客户端向服务端发送请求,同时启动一个计时器等待服务端应答数据,然后分析服务端返回的数据,如果接受连接就说明有这个服务,再加上程序名、时间之类的信息就行了。
为了防止网络偶尔出错,最好多发几个请求,只要有一个成功就可以认为服务存在,时间就取成功应答的平均值。
相当于一个port scanner,不过要简单的多,因为只要分析一类端口。


[ 此贴被ufly在2007-01-12 21:58重新编辑 ]
顶端 Posted: 2007-01-12 21:48 | [1 楼]
我来我网·5come5 Forum » 程序员之家

Total 0.013648(s) query 8, Time now is:05-20 23:58, Gzip enabled
Powered by PHPWind v5.3, Localized by 5come5 Tech Team, 黔ICP备16009856号