Mosh is started up as a standard tcp/ip ssh connection, but once keys have been exchanged and the protocol has been initiated, it works over a tcp/udp connection. Mosh maintains its session even when it “roams” (when the client endpoint changes to different IP addresses) which is just what you need on a mobile device.