auto set packet size