作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2008, Vol. 34 ›› Issue (22): 94-96. doi: 10.3969/j.issn.1000-3428.2008.22.032

• 网络与通信 • 上一篇    下一篇

基于包截获技术的局域网内主机数的探测

佘华君,姜开达   

  1. (上海交通大学网络信息中心,上海 200030)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2008-11-20 发布日期:2008-11-20

Detection of Hosts Number in LAN Based on Packets Capture Technique

SHE Hua-jun, JIANG Kai-da   

  1. (Network & Information Center, Shanghai Jiaotong University, Shanghai 200030)
  • Received:1900-01-01 Revised:1900-01-01 Online:2008-11-20 Published:2008-11-20

摘要: 针对大型网络运营管理中通常需要了解网络中是否存在局域网的问题,提出一种探测大型网络中局域网的有无,并统计局域网内活动主机数的方法。采用网络包截获技术,并通过对截获包的序列号、源地址、目的地址、源端口、目的端口进行分析来实现主机的识别算法。在实际网络环境下长期运行的结果表明,以该算法开发的软件能够较准确地探测出大型网络内局域网的数目以及各局域网内的活动主机数目。

关键词: 局域网, 网络地址转换, TCP/IP协议, 主机探测

Abstract: There are many needs to know the existence of LAN in the management of big networks. Facing this problem, a technique to detect the existence of LAN in a large network is described, and the number of active hosts in the LAN is counted. The technique is based on the technology of packets capture. By processing the IP_SEQ, SRC_IP, SRC_PORT, DEST_IP, and DEST_PORT of the captured packets, those packets send from individual machines can be discriminated, and the number of machines can be determined. The implementation, tested on real network environment, can properly count the number of LAN in the network and the number of hosts behind a LAN, which demonstrates the feasibility of the algorithm.

Key words: LAN, Network Address Translation(NAT), TCP/IP, hosts detection

中图分类号: