TCP/IP prototype
implement 4 commands