Octane and cetane numbers measure a fuel's resistance to self-ignition or knocking. Octane numbers refer to gasoline's resistance to knocking, measured using two tests - the Research Octane Number (RON) and Motor Octane Number (MON). Cetane numbers refer to diesel fuel's ease of ignition, with higher numbers indicating easier ignition. Fuels like gasoline and diesel have different typical octane/cetane numbers and properties that affect their use in engines.