Guidance · Kernel 2 · Certification

Kernel 2 Relay Resistance: Grace Periods, DF8306 and the 2027 Tests

Mastercard now expects the Kernel 2 relay resistance grace periods to add up to close to 7 ms, and from January 2027 it adds tests that already approved kernels must pass to keep or renew their Letter of Approval. Nothing changes in Book C-2: the rules below map to steps that are already in the specification. This guide shows where, and what to check before your next submission.

What the kernel measures

When both the card and the reader support relay resistance, Kernel 2 times the EXCHANGE RELAY RESISTANCE DATA (ERRD) command. The card answers with its own random number and three timings: the Min Time and Max Time For Processing Relay Resistance APDU, and the Device Estimated Transmission Time For Relay Resistance R-APDU (Book C-2 v2.12, section 3.7).

The kernel turns the raw Time Taken into the Measured Relay Resistance Processing Time, tag DF8306, in units of 100 µs (step SR1.18):

DF8306 = MAX(0, Time Taken div 100
                − Terminal Expected Transmission Time (C-APDU)
                − MIN(Device Estimated, Terminal Expected) Transmission Time (R-APDU))

A note under SR1.18 matters for calibration: any fixed, predictable latency between starting the timer and sending the command, or between receiving the response and stopping the timer, should be compensated in the implementation, not hidden in a larger grace period.

How the result is judged

  1. Too fast (SR1.19 to SR1.21): if DF8306 is below Min Time minus the Minimum Relay Resistance Grace Period, the transaction ends with END APPLICATION and a CARD DATA ERROR.
  2. Too slow, with retries left (SR1.22 to SR1.27): if DF8306 is above Max Time plus the Maximum Relay Resistance Grace Period and the RRP counter is below 2, the kernel generates a new Unpredictable Number and sends ERRD again. That allows up to three ERRD commands in total.
  3. Still too slow (SR1.28, SR1.29): the kernel sets Relay resistance time limits exceeded, TVR byte 5 bit 3.
  4. Accuracy (SR1.30, SR1.31): if the card and terminal transmission times disagree beyond the Relay Resistance Transmission Time Mismatch Threshold, or the measured time exceeds Min Time by more than the Relay Resistance Accuracy Threshold, the kernel sets Relay resistance threshold exceeded, TVR byte 5 bit 4.

The Terminal Action Codes then decide whether those TVR bits decline the transaction or send it online. Paste a Kernel 2 TVR in the TVR and TSI Decoder with the Kernel 2 layout to read byte 5.

Setting the grace periods

RRP relies on two terminal parameters: DF8132 Minimum Relay Resistance Grace Period (Min Grace) and DF8133 Maximum Relay Resistance Grace Period (Max Grace), both 2 bytes in units of 100 µs. They define a tolerance window around the card's window that accounts for inaccuracies in the terminal's timing measurements:

  • Min Grace prevents a transaction from being aborted when the ERRD command appears to be processed too quickly (SR1.19 to SR1.21);
  • Max Grace prevents a transaction from being incorrectly flagged as at risk when the ERRD command appears to be processed too slowly (SR1.22 to SR1.29).

Book C-2 sets no values. Mastercard's November 2026 communiqué to reader vendors does:

  • Strongly recommended: neither Min Grace nor Max Grace is less than 2 ms.
  • Mandatory: Min Grace plus Max Grace does not exceed 7 ms.
  • Recommended: use the full 7 ms window whenever possible. Optimised implementations with stable and accurate timing may not need all of it, but Mastercard and its laboratories may ask for a technical justification or extra tests when the total is below 6 ms. Mastercard will update the pass criteria once it has collected enough data.
ValueUnits of 100 µsTag value
2 ms (minimum for each)200014
3.5 ms (half of 7 ms)350023
5 ms500032
6 ms (total below which you may be challenged)60003C
7 ms (maximum total)700046

For example, DF8132 = 0014 and DF8133 = 0032 give 2 ms + 5 ms = 7 ms. How you split the 7 ms depends on where your timing error lies: a reader that tends to measure long needs more room above the window. Mastercard has released an RRP Calibration document to vendors and laboratories to help choose values for a given terminal.

DF8306 in accuracy tests

Mastercard's RRP accuracy tests can now compute the Terminal Transmission Time from DF8306 instead of Time Taken, with immediate effect. Most test environments already output DF8306, so nothing changes on the bench. The January 2027 Mastercard test environment makes the Time Taken output optional. Make sure your kernel outputs DF8306 with the value it actually used in SR1.19 to SR1.30.

What the January 2027 tests check

Mastercard's Contactless Reader V4.1 test release adds Kernel 2 functional tests. They test behaviour Book C-2 already requires:

TestBook C-2 v2.12What to verify
Latest ERRD values are usedSR1.14 stores Min Time, Max Time and Device Estimated Transmission Time from each ERRD response; SR1.22 uses themIf the card changes Max Time between responses, the decision to send a third ERRD uses the value from the second response, not a value cached from the first
Unpredictable Number cannot be predictedSection 8.1; SR1.23 generates a new Unpredictable Number for each retry, and it is also the Terminal Relay Resistance EntropyHardware RNG tested to NIST SP 800-22A, no correlation between successive values, no externally visible pre-generated buffer, no forced fallback to a software RNG
Read-record parsingS4.24 to S4.27: each READ RECORD response is parsed as it arrives, and a parsing error ends the transactionRelaxed: the kernel may abort after the last record when an earlier record failed to parse

Kernels and PCD derivatives that already have a Letter of Approval must run the first two tests (RRP and Unpredictable Number) once, in addition to their Module Integration Tests, formerly called regression tests. A product that fails either test gets no Letter of Approval, including for renewal and derivative submissions. Mastercard will announce the test release in early 2027 and intends to make it effective as soon as it is available.

Checklist before your next submission

  • DF8132 and DF8133 are each at least 0014 (2 ms) and add up to no more than 0046 (7 ms), ideally close to it.
  • If the total is below 6 ms, you have measurements that justify it.
  • Fixed timer latency is compensated in the code, not in the grace periods.
  • DF8306 is output and matches the value used in the checks.
  • ERRD response timings are re-read on every response, never cached from the first one.
  • Each ERRD retry uses a fresh Unpredictable Number from a tested hardware RNG.
  • Run the two new tests before any renewal or derivative submission.

To see which Book C-2 steps your kernel went through for one transaction, a kernel log that names each requirement helps: moka Log Extract builds that trace. For the wider differences between Mastercard and Visa contactless, read Kernel 2 vs Kernel 3.

Sources: EMV Contactless Book C-2 Kernel 2 Specification v2.12 (section 3.7, steps SR1.14 to SR1.31, section 8.1, data elements A.1.85, A.1.87 and A.1.93); Mastercard Contactless Reader Vendor Approval Communiqué, November 2026, sent to vendors and laboratories.

← All guidance