Packet handling + simple ping-pong