| TCP protocol is the most board used transport protocol on the internet now, it provide connection-oriented, reliable, end-to-end packet transport service for user. The total number of bytes on the Internet 95 percent of the total reported, and 90% of the number of transmission using TCP protocol, but is mainly applied to TCP protocol error rate is low and caused network congestion, the loss was the main reason the cable link.Under the environment of mixed network environment, congestion is not only the reason cause of packet loss, the bit error will also bring packet loss. Therefore, how to improve TCP in a heterogeneous network environment performance has become an active area of research.In order to improve TCP protocol in a heterogeneous network performance, we need to improve the congestion algorithm under heterogeneous network, but windows is not open source evironment, so we need to implement TCP protocol. This paper give a way that to implement a TCP/IP protocol driver to instead the windows TCP protocol and we can improve the congestion on the protocol driver.This paper mainly introduced the technology, material method and the implementing process of us developing the TCP stack.According to the instruction and regulation of the protocol driver in the windows driver development kit, we can develop a protocol driver which low interface conform Network Driver Interface Specification(NDIS), so we needn't to care about bottom NIC driver. And its high layer interface conform Transport Driver Interface (TDI) regulation, so we needn't care about high layer application. For these reasons, we choose NDIS and TDI for our specification of whole high-low-layer interfaces.This paper first introduces the model of the TCP/IP stack and the theory of the windows network driver development. Then expatiate every part of our NDIS protocol driver, it consist of four part, NDIS interface, NDIS protocol driver, TDI client, application program. NDIS implement the operation to the low layer NIC driver. NDIS protocol driver is the prime part ,in this part we implement the TCP/IP stack. TDI client will complete the request of the application program or make new operation according to the request, then transfer the request to NDIS protocol driver. The application layer is the tool used to test the protocol driver system.Then the paper introduces the NDIS interface and the design of the TCP/IP stack. NDIS interface mainly complete the dynamic binding to network card, send/receive packet and status maintenance, and also complete the IRP request from the high-level user program. TCP/IP protocol stack communicate with TDI client through upper layer, and communicate with NDIS, send the network packet. Now the TCP/IP stack mainly implements ARP, TCP, IP protocol, it needs to be improved. |