By reducing the TCP / IP stack, we adopt full assembly programming method, flexible message control mechanism and buffer management, and realize a TCP / IP stack in limited program space. 通过对TCP/IP协议进行裁减,采用全汇编语言程序设计方法、灵活的消息控制机制和缓冲区管理,在有限的代码空间内实现了TCP/IP协议栈。