| With the rapid development of the Internet, in particular online video service, the increasing people’s demand for the network speed, the traditional network equipment has become increasingly unable to meet the urgent needs of customers. As known to all, with the expansion of network applications, cable modem has been developed in recent years, and Internet speed can reach 1000Mbps. At present, the trend of Cable Modem access technologies in the world, especially North America, is very strong. The number of users grows by more than 100% per year, and its market share is more than ADSL’s. This thesis is designed and implemented to run network data packet debugging tools on a cable modem.The debugging tool is based on feedback of development engineers, and divided into several parts according to the practical needs of the client-side debugging. The first part is based on the needs of network packets, and to track and analyze according to the data packet flow in the system. The second part is based on diagnostic needs of the network packets, aimed at the diagnosis of the modifying packet contents and packet loss, to prompt users to quickly find the position of the modification and the loss of a network packet. The third part is based on the grab demand of network packets, to grab the packet network interface specified by users, and the specific type of packet according to the filtering rules set by users. According to the data packet process in the system, the entire system, on the basis of needs, achieves network packet tracking, diagnosis and grab. The whole system is implemented step by step, which is not only easy to operate, and clarified to understand.The design of the system, in accordance with the user needs, based on eCos network system development platform, according to the software development process and specifications, is divided as user interface module, the packet flow tracking module, packet loss modify and diagnostic module, and packet handling module. At last, based on eCos development platform, a set of software debugging tools has been realized to ensure the integrity, stability and practicality.Finally, according to the design above, the debugging tool has been implemented based on eCos platform development and applied to the the company’s daily development work and client debugging, which receives positive feedback from our developers and customers, achieves the system’s original needs and reflects effective value and user experience. In the end, future extensions of the system are discussed in the thesis. |