Implement the adaptive packet generating scheme