Interoperability statement

Look up the ASDU types, station behavior and default settings for IEC 101 and IEC 104.

The Protocol Implementation Conformance Statement (PICS) describes type and procedure support. The Protocol Implementation Extra Information for Testing (PIXIT) records the parameters to use when exercising that support.

Procedure coverage#

Of 56 project cases, 37 have tests covering the case, 18 have partial coverage and 1 has no test. 28 include a lib60870-C peer. Procedure evidence and gaps.

Test evidence by procedure
  • ASDU-TYPES · every standard type identification encodes and decodes to itself
    • asdu_edges::type_identifications_are_the_standard_numbers
    • asdu_roundtrip::every_standard_type_round_trips_under_every_width_combination
    • asdu_roundtrip::every_typed_variant_names_a_distinct_type
    • reference_capture::every_asdu_in_the_reference_capture_round_trips
    • tshark_oracle::wireshark_dissects_every_104_type_as_what_was_put_in
  • ASDU-COT · cause of transmission values, P/N and T bits, originator address
    • asdu_edges::causes_of_transmission_are_the_standard_numbers
    • asdu_edges::cot_octet_layout
  • ASDU-WIDTHS · COT 1/2, common address 1/2 and IOA 1/2/3 octets as a profile
    • asdu_roundtrip::every_standard_type_round_trips_under_every_width_combination
    • asdu_roundtrip::untyped_types_round_trip_as_raw_under_every_width_combination
    • asdu_edges::profile_constants
    • asdu_edges::encode_refuses_what_the_profile_cannot_carry
    • regressions::the_derivation_reaches_every_width
  • ASDU-ELEMENTS · information elements over their full declared ranges (quality, NVA, SVA, float, BCR, CP24/CP56)
    • asdu_edges::element_lengths_match_the_reference_tables
    • asdu_edges::element_bit_layouts
    • asdu_edges::normalized_limits
    • asdu_edges::scaled_limits
    • asdu_edges::floats_nan_and_infinities_keep_their_bits
    • asdu_edges::cp56_out_of_range_and_flags_are_kept_as_received
    • asdu_edges::cp24_substituted_bit_survives
    • asdu_edges::packed_single_points_type_20
    • asdu_edges::bitstring32_is_little_endian
    • asdu_edges::test_bit_and_negative_confirmation
    • asdu_edges::test_command_pattern_and_gi_bytes
    • tshark_oracle::wireshark_dissects_every_104_type_as_what_was_put_in
  • ASDU-VSQ · variable structure qualifier: SQ 0 and 1, object count, address overflow
    • asdu_edges::sequence_form_writes_one_address
    • asdu_edges::vsq_overclaim_is_refused_at_the_first_missing_field
    • asdu_edges::sequence_address_overflow_is_refused
    • asdu_edges::zero_objects
  • ASDU-MALFORMED · truncated, over-long and malformed ASDUs are refused without panicking
    • asdu_edges::truncation_at_every_octet_names_the_field_and_its_offset
    • asdu_edges::trailing_octets_and_too_long_are_refused
    • asdu_edges::header_decodes_alone
    • regressions::every_committed_crash_input_replays_cleanly
  • ASDU-UNKNOWN-TYPES · private, reserved and security type identifications are kept as raw octets
    • asdu_edges::unknown_private_forbidden_and_security_types_decode_raw
  • ASDU-PROFILE-TYPES · a profile permits only the type identifications of its companion standard
    • station_controlled::test_command_104_and_delay_acquisition_work_where_the_profile_permits_them
    • Open · the per-profile permission tables
  • 104-LINK-FORMATS · I, S and U formats, APDU length, malformed octets close the connection with a reason
    • cs104_link::malformed_octets_close_with_the_reason
    • cs104_link::unexpected_u_frames_close_with_their_name
    • cs104_link::partial_reads_of_one_octet_are_reassembled
    • cs104_link::submit_refuses_empty_and_too_long_asdus
    • regressions_cs104::every_committed_apci_input_replays_cleanly
    • tshark_apci::every_emitted_apci_frame_dissects_as_encoded
  • 104-LINK-STARTDT · STARTDT act/con; no I-frame before data transfer is started
    • cs104_link::an_i_frame_before_startdt_is_not_delivered_and_closes
    • cs104_link::submit_before_start_is_refused
    • cs104_link::only_the_controlling_role_starts_and_stops
    • cs104_adapters::start_and_exchange_in_both_directions
    • interop::server_startdt
    • interop::client_startdt
  • 104-LINK-STOPDT · STOPDT act/con, outstanding I-frames acknowledged before the confirmation
    • cs104_link::stopdt_act_with_outstanding_frames_withholds_the_con_until_they_are_acknowledged
    • cs104_link::stopdt_act_with_nothing_outstanding_is_confirmed_at_once_and_t1_still_bounds_a_drain
    • cs104_link::a_local_stop_acknowledges_and_still_accepts_in_flight_frames
    • cs104_adapters::stop_with_outstanding_frames_delivers_them_first
    • interop::server_stopdt_with_outstanding_frames
    • interop::client_stopdt_with_outstanding_frames
    • Open · the withheld confirmation against lib60870-C, whose master acknowledges before it stops
  • 104-LINK-TESTFR · TESTFR act/con after t3 idle, in every state and role
    • cs104_link::an_idle_link_sends_testfr_act_after_t3_and_closes_without_a_con
    • cs104_link::a_testfr_con_keeps_the_link_open_and_any_frame_restarts_t3
    • cs104_link::testfr_act_is_answered_in_every_state_and_role
    • cs104_link::an_unsolicited_testfr_con_is_ignored
    • cs104_adapters::testfr_keeps_an_idle_link_open
    • interop::server_t3_ours
    • interop::server_t3_theirs
    • interop::client_t3_ours
    • interop::client_t3_theirs
  • 104-LINK-K · at most k unacknowledged I-frames outstanding
    • cs104_link::k_outstanding_frames_refuse_the_next_submit_with_back_pressure
    • cs104_adapters::back_pressure_resolves_through_acknowledgments
    • interop::server_k_and_w_back_pressure
    • interop::client_k_and_w_back_pressure
  • 104-LINK-W · acknowledge at the latest after w received I-frames
    • cs104_link::w_received_frames_are_acknowledged_at_once
    • cs104_link::an_i_frame_sent_acknowledges_what_was_received
    • interop::server_k_and_w_back_pressure
    • interop::client_k_and_w_back_pressure
  • 104-LINK-T0 · connection establishment gives up after t0
    • cs104_adapters::connect_gives_up_after_t0
    • Open · no lib60870-C scenario; a refused connection needs no peer
  • 104-LINK-T1 · an unacknowledged I-frame or U act closes the connection after t1
    • cs104_link::an_unacknowledged_i_frame_closes_with_t1_expired_after_t1
    • cs104_link::t1_runs_on_the_oldest_outstanding_frame
    • cs104_link::t1_runs_on_startdt_act_and_stopdt_act
    • cs104_adapters::a_silent_peer_ends_in_t1_expired
    • interop::server_t1_expiry
    • interop::client_t1_expiry
  • 104-LINK-T2 · fewer than w I-frames are acknowledged by an S-frame when t2 elapses
    • cs104_link::fewer_than_w_frames_are_acknowledged_when_t2_elapses
    • interop::server_t2_acknowledgment
    • interop::client_t2_acknowledgment
  • 104-LINK-SEQUENCE · send and receive sequence numbers: order, wrap at 32767, bad acknowledgments close
    • cs104_link::an_unexpected_send_sequence_number_closes
    • cs104_link::sequence_numbers_wrap_at_32767_in_both_directions
    • cs104_link::an_acknowledgment_of_a_frame_never_sent_closes
    • cs104_link::a_repeated_acknowledgment_is_harmless
    • cs104_link::a_peer_acknowledging_only_every_32767_frames_is_served
    • simulation::every_accepted_i_frame_is_delivered_once_in_order_or_the_connection_closes_with_a_reason
    • regressions_cs104::every_committed_link_input_replays_cleanly
  • 104-LINK-CLOSE · every close and disconnect is reported once with its reason
    • cs104_link::disconnect_and_close_name_their_reason_once
    • cs104_adapters::a_peer_close_is_reported_as_peer_closed
    • simulation::every_accepted_i_frame_is_delivered_once_in_order_or_the_connection_closes_with_a_reason
  • 104-LINK-CONFIG · k, w and t0-t3 are validated (w at most two thirds of k)
    • cs104_link::an_invalid_configuration_is_refused
    • cs104_adapters::an_invalid_configuration_and_an_unreachable_peer_are_errors
    • Open · the defaults and ranges are taken from the peers
  • STA-GI · station interrogation: confirmation, the points (COT 20), termination
    • station_controlled::station_interrogation_answers_from_current_state
    • station_controlled::broadcast_gi_answers_every_common_address
    • station_controlled::large_interrogations_are_packed_up_to_the_maximum_length
    • station_controlled::a_gi_while_a_gi_is_in_progress_is_refused
    • station_controlling::gi_confirmed_answered_and_terminated_completes
    • station_controlling::gi_without_termination_times_out_naming_the_termination
    • tshark_station::every_station_apdu_dissects_as_decoded
    • interop_station::lib60870_client_runs_every_procedure_against_our_server
    • interop_station::our_client_runs_every_procedure_against_lib60870_server
  • STA-GROUP-GI · group interrogation 1-16 answers only the group; an empty group only confirms
    • station_controlled::group_interrogation_answers_only_the_group_and_an_empty_group_only_confirms
    • station_controlled::a_bad_qualifier_or_ioa_is_refused
    • interop_station::lib60870_client_runs_every_procedure_against_our_server
    • interop_station::our_client_runs_every_procedure_against_lib60870_server
  • STA-COUNTER · counter interrogation: read, freeze, reset
    • station_controlled::counter_interrogation_reads_freezes_and_resets
    • station_controlling::counter_interrogation_completes_on_termination
    • interop_station::lib60870_client_runs_every_procedure_against_our_server
    • interop_station::our_client_runs_every_procedure_against_lib60870_server
    • Open · the counter interrogation modes
  • STA-READ · read command answered with the current value (COT 5) or COT 47
    • station_controlled::read_answers_with_the_current_value_or_cot_47
    • station_controlling::read_completes_with_the_point
    • interop_station::lib60870_client_runs_every_procedure_against_our_server
    • interop_station::our_client_runs_every_procedure_against_lib60870_server
  • STA-CLOCK · clock synchronisation, applied to later time tags; a refusal is negative
    • station_controlled::clock_sync_is_handed_to_the_handler_and_applied_to_later_time_tags
    • station_controlled::a_refused_clock_sync_is_negative_and_changes_nothing
    • station_controlling::clock_sync_carries_the_clock_time
    • interop_station::lib60870_client_runs_every_procedure_against_our_server
    • interop_station::our_client_runs_every_procedure_against_lib60870_server
  • STA-TEST-COMMAND · test command (107 on 104, 104 where the profile permits it) mirrored
    • station_controlled::test_command_107_is_mirrored
    • station_controlled::test_command_104_and_delay_acquisition_work_where_the_profile_permits_them
    • station_controlling::test_command_is_107_on_104
    • interop_station::lib60870_client_runs_every_procedure_against_our_server
    • interop_station::our_client_runs_every_procedure_against_lib60870_server
  • STA-RESET-PROCESS · reset process command; QRP 2 clears the event buffer
    • station_controlled::reset_process_asks_the_handler_and_qrp_2_clears_the_event_buffer
    • station_controlled::reset_process_qrp_2_drops_unsent_events
    • station_controlling::reset_process_and_parameters
    • interop_station::lib60870_client_runs_every_procedure_against_our_server
    • Open · our controlling station against lib60870-C's
  • STA-PARAMETERS · parameter loading (110-112) and activation (113)
    • station_controlled::parameters_are_handed_to_the_handler_and_confirmed
    • station_controlling::reset_process_and_parameters
    • Open · neither role against lib60870-C
  • STA-COMMAND-DIRECT · direct commands of every type (45-51, 58-64): confirmation and termination
    • station_controlled::direct_points_execute_directly_and_refuse_a_select
    • station_controlled::direct_or_select_points_take_both
    • station_controlled::bitstring_commands_are_direct
    • station_controlled::every_handler_call_carries_its_context
    • station_controlling::direct_commands_with_and_without_termination
    • interop_station::lib60870_client_runs_every_procedure_against_our_server
    • interop_station::our_client_runs_every_procedure_against_lib60870_server
  • STA-COMMAND-SBO · select-before-operate: select, execute, confirmation and termination
    • station_controlled::select_then_execute_confirms_and_terminates
    • station_controlling::sbo_reports_selected_confirmed_completed
    • station_controlling::a_refused_select_sends_no_execute
    • interop_station::lib60870_client_runs_every_procedure_against_our_server
    • interop_station::our_client_runs_every_procedure_against_lib60870_server
  • STA-COMMAND-SBO-REFUSAL · an execute without a matching, timely select from the same connection is refused and not executed
    • station_controlled::execute_without_select_is_refused_and_the_handler_is_not_called
    • station_controlled::an_execute_after_the_select_timeout_is_refused
    • station_controlled::an_execute_that_does_not_match_the_select_is_refused
    • station_controlled::an_execute_from_another_connection_is_refused
    • station_controlled::a_second_select_by_another_originator_is_refused_but_the_same_one_reselects
    • station_controlled::deactivation_cancels_a_select
    • interop_station::lib60870_client_runs_every_procedure_against_our_server
  • STA-COMMAND-TIME-TAG · time-tagged commands (58-64) carry their CP56Time2a to the handler
    • station_controlled::time_tagged_commands_pass_their_time_to_the_handler
    • interop_station::lib60870_client_runs_every_procedure_against_our_server
    • Open · the validity window of a time-tagged command
  • STA-COMMAND-PENDING · a long-running command is confirmed now and terminated later, once, or abandoned with its connection
    • station_controlled::a_pending_execute_is_confirmed_at_once_and_terminated_when_the_application_says_so
    • station_controlled::a_pending_execute_can_terminate_negatively
    • station_controlled::a_pending_execute_terminates_exactly_once
    • station_controlled::a_pending_execute_is_abandoned_when_its_connection_closes_and_never_terminated_elsewhere
    • station_controlled::a_connection_holds_at_most_max_pending_commands
    • station_adapters::a_pending_command_terminates_later_through_the_async_server_handle
    • interop_station::lib60870_client_sees_deferred_terminations_and_an_abandoned_command_is_never_terminated
  • STA-NEGATIVE · unknown type, cause, common address and IOA (COT 44-47) and refused commands are confirmed negatively
    • station_controlled::unknown_type_is_cot_44
    • station_controlled::unknown_cause_is_cot_45
    • station_controlled::unknown_common_address_is_cot_46
    • station_controlled::unknown_ioa_is_cot_47
    • station_controlled::a_refused_command_is_confirmed_negatively_without_termination
    • station_controlled::a_command_with_two_objects_is_refused
    • station_controlled::an_asdu_that_does_not_decode_is_dropped_and_counted
    • station_controlling::a_negative_confirmation_is_an_error_carrying_the_cot
    • station_controlling::cot_44_to_47_mirrors_are_negative
    • interop_station::lib60870_client_runs_every_procedure_against_our_server
    • interop_station::our_client_runs_every_procedure_against_lib60870_server
  • STA-END-OF-INIT · end of initialisation (70) is the first ASDU after start
    • station_controlled::end_of_initialisation_comes_first_after_start
    • station_controlling::spontaneous_data_and_end_of_initialisation_are_events
    • Open · not asserted against lib60870-C
  • STA-SPONTANEOUS · spontaneous events (COT 3) with the clock's time tag, packed by type
    • station_controlled::spontaneous_events_carry_the_clock_time_in_the_configured_format
    • station_controlled::events_are_packed_by_type_up_to_the_maximum_length
    • station_controlling::spontaneous_data_and_end_of_initialisation_are_events
    • tshark_station::every_station_apdu_dissects_as_decoded
    • interop_station::our_client_runs_every_procedure_against_lib60870_server
    • Open · our controlled station's events into lib60870-C's client
  • STA-CYCLIC · cyclic (COT 1) and background (COT 2) transmission
    • station_controlled::cyclic_and_background_points_are_sent_periodically
    • Open · not exercised against lib60870-C
  • STA-EVENT-BUFFER · events kept until acknowledged and re-sent after a reconnection or STOPDT; overflow reported
    • station_controlled::events_are_kept_until_acknowledged_and_re_sent_after_reconnection
    • station_controlled::an_update_storm_beyond_the_buffer_reports_the_loss_and_keeps_the_newest
    • station_controlled::stopdt_keeps_the_events_for_the_next_start
    • station_adapters::events_survive_a_reconnection_through_the_adapters
    • station_simulation::reconnect_delivers_every_event_or_reports_it_lost
    • regressions_station::every_committed_controlled_station_input_replays_cleanly
    • interop_station::our_client_runs_every_procedure_against_lib60870_server
    • Open · a connection dropped with events outstanding, against lib60870-C
  • STA-REDUNDANCY · redundancy groups: one active connection, switch-over re-sends what was not acknowledged
    • station_controlled::a_switch_over_closes_the_old_connection_and_re_sends_its_unacknowledged_events_first
    • station_controlled::the_standby_connection_is_not_acted_on
    • station_controlled::groups_have_separate_buffers
    • station_adapters::a_redundancy_group_by_address_switches_over
    • station_simulation::switch_over_loses_nothing_and_duplicates_only_unacknowledged_events
    • Open · the redundancy rule; no lib60870-C scenario
  • STA-REQUESTS · the controlling station's requests: one per kind and address, timeouts, refused before start, failed on disconnect
    • station_controlling::no_confirmation_times_out_naming_the_confirmation
    • station_controlling::a_duplicate_request_is_busy_and_nothing_goes_before_start
    • station_controlling::a_disconnect_fails_every_outstanding_request
    • station_controlling::requests_wait_while_the_window_is_full
    • station_controlling::an_unstarted_master_refuses_requests
  • STA-ADAPTERS · the blocking and Tokio client and server against each other
    • station_adapters::blocking_client_against_blocking_server
    • station_adapters::blocking_client_against_async_server
    • station_adapters::async_client_against_both_servers
  • STA-FILE-TRANSFER · file retrieval (120-126): directory, select, call, segments, acknowledgments
    • tshark_station::every_station_apdu_dissects_as_decoded
    • interop_station::lib60870_client_runs_every_procedure_against_our_server
    • file_transfer::cancelled_downloads_late_reply_cannot_supply_successor_contents
    • file_transfer::cancel_download_targets_one_request_and_uses_resolved_name
    • file_transfer::dropping_download_future_deactivates_selected_file
    • file_transfer::timeout_deactivates_and_retry_waits_for_ordered_confirmation
    • file_transfer::download_is_byte_exact_across_sections_and_profiles
    • file_transfer::download_rejects_oversized_file_before_calling_it
    • file_transfer::checksum_failure_retries_only_the_bad_section_and_rejects_a_bad_file
    • file_transfer::interrupted_client_drops_partial_download
    • file_transfer::file_ready_rejects_oversize_and_completion_reports_the_file_identity
    • file_transfer::section_overrun_fails_before_returning_data
    • file_transfer::selection_is_connection_scoped_and_released_on_timeout_and_disconnect
    • interop_station::our_client_runs_every_procedure_against_lib60870_server
    • file_directory::directory_frames_fit_both_profiles_and_only_the_last_entry_ends_the_listing
    • file_directory::blocking_client_collects_complete_empty_and_unknown_directories
    • file_directory::async_client_collects_directory_from_async_server
    • file_directory::server_refuses_oversized_catalogs_and_unrepresentable_records
    • file_directory::malformed_end_marker_fails_request_and_releases_it
    • file_directory::oversized_directory_is_refused_before_any_partial_listing_is_returned
    • file_directory::incomplete_directory_times_out_and_another_station_cannot_finish_it
  • 101-LINK-FRAMES · FT 1.2 single character, fixed and variable frames; bad checksum, end or length discarded
    • cs101_link::bad_checksum_end_and_length_are_discarded_and_counted
    • cs101_link::an_interrupted_frame_is_discarded
    • cs101_link::single_char_e5_is_ack_and_no_data
    • regressions_cs101::every_committed_ft12_input_replays_cleanly
    • tshark_ft12::every_emitted_frame_dissects_as_what_was_put_in
  • 101-LINK-ADDRESS · link address of 0, 1 or 2 octets; a foreign address is ignored
    • cs101_link::every_address_width_works_end_to_end
    • cs101_link::foreign_address_is_ignored
    • cs101_link::constructors_check_addresses
    • interop_cs101::unbalanced_primary_against_lib60870_slave
    • interop_cs101::unbalanced_primary_against_lib60870_slave_two_octet_address
    • interop_cs101::passive_cli_decodes_independent_master_link_status
  • 101-LINK-BROADCAST · a broadcast is delivered and never answered
    • cs101_link::broadcast_is_delivered_and_never_answered
    • Open · not exercised against lib60870-C
  • 101-LINK-UNBALANCED-POLL · unbalanced polling of class 1 and class 2, ACD, several secondaries round-robin
    • cs101_link::class2_poll_with_class1_pending_sets_acd_and_master_polls_class1
    • cs101_link::end_to_end_class1_and_class2_arrive_and_are_acknowledged
    • cs101_link::two_outstations_are_polled_round_robin
    • cs101_station::stations_over_an_unbalanced_link
    • cs101_adapters::unbalanced_over_tcp
    • interop_cs101::unbalanced_primary_against_lib60870_slave
    • interop_cs101::unbalanced_secondary_against_lib60870_master
  • 101-LINK-FCB · frame count bit: a repeated FCB gets the identical response, user data delivered once
    • cs101_link::repeated_fcb_gets_the_identical_response_and_nothing_is_dequeued
    • cs101_link::repeated_user_data_is_acknowledged_but_delivered_once
    • cs101_link::master_retransmits_byte_identical_frame_after_timeout
    • cs101_link::fcv_frame_before_reset_is_answered_not_functioning
    • cs101_simulation::every_asdu_is_delivered_at_most_once_and_ends_named
    • interop_cs101::unbalanced_secondary_against_lib60870_master
  • 101-LINK-RESET-AND-RETRIES · link reset, bounded retries, a silent secondary stopped without stalling the others
    • cs101_link::a_silent_outstation_is_stopped_and_does_not_stall_the_other
    • cs101_link::retries_exhausted_reports_user_data_unconfirmed
    • cs101_link::reset_with_a_response_in_flight_reports_it_unconfirmed
    • cs101_link::disconnect_and_close_end_the_link
    • regressions_cs101::every_committed_link_input_replays_cleanly
  • 101-LINK-DFC · data flow control: a busy secondary sets DFC and the primary holds user data
    • cs101_link::busy_secondary_sets_dfc_and_the_master_holds_user_data
    • Open · not exercised against lib60870-C
  • 101-LINK-BALANCED · balanced transmission in both directions with DIR, test function when idle
    • cs101_link::balanced_runs_both_directions_with_dir
    • cs101_link::balanced_sends_test_function_when_idle
    • cs101_station::stations_over_a_balanced_link
    • cs101_adapters::balanced_over_tcp
    • interop_cs101::balanced_controlled_against_lib60870_master
    • interop_cs101::balanced_controlling_against_lib60870_slave
  • 101-LINK-FUNCTIONS · reserved and unsupported function codes are answered as not implemented
    • cs101_link::reserved_and_unsupported_functions_are_not_implemented
    • cs101_link::submit_refusals_are_named
  • 101-LINK-TIMING · inter-character timeout and line idle detection
    • cs101_link::an_interrupted_frame_is_discarded
    • cs101_link::deadlines_are_reported
    • cs101_simulation::every_asdu_is_delivered_at_most_once_and_ends_named
    • Open · a real line, UART and modem timing
  • 101-LINK-SERIAL · the serial adapter over a serial device
    • cs101_adapters::unbalanced_over_a_pty_pair
    • cs101_adapters::balanced_over_a_pty_pair
    • cs101_adapters::open_serial_reports_a_missing_port
    • cs101_adapters::unbalanced_under_tokio
    • Open · a USB-RS-485/RS-232 adapter and a real 101 outstation
  • 101-STA-PROCEDURES · the station procedures over a 101 link
    • cs101_station::stations_over_an_unbalanced_link
    • cs101_station::stations_over_a_balanced_link
    • Open · the station procedures against lib60870-C over 101, and a real outstation
  • SEC-TLS · IEC 62351-3 TLS for 104 with mutual authentication
    • tls::a_client_without_a_certificate_is_refused_before_startdt
    • interop_tls::mutual_tls_with_lib60870_in_both_roles
  • SEC-AUTHENTICATION · IEC 62351-5 authentication of critical ASDUs
    • Open · secure authentication

For file transfer, check the type tables for payload decoding and the procedure evidence for station support. Formal IEC test-case mapping and laboratory certification are pending.

ProfileCause bytesCommon address bytesObject address bytesMaximum ASDU bytes
IEC 101112253
IEC 104223249

IEC 104 uses TCP port 2404 or TLS port 19998. Send window k is 12 and acknowledgment window w is 8. Timers t0, t1, t2 and t3 are 30s, 15s, 10s and 20s.

IEC 101 link address width in octets is 1. Response timeout is 500ms, with 3 retries. The poll, reset and link-test intervals are 100ms, 5s and 5s. The character timeout is 300ms and idle gap is 10ms. Single-character acknowledgment is true. Queue capacity is 64 ASDUs per station and class.

File download limits are 16777215 octets at the master and 16777215 at the outstation. The outstation serves sections of 65536 octets and expires an idle selection after 30s.

The master uses originator 0, confirmation timeout 15s and termination timeout 60s. Waiting for command termination is true. Time-tagged commands are false.

The outstation buffers 1024 events per redundancy group. Select timeout is 10s and cyclic period is 60s. Background scanning is off. End-of-initialization cause is 0.

Type support by direction#

Each row uses one object under the named ASDU profile. A file catalog is configured for the directory and file acknowledgment probes. Master receives shows the unsolicited event with no request pending. ASDU means the application receives the payload directly. Outstation recognizes means the station checked the common address or rejected a file acknowledgment without a selection. Successful procedures and their prerequisites are listed in the coverage report. Reserved IDs in 1–127 are probed and omitted from the tables.

Jump to IEC 104 or IEC 101.

IEC 104#

IDTypeCodecMaster receivesOutstation recognizes
1M_SP_NA_1TypedPointNo
2M_SP_TA_1Outside profileASDUNo
3M_DP_NA_1TypedPointNo
4M_DP_TA_1Outside profileASDUNo
5M_ST_NA_1TypedPointNo
6M_ST_TA_1Outside profileASDUNo
7M_BO_NA_1TypedPointNo
8M_BO_TA_1Outside profileASDUNo
9M_ME_NA_1TypedPointNo
10M_ME_TA_1Outside profileASDUNo
11M_ME_NB_1TypedPointNo
12M_ME_TB_1Outside profileASDUNo
13M_ME_NC_1TypedPointNo
14M_ME_TC_1Outside profileASDUNo
15M_IT_NA_1TypedPointNo
16M_IT_TA_1Outside profileASDUNo
17M_EP_TA_1Outside profileASDUNo
18M_EP_TB_1Outside profileASDUNo
19M_EP_TC_1Outside profileASDUNo
20M_PS_NA_1TypedPointNo
21M_ME_ND_1TypedPointNo
30M_SP_TB_1TypedPointNo
31M_DP_TB_1TypedPointNo
32M_ST_TB_1TypedPointNo
33M_BO_TB_1TypedPointNo
34M_ME_TD_1TypedPointNo
35M_ME_TE_1TypedPointNo
36M_ME_TF_1TypedPointNo
37M_IT_TB_1TypedPointNo
38M_EP_TD_1TypedPointNo
39M_EP_TE_1TypedPointNo
40M_EP_TF_1TypedPointNo
41S_IT_TC_1RawASDUNo
45C_SC_NA_1TypedASDUYes
46C_DC_NA_1TypedASDUYes
47C_RC_NA_1TypedASDUYes
48C_SE_NA_1TypedASDUYes
49C_SE_NB_1TypedASDUYes
50C_SE_NC_1TypedASDUYes
51C_BO_NA_1TypedASDUYes
58C_SC_TA_1TypedASDUYes
59C_DC_TA_1TypedASDUYes
60C_RC_TA_1TypedASDUYes
61C_SE_TA_1TypedASDUYes
62C_SE_TB_1TypedASDUYes
63C_SE_TC_1TypedASDUYes
64C_BO_TA_1TypedASDUYes
70M_EI_NA_1TypedInitializationNo
81S_CH_NA_1RawASDUNo
82S_RP_NA_1RawASDUNo
83S_AR_NA_1RawASDUNo
84S_KR_NA_1RawASDUNo
85S_KS_NA_1RawASDUNo
86S_KC_NA_1RawASDUNo
87S_ER_NA_1RawASDUNo
90S_US_NA_1RawASDUNo
91S_UQ_NA_1RawASDUNo
92S_UR_NA_1RawASDUNo
93S_UK_NA_1RawASDUNo
94S_UA_NA_1RawASDUNo
95S_UC_NA_1RawASDUNo
100C_IC_NA_1TypedASDUYes
101C_CI_NA_1TypedASDUYes
102C_RD_NA_1TypedASDUYes
103C_CS_NA_1TypedASDUYes
104C_TS_NA_1Outside profileASDUNo
105C_RP_NA_1TypedASDUYes
106C_CD_NA_1Outside profileASDUNo
107C_TS_TA_1TypedASDUYes
110P_ME_NA_1TypedASDUYes
111P_ME_NB_1TypedASDUYes
112P_ME_NC_1TypedASDUYes
113P_AC_NA_1TypedASDUYes
120F_FR_NA_1TypedASDUNo
121F_SR_NA_1TypedASDUNo
122F_SC_NA_1TypedASDUYes
123F_LS_NA_1TypedASDUNo
124F_AF_NA_1TypedASDUYes
125F_SG_NA_1TypedASDUNo
126F_DR_TA_1TypedASDUNo
127F_SC_NB_1TypedASDUNo

IEC 101#

IDTypeCodecMaster receivesOutstation recognizes
1M_SP_NA_1TypedPointNo
2M_SP_TA_1TypedPointNo
3M_DP_NA_1TypedPointNo
4M_DP_TA_1TypedPointNo
5M_ST_NA_1TypedPointNo
6M_ST_TA_1TypedPointNo
7M_BO_NA_1TypedPointNo
8M_BO_TA_1TypedPointNo
9M_ME_NA_1TypedPointNo
10M_ME_TA_1TypedPointNo
11M_ME_NB_1TypedPointNo
12M_ME_TB_1TypedPointNo
13M_ME_NC_1TypedPointNo
14M_ME_TC_1TypedPointNo
15M_IT_NA_1TypedPointNo
16M_IT_TA_1TypedPointNo
17M_EP_TA_1TypedPointNo
18M_EP_TB_1TypedPointNo
19M_EP_TC_1TypedPointNo
20M_PS_NA_1TypedPointNo
21M_ME_ND_1TypedPointNo
30M_SP_TB_1TypedPointNo
31M_DP_TB_1TypedPointNo
32M_ST_TB_1TypedPointNo
33M_BO_TB_1TypedPointNo
34M_ME_TD_1TypedPointNo
35M_ME_TE_1TypedPointNo
36M_ME_TF_1TypedPointNo
37M_IT_TB_1TypedPointNo
38M_EP_TD_1TypedPointNo
39M_EP_TE_1TypedPointNo
40M_EP_TF_1TypedPointNo
41S_IT_TC_1RawASDUNo
45C_SC_NA_1TypedASDUYes
46C_DC_NA_1TypedASDUYes
47C_RC_NA_1TypedASDUYes
48C_SE_NA_1TypedASDUYes
49C_SE_NB_1TypedASDUYes
50C_SE_NC_1TypedASDUYes
51C_BO_NA_1TypedASDUYes
58C_SC_TA_1TypedASDUYes
59C_DC_TA_1TypedASDUYes
60C_RC_TA_1TypedASDUYes
61C_SE_TA_1TypedASDUYes
62C_SE_TB_1TypedASDUYes
63C_SE_TC_1TypedASDUYes
64C_BO_TA_1TypedASDUYes
70M_EI_NA_1TypedInitializationNo
81S_CH_NA_1RawASDUNo
82S_RP_NA_1RawASDUNo
83S_AR_NA_1RawASDUNo
84S_KR_NA_1RawASDUNo
85S_KS_NA_1RawASDUNo
86S_KC_NA_1RawASDUNo
87S_ER_NA_1RawASDUNo
90S_US_NA_1RawASDUNo
91S_UQ_NA_1RawASDUNo
92S_UR_NA_1RawASDUNo
93S_UK_NA_1RawASDUNo
94S_UA_NA_1RawASDUNo
95S_UC_NA_1RawASDUNo
100C_IC_NA_1TypedASDUYes
101C_CI_NA_1TypedASDUYes
102C_RD_NA_1TypedASDUYes
103C_CS_NA_1TypedASDUYes
104C_TS_NA_1TypedASDUYes
105C_RP_NA_1TypedASDUYes
106C_CD_NA_1TypedASDUYes
107C_TS_TA_1Outside profileASDUNo
110P_ME_NA_1TypedASDUYes
111P_ME_NB_1TypedASDUYes
112P_ME_NC_1TypedASDUYes
113P_AC_NA_1TypedASDUYes
120F_FR_NA_1TypedASDUNo
121F_SR_NA_1TypedASDUNo
122F_SC_NA_1TypedASDUYes
123F_LS_NA_1TypedASDUNo
124F_AF_NA_1TypedASDUYes
125F_SG_NA_1TypedASDUNo
126F_DR_TA_1TypedASDUNo
127F_SC_NB_1TypedASDUNo

Causes of transmission#

Named and group causes recognized by the codec

  • periodic (1)
  • background scan (2)
  • spontaneous (3)
  • initialized (4)
  • request (5)
  • activation (6)
  • activation confirmation (7)
  • deactivation (8)
  • deactivation confirmation (9)
  • activation termination (10)
  • return after a remote command (11)
  • return after a local command (12)
  • file transfer (13)
  • authentication (14)
  • session key maintenance (15)
  • user role and update key maintenance (16)
  • interrogated by station (20)
  • interrogated by group 1 (21)
  • interrogated by group 2 (22)
  • interrogated by group 3 (23)
  • interrogated by group 4 (24)
  • interrogated by group 5 (25)
  • interrogated by group 6 (26)
  • interrogated by group 7 (27)
  • interrogated by group 8 (28)
  • interrogated by group 9 (29)
  • interrogated by group 10 (30)
  • interrogated by group 11 (31)
  • interrogated by group 12 (32)
  • interrogated by group 13 (33)
  • interrogated by group 14 (34)
  • interrogated by group 15 (35)
  • interrogated by group 16 (36)
  • requested by general counter interrogation (37)
  • requested by counter group 1 (38)
  • requested by counter group 2 (39)
  • requested by counter group 3 (40)
  • requested by counter group 4 (41)
  • unknown type identification (44)
  • unknown cause of transmission (45)
  • unknown common address (46)
  • unknown information object address (47)

TLS parameters and deviations#

The PEM configurations require mutual authentication. Enabled protocol versions in preference order are TLSv1_3, TLSv1_2.

Offered cipher suites in preference order

  • TLS13_AES_256_GCM_SHA384
  • TLS13_AES_128_GCM_SHA256
  • TLS13_CHACHA20_POLY1305_SHA256
  • TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384
  • TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
  • TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
  • TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
Profile itemThis crateInstead
TLS 1.2 renegotiation for session-key refreshnot supported; a renegotiation request from the peer is refused with a no_renegotiation alerta new connection with session resumption, or a TLS 1.3 key update (TlsStream::refresh_keys)
TLS_RSA_WITH_AES_128_CBC_SHA256 (RSA key transport, CBC)not offeredthe ECDHE suites
TLS_DHE_RSA_WITH_AES_128_GCM_SHA256 (finite-field DHE)not offeredTLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
TLS 1.3 TLS_AES_128_CCM_SHA256, TLS_AES_128_CCM_8_SHA256not offeredTLS_AES_128_GCM_SHA256
TLS 1.1 and olderrefusedTLS 1.2 or 1.3
Certificate revocation listsnot loaded by the PEM constructorsa rustls verifier with CRLs through from_rustls