Skip to content
logo
ecu.test 2025.3 Help
Port SERVICEACCESS - MACSEC πŸ›ˆ
  • English
  • Deutsch
Initializing search
    • Getting Started
    • Overview
    • ecu.test Main program
    • Further included programs
    • Tools
      • A&D: iTest
      • ASAM: ACI
      • ASAM: iLinkRT
      • ASAM: XIL
      • ASAP: STEP
      • ATI: VISION
      • AVL: LYNX
      • AVL: PUMA
      • Basler: pylon
      • Beckhoff: TwinCAT
      • Digiteq: FG4 MultiBox
      • Digiteq: MGB
      • dSPACE: AURELION
      • dSPACE: ControlDesk
      • dSPACE: ModelDesk
      • dSPACE: MotionDesk
      • dSPACE: RTMaps
      • dSPACE: XIL API
      • EA: UTA 12
      • EMVA: GenICam
      • ESI: SimulationX
      • ETAS: BOA
      • ETAS: COSYM-SIL
      • ETAS: INCA
      • ETAS: LABCAR-PINCONTROL
      • FEP
      • FEP3
      • FEV: MorphΓ©e
      • froglogic: Squish
      • Google: ADB
      • GΓΆpel: Video Dragon
      • Hexagon: VTD
      • HMS: ACT - Restbussimulation
      • HMS: Legacy Bus Interfaces (VCI V2)
      • HMS: VCI V4
      • HORIBA FuelCon: TestWork
      • IDS: uEye
      • IPETRONIK: ETHOS
      • IPG: CarMakerHeadless
      • IPG: CarMaker|RealTimeMaker
      • JS Foundation: Appium
      • Keysight: CDS
      • Keysight: ESD
      • KS Engineers: TornadoACI
      • Lauterbach: TRACE32
      • MAGNA: BluePiraT
      • Mathworks: MATLAB & Simulink
      • Mechanical Simulation Corporation: CarSim
      • MicroNova: NovaCarts
      • Modelica Association: FMI
      • MOTEON: MTB
      • NI: LabVIEW
      • NI: VeriStand
      • NI: VISA
      • Opal-RT: RT-LAB
      • PEAK: PCAN
      • PLS: UDE
      • QUANCOM: QLIB
      • RA Consulting: DiagRA D
      • ROS2
      • SAE: PassThru
      • SFC: Selenium
      • Softing: DTS
      • Speedgoat: SimulinkRealTimeXIL
      • Synopsys: Silver
      • Synopsys: SilverXIL
      • Synopsys: Virtualizer
      • Technica: BTS
      • Technica: CM
      • The GNU Project: GDB
      • TOSUN: libTSCAN API
      • tracetronic: Ethernet
      • tracetronic: Multimedia
      • tracetronic: RemoteCommand
      • tracetronic: RemoteCommandLinux
      • tracetronic: Serial interface
      • tracetronic: SocketCAN
      • tracetronic: SSH MultiConnect
      • tracetronic: ZeroMQ
      • TTTech: TTXConnexion
      • Typhoon HIL: THCC
      • Vector: CANape
      • Vector: CANoe / CANalyzer
      • Vector: DYNA4
      • Vector: SIL Kit
        • Ports
          • Port BUSACCESS - CAN πŸ›ˆ
          • Port DIAGNOSTICS - CAN πŸ›ˆ
          • Port BUSACCESS - CAN-FD πŸ›ˆ
          • Port DIAGNOSTICS - CAN-FD πŸ›ˆ
          • Port DIAGNOSTICS - CAN-FD_TOLERANT πŸ›ˆ
          • Port BUSACCESS - FLX πŸ›ˆ
          • Port DIAGNOSTICS - FLX πŸ›ˆ
          • Port BUSACCESS - LIN πŸ›ˆ
          • Port BUSACCESS - SOCKETADAPTOR πŸ›ˆ
          • Port DIAGNOSTICS - DOIP πŸ›ˆ
          • Port APPLICATION - XCP-ETH πŸ›ˆ
          • Port APPLICATION - XCP-CAN πŸ›ˆ
          • Port APPLICATION - XCP-CAN-FD πŸ›ˆ
          • Port APPLICATION - XCP-CAN-FD-TOLERANT πŸ›ˆ
          • Port LOGGING - DLT-VERBOSE πŸ›ˆ
          • Port SERVICEACCESS - ETHERNET-RAW πŸ›ˆ
          • Port SERVICEACCESS - SERVICE-PASSIVE πŸ›ˆ
          • Port SERVICEACCESS - SERVICE πŸ›ˆ
          • Port SERVICEACCESS - ARP πŸ›ˆ
          • Port SERVICEACCESS - UDP-SOCKET πŸ›ˆ
          • Port SERVICEACCESS - TCP-SERVER-SOCKET πŸ›ˆ
          • Port SERVICEACCESS - TCP-CLIENT-SOCKET πŸ›ˆ
          • Port SERVICEACCESS - UDP-RAW πŸ›ˆ
          • Port SERVICEACCESS - ICMP-RAW πŸ›ˆ
          • Port SERVICEACCESS - RECORDING-PCAP πŸ›ˆ
          • Port SERVICEACCESS - IPSEC πŸ›ˆ
          • Port SERVICEACCESS - MACSEC πŸ›ˆ
            • Stimulation
            • Properties πŸ›ˆ
            • Jobs πŸ›ˆ
              • GetMacSecValues
              • RekeyMacSec
              • ShutdownMacSec
              • StartMacSecManipulation
              • StartMkaManipulation
              • StartupMacSec
              • StopMacSecManipulation
              • StopMkaManipulation
          • Port MODELACCESS - DEFAULT πŸ›ˆ
          • Port SERVICEACCESS - TLS πŸ›ˆ
      • Vector: XL API
      • Vehinfo: LABCAR
      • ViGEM: CCA
      • VW: ODIS
      • X2E: Xoraya
      • Tools with stimulus support
    • Test execution
    • Trace analysis
    • Workspace
    • Handling
    • Test management
    • test.guide
    • Extensions
    • Specific Tutorials
    • API references
    • System requirements
    • ecu.test on Linux
    • ecu.test code
    • ecu.test agent
    • ecu.test lab
    • Stimulation
    • Properties πŸ›ˆ
    • Jobs πŸ›ˆ
      • GetMacSecValues
      • RekeyMacSec
      • ShutdownMacSec
      • StartMacSecManipulation
      • StartMkaManipulation
      • StartupMacSec
      • StopMacSecManipulation
      • StopMkaManipulation

    Port SERVICEACCESS - MACSEC πŸ›ˆΒΆ

    Port for opening MACsec-protected connections that can be used by other ports

    StimulationΒΆ

    This port has no stimulus capabilities.

    Properties πŸ›ˆΒΆ

    Name

    Available if

    Default value

    Valid values

    Type

    Description

    Network name

    string

    Name of the network as defined in SIL-Kit Config yaml.

    Controller name

    string

    Name of the controller as defined in SIL-Kit Config yaml.

    MAC address ❲client❳

    β€˜02:00:4C:4F:4F:50’

    string

    String (format: 02:00:4C:4F:4F:50), β€˜default’ if the adapter MAC address should be used

    VLAN ID

    0

    int

    ID with which VLAN packets should be tagged. (0 -> VLAN is not used)

    Connectivity Association Key ❲CAK❳

    string

    Key for the MACsec key agreement as a hex string (128 or 256 bits).

    Connectivity Association Key Name ❲CKN❳

    string

    Text which identifies the CAK, as a hex string (8 to 256 bits).

    Algorithms for MACsec protocol

    β€˜[GCM-AES-XPN-256, GCM-AES-256, GCM-AES-XPN-128, GCM-AES-128]’

    string

    List of supported MACsec algorithms. Syntax and a list of all supported algorithms can be found in the help file (Tool tracetronic: Ethernet).

    Cycle time MKA [ms]

    500

    int

    Temporal separation between two transmitted MKPDUs in milliseconds (default value: 500 ms, as specified in IEEE 802.1X-2020 section 9.10 NOTE 2)

    Do not stop MKA

    ☐

    bool

    MKA stays active beyond test case execution.

    Jobs πŸ›ˆΒΆ

    GetMacSecValuesΒΆ

    Determines the current values for SCI, AN, SAK and CipherSuite which may change e.g. when the remote party causes a new SAK creation. If these values are not yet available, an empty dictionary will be returned.

    Parameterization

    Return value

    Name

    Available if

    Default value

    Valid values

    Type

    Description

    result

    object

    Dictionary containing the determined values for SCI, AN, SAK and CipherSuite. For XPN algorithms also XPN Salt and XPN SCI List are returned.

    RekeyMacSecΒΆ

    Triggers a new SAK to be generated. As a key server, a new SAK is generated and distributed. Otherwise, the selection of a new member identifier forces the key server to generate and distribute a new SAK. If no SAK could be distributed or received by the specified timeout, the return value is an empty dictionary. The MKA protocol remains active in the background. The β€œGetMacSecValues” job can be used to react to subsequent connection parameter changes in the test case, such as the receipt of a new SAK.

    Parameterization

    Parameter

    Name

    Available if

    Default value

    Valid values

    Type

    Description

    Timeout

    5.0

    float

    Timeout in seconds

    Return value

    Name

    Available if

    Default value

    Valid values

    Type

    Description

    result

    object

    Dictionary containing the determined values for SCI, AN, SAK and CipherSuite. For XPN algorithms also XPN Salt and XPN SCI List are returned.

    ShutdownMacSecΒΆ

    Closes the MACsec session

    StartMacSecManipulationΒΆ

    Asynchronously starts the MACsec header custom manipulation mode (s. Header Manipulation). Valid values for the MACsec header bits are None = no manipulation, 0 = bit not set, and 1 = bit set. Parameters with the suffix β€œflags” are not MACsec header bits. They are used to determine the type of manipulation. The valid values for this are in the parameter-specific description.

    Parameterization

    Parameter

    Name

    Available if

    Default value

    Valid values

    Type

    Description

    AN

    int

    SecTag: Association Number

    C

    [False, True]

    bool

    SecTag-TCI: Changed Text Bit: is to be used in combination with E. See IEEE Std 802.1AE 2018

    E

    [False, True]

    bool

    SecTag-TCI: Encryption Bit: 0 - none, 1 - payload encrypted

    ES

    [False, True]

    bool

    SecTag-TCI: End Station Bit

    ICVFlags

    int

    SecTag: ICV Flags: None = no manipulation, 1 = make ICV invalid

    PNFlags

    int

    SecTag: Packet Number Flags: None = PNStart is absolute, 1 = PNStart is relative to current PN

    PNStart

    int

    SecTag: Packet Number Start is applied once after StartMacSecManipulation. See PNFlags.

    PNStep

    int

    SecTag: Packet Number Step is applied to each subsequent packet after the initial packet.

    SC

    [False, True]

    bool

    SecTag-TCI: Secure Channel Identifier included in SecTAG

    SCB

    [False, True]

    bool

    SecTag-TCI: Single Copy Broadcast Capability Bit

    SCI

    ByteStream

    SecTag: Secure Channel Identifier

    SL

    int

    SecTag: Short Length

    V

    [False, True]

    bool

    SecTag-TCI: Version Bit

    VlanId

    int

    ID with which VLAN packets should be tagged. None = VLAN ID is not applied.

    StartMkaManipulationΒΆ

    Starts a MKA manipulation (s. MKA-Manipulation).

    Parameterization

    Parameter

    Name

    Available if

    Default value

    Valid values

    Type

    Description

    Manipulator

    object

    A ByteStream or user-defined manipulation object that is dynamically applied to MKA packets to be sent (s. MKA-Manipulation).

    StartupMacSecΒΆ

    Establishes a MACsec-secured connection with the remote party. If this is not successful within the specified timeout, an empty dictionary is returned. The MKA protocol remains active in the background. The β€œGetMacSecValues” job can be used to react to subsequent connection parameter changes in the test case, such as the receipt of a new SAK.

    Parameterization

    Parameter

    Name

    Available if

    Default value

    Valid values

    Type

    Description

    Cak

    object

    Key for the MACsec key agreement as a hex string (128 or 256 bits). None will default to the TBC option.

    Ckn

    object

    Text which identifies the CAK, as a hex string (8 to 256 bits). None will default to the TBC option.

    KeyServerFlag

    True

    [False, True]

    bool

    True: enable key server capability, False: another MKA participant is to be key server

    KeyServerPrio

    1

    int

    Priority from 0 (high) to 255 (low) with which the key server role should be perceived if KeyServerFlag=True

    MkaAlgorithms

    object

    List of supported MACsec algorithms. Syntax and a list of all supported algorithms can be found in the help file (Tool tracetronic: Ethernet). None will default to the TBC option.

    MkaCycleTime

    500

    int

    Temporal separation between two transmitted MKPDUs in milliseconds (default value: 500 ms, as specified in IEEE 802.1X-2020 section 9.10 NOTE 2)

    Timeout

    5.0

    float

    Time (in seconds) to wait until MACsec has been activated

    Return value

    Name

    Available if

    Default value

    Valid values

    Type

    Description

    result

    object

    Dictionary containing the determined values for SCI, AN, SAK and CipherSuite. For XPN algorithms also XPN Salt and XPN SCI List are returned.

    StopMacSecManipulationΒΆ

    Asynchronously stops the MACsec header custom manipulation mode (s. Header Manipulation).

    StopMkaManipulationΒΆ

    Stops MKA manipulation (s. MKA-Manipulation).

    2025-12-05
    Previous
    Port SERVICEACCESS - IPSEC πŸ›ˆ
    Next
    Port MODELACCESS - DEFAULT πŸ›ˆ
    © Copyright 2025, tracetronic GmbH.
    Created using Sphinx 8.2.3. and Sphinx-Immaterial
    Logo of tracetronic GmbH
    legal notice privacy policy