| Multicast, widely used for its advantages of saving bandwidth utilization, reducing load for network and realizing parallel reception for recepient, has been an important network technology. Recently, the study on the application of multicast has been a hot topic and the testing on the function and performance of multicast has been more and more important. IGMP (Internet Group Management Protocol), as the dynamic multicast management protocol, is used to build and control multicast. Therefore, the test for IGMP is one of important tests for multicast protocol.At present, nearly there is not any formed tool to test multicast on Chinese Linux Operating System. That is why this thesis aims to design and realize the test tool for IGMP on Linux Operating System. As a result, basing on the existed function interface, the author designed and implementated the test tool for IGMP under Linux, and completed the practical utilization of the test tool by testing IGMP on router with it.In this thesis, the author introduces the basic content of the three IGMP versions and the main improvement of the later version compared with the former version, carefully studies the standard RFC documents of multicast protocol, designs and realizes the test tool for IGMP. The test tool mainly consists of Shell module, interface drive & interface control module, message sending and receiving module and protocol control module. In the process of testing IGMP with this tool, the author firstly builds automatically test environment and selects long-distance cross-section test method suitable for the relay system, and then performs the function tests for IGMP. On specific test, firstly, the author transforms the hand-programmed test case into automatic test script with TCL scripting language, and then tests the scripts by calling the conmands supplied by the test tool implemented above, finally, makes the scripts and the router interact to reach the test goal. Actually, these automated test scripts can also be used to perform regression test for later upgraded versions of the protocol on router. |