| Nowadays, as the LAN (Local Area Network) is popularized in the enterprises, the development of the management software on LAN is paid more and more attention. That the management software may run in a complex environment with a huge number of network endpoints may make the testing on the management software even more difficult. To set up the testing environment needs a lot of hardware resource, in addition, these resource have to be set up by someone. As a result, the cost is quit high. As a solution, it gives a design and implementation of a software tool which is used to simulate the testing environment of the management software in this paper.After the situation of the software testing tools on LAN is analyzed and the common method to develop such a tool is researched, due to the fact that this kind of tools is in lack, it gives a design of simulating a LAN endpoint on three levels. They are IP/MAC level, TCP/IP stack level and network service level. The endpoints simulated with this design are able to be detected by the endpoint scanner using PING, NMAP and TELNET successfully.The two key technologies are the OS detection technology via TCP/IP fingerprinting used by NMAP and the method of simulating network service using TUN/TAP device. With well research on them, TCP/IP stack is simulated according to the fingerprinting library NMAP defines, and network service is simulated via the listening network services on TUN/TAP device.When the implementation is finished, it is tested, and the result that it matches the demand is very satisfying. It is proved that the design of simulating LAN endpoint on IP/MAC, TCP/IP stack and network service three levels works well. So it resolves the testing environment problem on LAN management software to a large degree. |