Attempt at smarter network protocol