keep_alive and stats analysis