The invention discloses an
internet of things module gateway collaborative IPv4 service transparent
transmission system and method, and aims to solve the core contradiction that an IPv6 single-stack
internet of things module with strictly
limited resources cannot efficiently access an IPv4
server. According to the invention, bidirectional protocol conversion is realized through cooperation of the module side and the gateway side. A lightweight CLAT module is integrated on the module side, an IPv4 message generated by a standard IPv4 Socket API called by an application program is intercepted, the IPv4 message is packaged into an IPv6 message according to the RFC 2473 IP-in-IP standard, and the IPv6 message is sent to a gateway through an LTE network in cooperation with a deeply-
cut LwIP
protocol stack. The gateway side receives the IPv6 message through the PLAT module, decapsulates and extracts an original IPv4 message, then completes
dynamic mapping of a module IPv6 address and a gateway
public network IPv4 address through an NAT44 engine, and forwards the IPv6 message to a target IPv4
server; and the flow is reversely executed in the downlink direction. And meanwhile, the NAT table activity and gateway fault automatic switching are maintained through a
heartbeat engine. The IPv4 service transparent
transmission system and the IPv4 service transparent transmission method meet the scene requirements of low
power consumption and high real-time property of
the Internet of Things.