There isn't really a "TCP/IP service" to restart. Can you describe in more detail what is happening when you lose the connection?
Is this a TCP socket that drops? You can close and open TCP sockets as necessary.
Does the module fail to renew a DHCP address?
Is the Ethernet connection losing link?
You can use ifdown() and ifup() to bring the entire Ethernet connection down and back up again.