Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    show security macsec statistics

    Syntax

    show security macsec statistics<brief | detail><interface interface-name>

    Release Information

    Command introduced in Junos OS Release 13.2X50-D15.

    Description

    Display Media Access Control Security (MACsec) statistics.

    Options

    none
    —

    Display MACsec statistics in brief form for all interfaces on the switch.

    brief | detail
    —

    (Optional) Display the specified level of output. Using the brief option is equivalent to entering the command with no options (the default). The detail option displays additional fields that are not visible in the brief output.

    Note: The field names that appear in this command output only when you enter the detail option are mostly useful for debugging purposes by Juniper Networks support personnel.

    interface interface-name
    —

    (Optional) Display MACsec statistics for the specified interface only.

    Required Privilege Level

    view

    List of Sample Output

    show security macsec statistics interface xe-0/1/0 detail

    Output Fields

    Table 1 lists the output fields for the show security macsec statistics command. Output fields are listed in the approximate order in which they appear.

    The field names that appear in this command output only when you enter the detail option are mostly useful for debugging purposes by Juniper Networks support personnel. Those field names are, therefore, not included in this table.

    Table 1: show security macsec statistics Output Fields

    Field Name

    Field Description

    Level of Output

    Interface name

    Name of the interface.

    All levels

    Fields for Secure Channel transmitted

    Encrypted packets

    Total number of packets transmitted out of the interface in the secure channel that were secured and encrypted using MACsec.

    Data packets are sent in the secure channel when MACsec is enabled, and are secured using a secure association key (SAK). The SAK is generated by the key server when MACsec is enabled using static connectivity association key (CAK) security mode, and configured by the user when MACsec is enabled using static SAK security mode.

    All levels

    Encrypted bytes

    Total number of bytes transmitted out of the interface in the secure channel that were secured and encrypted using MACsec.

    Data packets are sent in the secure channel when MACsec is enabled, and are secured using a secure association key (SAK). The SAK is generated by the key server when MACsec is enabled using static connectivity association key (CAK) security mode, and configured by the user when MACsec is enabled using static SAK security mode.

    All levels

    Protected packets

    Total number of packets transmitted out of the interface in the secure channel that were secured but not encrypted using MACsec.

    Data packets are sent in the secure channel when MACsec is enabled, and are secured using a secure association key (SAK). The SAK is generated by the key server when MACsec is enabled using static connectivity association key (CAK) security mode, and configured by the user when MACsec is enabled using static SAK security mode.

    All levels

    Protected bytes

    Total number of bytes transmitted out of the interface in the secure channel that were secured but not encrypted using MACsec.

    Data packets are sent in the secure channel when MACsec is enabled, and are secured using a secure association key (SAK). The SAK is generated by the key server when MACsec is enabled using static connectivity association key (CAK) security mode, and configured by the user when MACsec is enabled using static SAK security mode.

    All levels

    Fields for Secure Association transmitted

    Encrypted packets

    Total number of packets transmitted out of the interface in the connectivity association that were secured and encrypted using MACsec.

    The total includes the data packets transmitted in the secure channel and secured using a SAK and the control packets secured using a connectivity association key (CAK).

    All levels

    Protected packets

    Total number of packets transmitted out of the interface in the connectivity association that were secured but not encrypted using MACsec.

    The total includes the data packets transmitted in the secure channel and secured using a SAK and the control packets secured using a connectivity association key (CAK).

    All levels

    Fields for Secure Channel received

    Accepted packets

    The number of received packets that have been accepted by the secure channel on the interface. The secure channel is used to send all data plane traffic on a MACsec-enabled link.

    A packet is considered accepted for this counter when it has been received by this interface and it has passed the MACsec integrity check.

    This counter increments for traffic that is and is not encrypted using MACsec.

    All levels

    Validated bytes

    The number of bytes that have been validated by the MACsec integrity check and received on the secure channel on the interface. The secure channel is used to send all data plane traffic on a MACsec-enabled link.

    This counter does not increment when MACsec encryption is disabled.

    All levels

    Decrypted bytes

    The number of bytes received in the secure channel on the interface that have been decrypted. The secure channel is used to send all data plane traffic on a MACsec-enabled link.

    An encrypted byte has to be decrypted before it can be received on the receiving interface. The decrypted bytes counter is incremented for received traffic that was encrypted using MACsec.

    All levels

    Fields for Secure Association received

    Accepted packets

    The number of received packets that have been accepted in the connectivity association on the interface. The counter includes all control and data plane traffic accepted on the interface.

    A packet is considered accepted for this counter when it has been received by this interface and it has passed the MACsec integrity check.

    All levels

    Validated bytes

    The number of bytes that have been validated by the MACsec integrity check and received on the connectivity association on the interface. The counter includes all control and data plane traffic accepted on the interface.

    This counter does not increment when MACsec encryption is disabled.

    All levels

    Decrypted bytes

    The number of bytes received in the connectivity association on the interface that have been decrypted. The counter includes all control and data plane traffic accepted on the interface.

    An encrypted byte has to be decrypted before it can be received on the receiving interface. The decrypted bytes counter is incremented for received traffic that was encrypted using MACsec.

    All levels

    Sample Output

    show security macsec statistics interface xe-0/1/0 detail

    user@host> show security macsec statistics interface xe-0/1/0 detail
      Interface name: xe-0/1/0
        Secure Channel transmitted
            Encrypted packets: 123858
            Encrypted bytes:   32190903
            Protected packets: 0
            Protected bytes:   0
        Secure Association transmitted
            Encrypted packets: 123858
            Protected packets: 0
        Secure Channel received
            Accepted packets:  123877
            Validated bytes:   0
            Decrypted bytes:   32196238
        Secure Association received
            Accepted packets:  123877
            Validated bytes:   0
            Decrypted bytes:   32196238
        Error and debug
        Secure Channel transmitted packets
            Untagged: 0, Too long: 0
        Secure Channel received packets
            Control: 0, Tagged miss: 3202804
            Untagged hit: 0, Untagged: 0
            No tag: 0, Bad tag: 0
            Unknown SCI: 0, No SCI: 0
            Control pass: 0, Control drop: 0
            Uncontrol pass: 123877, Uncontrol drop: 0
            Hit dropped: 0, Invalid accept: 0
            Late drop: 0, Delayed accept: 0
            Unchecked: 0, Not valid drop: 0
            Not using SA drop: 0, Unused SA accept: 0
    

    Published: 2014-04-24