Abstract: A controller includes a processor and a memory storing processor-executable instructions. The processor is programmed to receive a signal indicating engine knocking, adjust an octane requirement in response to the signal, and request a fuel for refueling meeting the octane requirement. The processor may also be programmed to avoid a gas station of most recent refueling in response to the signal and retard ignition timing of a spark plug in response to the signal.