MACsec Configuration Guide for Cisco 8000 Series Routers, Cisco IOS XR Release

PDF

MACsec Configuration Guide for Cisco 8000 Series Routers, Cisco IOS XR Release

Power-on Self-Test KAT for Common Criteria and FIPS

Want to summarize with AI?

Log in

Describes the Power-on Self-Test (POST) Known Answer Test (KAT) mechanism, which verifies the cryptographic integrity of hardware components at startup to support compliance with security standards like FIPS.


A power-on self-test (POST) is a security mechanism that

  • verifies the cryptographic integrity of hardware components at system startup,

  • prevents network traffic flow if integrity checks fail, and

  • supports compliance with security standards such as Common Criteria and FIPS.

Table 1. Feature History Table

Feature Name

Release Information

Description

FIPS 140-3 certification

Release 26.3.1

Introduced in this release on: Modular Systems (8800 [LC ASIC: K100])(select variants only*)

FIPS 140-3 (Federal Information Processing Standard 140-3) certification provides extended cryptographic standards including software, firmware, and hybrid modules.

FIPS 140-3 is used to approve cryptographic modules for the security of both hardware and software products.

*This feature is supported on:

  • 88-LC1-48Y8F-EM

  • 88-LC1-16H16F-EM

Power-on self-tests utilize Known Answer Tests (KATs) executed immediately after powering on the cipher module in MACsec-enabled Cisco 8000 series routers. These tests check cryptographic algorithms (e.g., SHA, DES) on each physical layer chip (PHY) with hardware crypto. If any PHY fails the test, the module enters an error state and does not allow traffic, ensuring only secure, verified hardware is operational.

The POST KAT feature is now available on Cisco 8800 48x100 GbE QSFP28 Line Card (8800-LC-48H), Cisco 8800 36x400GE QSFP56-DD Line Card with MACsec (8800-LC-36FH-M), and Cisco 8606 series routers.

  • On successful POST KAT execution, the system displays logs indicating KAT Test PASSED for each port, and the corresponding line card becomes operational.

  • If POST KAT fails on any PHY, the system logs a KAT Test FAILED message, the line card enters an ERROR state, and network traffic is blocked on that card.

Starting with Cisco IOS XR Release 26.3.1, FIPS 140-3, which is an extended security standard for hardware, software, and firmware cryptographic modules, is supported on Cisco 88-LC1-48Y8F-EM and Cisco 88-LC1-16H16F-EM line cards.

For information about FIPS 140-3, which releases are FIPS compliant, and to view FIPS certifications, see FIPS 140 Certifications.


Guidelines for MACsec FIPS-POST and KAT

Expect boot-up delays

Expect a boot-up delay of approximately 2 to 3 minutes for a line card when you enable Known Answer Test (KAT) compared to when it is not enabled.

Prevent configuration conflicts

Ensure that if Power-On Self-Test (POST) Known Answer Test (KAT) is already enabled on the PHY, you do not configure the hw-module macsec-fips-post location all command again. This prevents configuration conflicts, especially during a configuration restore. Use the show hw-module macsec-mode fips-post command to view the current running configurations in such scenarios.


Enable Power-on Self-Test KAT for MACsec FIPS cards

Ensure MACsec FIPS line cards on routers conduct Power-on Self-Test Known Answer Tests (KAT) to verify cryptographic integrity and support FIPS compliance.

This task is essential when deploying or maintaining routers with MACsec FIPS line cards to confirm hardware cryptographic integrity.

KAT is not enabled by default. You can configure the `hw-module macsec-fips-post` command to enable POST KAT for the MACsec-enabled hardware. With this configuration, the KAT always runs as a self-test during power on. The cryptographic algorithm tests are performed on every physical layer chip (PHY) with hardware crypto once it is powered up.

  • Pass criteria for KAT: Any change in the FIPS mode configuration requires a line card reload. On reload, the FIPS POST is run as part of the line card boot sequence. The subsequent boot (based on the FIPS mode) state re-triggers the KAT. If there are multiple PHYs hardware in a module, the system performs the KAT on each PHY and returns the KAT results. If all PHYs pass the KAT, the system brings up the line card for regular usage.

  • Fail criteria for KAT: Traffic does not pass through a MACsec-enabled PID that failed KAT. If any PHY registers a KAT failure, the module enters an ERROR state and the system displays a critical ERROR SYSLOG output: KAT Test Failed. The system does not allow any traffic or data flow through the interfaces on that line card. Although the interfaces are present, they do not come up or allow traffic to flow through them on a line card that failed KAT. In a modular chassis, all other line cards, except the one that failed the KAT, will be up and running.

Before you begin

  • Install the k9sec package on the router.

  • Confirm that FIPS is supported and enabled on the line card.

Follow these steps to enable and verify Power-on Self-Test KAT for MACsec FIPS cards:

Procedure

  1. Use the hw-module macsec-fips-post command to configure the Power-on Self-Test KAT on the desired line card.

    Example:

    
    Router#config
    Router(config)#hw-module macsec-fips-post location 0/4/CPU0
    Router(config)#commit
    
  2. Use the show hw-module macsec-fips-post command to verify the Power-on Self-Test KAT on a line card.

    Example:

    Before configuring POST KAT:

    
    Router#show hw-module macsec-fips-post 
    Wed Jun 17 09:29:18.780 UTC
     
    Location       Configured     Applied          Action         
    -------------------------------------------------------------
    0/0/CPU0       NO             NO               NONE          >>> LC36     
    0/11/CPU0      NO             NO               NONE          >>> LC48
    
    

    After configuring the command for POST KAT, and before the line card reload:

    
    Router#show hw-module macsec-fips-post 
    Wed Jun 17 09:36:31.932 UTC
     
    Location       Configured     Applied          Action         
    -------------------------------------------------------------
    0/0/CPU0       NO             NO               NONE           
    0/11/CPU0      YES            NO               RELOAD 
    
    

    After the line card reload:

    
    
    Router#show hw-module macsec-fips-post 
    Wed Jun 17 10:03:57.263 UTC
     
    Location       Configured     Applied          Action         
    -------------------------------------------------------------
    0/0/CPU0       NO             NO               NONE           
    0/11/CPU0      YES            YES              NONE 
    
    
  3. Review system logs to verify results for KAT execution on each port.

    Example:

    These are sample logs displayed after a successful KAT. The system performs KAT on each port, but the ports may not be in order in the display output.

    
    Router#show logging | inc KAT
    Wed Jun 10 12:07:29.849 UTC
    LC/0/4/CPU0:Jun 9 10:37:37.521 UTC: optics_driver[159]: %L2-SECY_DRIVER-6-KAT_PASS : KAT Test PASSED for Port No: 0
    LC/0/4/CPU0:Jun 9 10:37:37.522 UTC: optics_driver[159]: %L2-SECY_DRIVER-6-KAT_PASS : KAT Test PASSED for Port No: 28
    LC/0/4/CPU0:Jun 9 10:37:37.522 UTC: optics_driver[159]: %L2-SECY_DRIVER-6-KAT_PASS : KAT Test PASSED for Port No: 27
    LC/0/4/CPU0:Jun 9 10:37:37.522 UTC: optics_driver[159]: %L2-SECY_DRIVER-6-KAT_PASS : KAT Test PASSED for Port No: 1
    LC/0/4/CPU0:Jun 9 10:39:10.393 UTC: optics_driver[159]: %L2-SECY_DRIVER-6-KAT_PASS : KAT Test PASSED for Port No: 2
    LC/0/4/CPU0:Jun 9 10:39:10.393 UTC: optics_driver[159]: %L2-SECY_DRIVER-6-KAT_PASS : KAT Test PASSED for Port No: 6
    LC/0/4/CPU0:Jun 9 10:39:10.393 UTC: optics_driver[159]: %L2-SECY_DRIVER-6-KAT_PASS : KAT Test PASSED for Port No: 7
    LC/0/4/CPU0:Jun 9 10:39:10.393 UTC: optics_driver[159]: %L2-SECY_DRIVER-6-KAT_PASS : KAT Test PASSED for Port No: 8
    
    

    These are sample logs displayed in KAT failure scenarios:

    
    Router#show logging | inc SECY
    Thu Jul 16 09:13:29.217 UTC
    LC/0/7/CPU0:Jul 16 08:41:30.709 UTC: optics_driver[152]: %L2-SECY_DRIVER-0-KAT_FAIL_DETECTED : KAT Test FAILED for Port No: 0 
    LC/0/7/CPU0:Jul 16 08:41:30.709 UTC: optics_driver[152]: %L2-SECY_DRIVER-0-KAT_FAIL_DETECTED : KAT Test FAILED for Port No: 47 
    LC/0/7/CPU0:Jul 16 08:41:30.709 UTC: optics_driver[152]: %L2-SECY_DRIVER-0-KAT_FAIL_DETECTED : KAT Test FAILED for Port No: 7 
    LC/0/7/CPU0:Jul 16 08:41:30.709 UTC: optics_driver[152]: %L2-SECY_DRIVER-0-KAT_FAIL_DETECTED : KAT Test FAILED for Port No: 6
    
    

MACsec FIPS line cards run Power-on Self-Test KAT upon reload. Successful PASS results are logged for each port; failures are flagged for further troubleshooting.

What to do next

If any port reports KAT FAIL, investigate and resolve hardware or configuration issues before continuing with production use.