Demand drives wireless sensor network (WSN) to a promising domain, and interconnecting WSN to current network infrastructure attracts much more attention nowadays. An interconnection method has been proposed, which connected the large-scale WSN to Internet based on IPv6, considering simplicity, flexibility, reliability and low power consumption. In this paper, based on the existing researches, we put forward a head-compression way to simplify the TCP/IP protocol stack, referring to the IPv6 over Low power WPAN (6LoWPAN) technology. Thus we can make application of TCP/IP in our WSN module possible. Our design has been conducted in the Network Simulator 2 (NS2) environment, and stimulation results illustrated that the head-compression mechanism in the WSN module is conducive to improving the message transmission ratio of success, reducing the end to end delaying and decreasing the resource consumption of MAC layer, which satisfies the requirements of WSN.