IEC 61850
IEC 61850 is the communication standard for substation automation. It does two things that older SCADA protocols kept apart. It defines an object model for the device (what a breaker, a measurement or a protection function looks like), and it defines services on that model (read, write, report, control, file transfer, logging, fast events, sampled measurements). The abstract services are specified in IEC 61850-7-2 (ACSI, the Abstract Communication Service Interface) and mapped onto three protocols:
| Mapping | Standard | Carries | Runs on |
|---|---|---|---|
| MMS | IEC 61850-8-1, ISO 9506 | Client/server services: browse, read, write, reports, controls, files, logs | ISO upper layers over TCP port 102 |
| GOOSE | IEC 61850-8-1 | Dataset values multicast on every change, for trips, interlocks and status between IEDs | Raw Ethernet, EtherType 0x88B8 |
| Sampled Values | IEC 61850-9-2, IEC 61869-9, UCA 9-2LE | Digitized currents and voltages from merging units, thousands of samples a second | Raw Ethernet, EtherType 0x88BA |
OT Fabric implements all three. This page explains the model and the client/server services first, then GOOSE and Sampled Values.
The object model below is summarized only as far as communication needs it. The model itself, defined once for every mapping and published by IEC as machine-readable NSD files, has its own guide: the IEC 61850 information model, implemented without a transport in go-iec61850-model.
The object model
Section titled “The object model”A device that speaks IEC 61850 is an IED (Intelligent Electronic Device): a protection relay, bay controller, meter or RTU. Inside it the model is a strict hierarchy:
IED (Intelligent Electronic Device)└── Logical Device (LD) e.g. "MNSREF615LD0" ├── Logical Node (LN) e.g. "FMMXU1" (measurement) │ └── Data Object (DO) e.g. "Hz" │ └── Data Attribute (DA) e.g. "mag.f", "q", "t" └── LLN0 (device-level LN) ├── Data Sets (DS) e.g. "MeasFlt" ├── Report Control Blocks (URCB / BRCB) └── Log Control Blocks and Logs (journals)| Concept | Role |
|---|---|
| IED | The physical device. |
| LD (logical device) | A group of functions inside the IED. In the MMS mapping an LD is an MMS domain. |
| LN (logical node) | A standard function, named by a class plus optional prefix and instance: MMXU (measurement), XCBR (circuit breaker), GGIO (generic I/O), LLN0 (the LD’s own node). |
| DO (data object) | A piece of data in the LN, typed by a Common Data Class (CDC) from IEC 61850-7-3: SPS (single-point status), DPS (double-point status), MV (measured value), SPC (single-point controllable), BCR (binary counter reading) and others. |
| DA (data attribute) | A leaf or structured attribute: stVal (status value), mag.f (magnitude as float), q (quality), t (timestamp), ctlModel (control model). |
Functional constraints
Section titled “Functional constraints”Every data attribute carries a functional constraint (FC). The FC says what kind of access the attribute is for, and it is part of the address. The same DO can have attributes under several FCs: Pos.stVal is ST, Pos.ctlModel is CF, Pos.Oper is CO.
| FC | Meaning | FC | Meaning |
|---|---|---|---|
ST |
Status | SG / SE |
Setting group / setting group editable |
MX |
Measured values | SR |
Service response |
SP |
Setpoint | OR |
Operate received |
SV |
Substitution | BL |
Blocking |
CF |
Configuration | EX |
Extended definition |
DC |
Description | CO |
Control |
RP |
Unbuffered report control | BR |
Buffered report control |
LG |
Log control | GO, US, MS |
GOOSE, unicast SV, multicast SV control |
Quality and timestamps
Section titled “Quality and timestamps”Status and measured values travel with a quality (q) and a timestamp (t). Quality holds a validity (good, invalid, reserved, questionable) plus detail flags such as overflow, out of range, old data, failure, test and operator blocked. The timestamp carries its own time quality: leap second known, clock failure, clock not synchronised, and time accuracy. A value without checking its quality is only half read.
References and the MMS mapping
Section titled “References and the MMS mapping”IEC 61850 names an attribute with an object reference:
LD/LN.DO.DA[FC]MNSREF615LD0/FMMXU1.Hz.mag.f[MX]MMS has no logical nodes or FCs. It has domains and named variables. IEC 61850-8-1 flattens the reference: the LD becomes the MMS domain, and the rest becomes an item ID with $ separators and the FC inserted after the LN:
| IEC 61850 reference | MMS domain | MMS item ID |
|---|---|---|
IEDLD1/LLN0.Mod.stVal[ST] |
IEDLD1 |
LLN0$ST$Mod$stVal |
PROT1LD/MMXU1.TotW.mag.f[MX] |
PROT1LD |
MMXU1$MX$TotW$mag$f |
Many servers prefix the domain with the IED name (for example InteropIED + InteropLD gives the domain InteropIEDInteropLD). Clients need to know the IED name to strip or add that prefix. OT Fabric exposes it as DialOptions.IEDName in the library and --ied-name in the CLI.
Services you will use
Section titled “Services you will use”Browse. A client discovers the model with MMS GetNameList (domains, then variables per domain) and GetVariableAccessAttributes (the type tree). These implement the ACSI GetServerDirectory, GetLogicalDeviceDirectory, GetLogicalNodeDirectory, GetDataDirectory and GetDataDefinition services.
Read and write. GetDataValues and SetDataValues map to MMS Read and Write, single or multi-variable. Writes are normally limited to settings and configuration (SP, CF). Control attributes (CO) are never written directly; you use a control service.
Datasets. A dataset is a named, ordered list of FC-qualified members (FCDA). In MMS it is a named variable list. Datasets are usually defined in the SCL file and live in LLN0. They are what reports carry.
Reports. A Report Control Block (RCB) in LLN0 tells the server to send a dataset’s values when something happens. The server sends an unsolicited MMS InformationReport. Two kinds exist:
- URCB (unbuffered, FC
RP): best-effort. If no client is connected or the client is slow, reports are lost. A client normally reserves the URCB (Resv) before enabling it. - BRCB (buffered, FC
BR): the server keeps a buffer of report entries, each with an EntryID. A client that reconnects can write the last EntryID it saw and receive what it missed, or setPurgeBufto discard the buffer. When the buffer overflows the server drops the oldest entries and flagsBufOvfl.
The RCB attributes a client configures include RptID, DatSet, TrgOps (trigger options: data change, quality change, data update, integrity, general interrogation), OptFlds (optional fields in each report: sequence number, timestamp, reason code, dataset name, data reference, buffer overflow, EntryID, configuration revision, segmentation), IntgPd (integrity period) and BufTm (buffer time). Writing GI triggers a general interrogation: one report with the current value of every dataset member. Setting RptEna enables the RCB.
Controls. A controllable DO (SPC, DPC, BSC and similar) has a ctlModel attribute that tells the client which sequence to use:
ctlModel |
Name | Sequence |
|---|---|---|
| 0 | status-only | Not controllable. |
| 1 | direct-with-normal-security | Write Oper. |
| 2 | sbo-with-normal-security | Read SBO to select, then write Oper. |
| 3 | direct-with-enhanced-security | Write Oper; the server reports completion with CommandTermination. |
| 4 | sbo-with-enhanced-security | Write SBOw (select with value), then write Oper. |
SBO stands for select-before-operate. Selection reserves the object for one client for a limited time. With enhanced security the ctlNum in SBOw and Oper must match, and both libiec61850 and the OT Fabric server enforce this. Every control also carries an origin (orCat and orIdent), a test flag and check conditions (synchrocheck, interlock check). If the server rejects a control, the reason is in LastApplError with an AddCause code. The OT Fabric server sends a positive CommandTermination after an enhanced-security operate; the client does not wait for it, and time-activated operate is not implemented.
Setting groups, journals and files. Protection settings can live in several setting groups, switched through the setting group control block (SGCB). Journals (logs) are read by time range or after a known entry. Files (for example disturbance records or configuration) are listed and downloaded through MMS file services.
SCL files
Section titled “SCL files”The Substation Configuration Language (SCL, IEC 61850-6) is the XML format that describes IEDs, their data models, datasets, control blocks, the communication network and the substation topology. You meet several file kinds:
| Kind | Content |
|---|---|
| ICD | IED Capability Description: what a device type can do, from the vendor. |
| IID | Instantiated IED Description: one configured IED. |
| CID | Configured IED Description: the file loaded into one device. |
| SCD | Substation Configuration Description: the whole substation. |
| SSD | System Specification Description: topology and functions. |
The schema has several editions in the field: 1.7 (IEC 61850-6:2003), 2007B (2009), 2007B4 (2018) and 2007C5 (2025). The SCL defines the engineering model. A live server can expose a subset of it or use different instance names, so verify against the device.
Transport and sessions
Section titled “Transport and sessions”MMS does not sit directly on TCP. It runs on the full ISO/OSI upper-layer stack, carried over TCP by RFC 1006:
MMS ISO 9506-1/2 services, BER-encoded PDUsACSE ISO 8650-1 association (AARQ / AARE), authenticationPresentation ISO 8823-1 context negotiationSession ISO 8327-1 CONNECT / ACCEPT / DATA / FINISHCOTP ISO 8073 class 0 transport, connection request/confirmTPKT RFC 1006 4-byte header framing over TCPTCP port 102A client opens TCP, sends a COTP connection request, then a single packet that nests session CONNECT, presentation, ACSE AARQ and the MMS Initiate request. The Initiate exchange negotiates the maximum PDU size, the number of outstanding requests and the data nesting level. After that the association carries confirmed requests (matched by invoke ID) and unconfirmed InformationReports in both directions. A client ends with MMS Conclude (graceful) or an ACSE abort (immediate).
GOOSE (Generic Object Oriented Substation Event, IEC 61850-8-1) is how IEDs tell each other about events fast enough for protection: a breaker failure, a blocking signal, an interlock. It has no TCP, no association and no request. A publisher multicasts the values of one dataset in Ethernet frames (EtherType 0x88B8, often in an 802.1Q VLAN with a priority tag), and any IED on the segment that is configured for it subscribes.
Each GOOSE control block (GoCB, FC GO in LLN0) names its dataset, a goID and a configuration revision. Its multicast MAC address, APPID, VLAN and timing come from the SCL GSE element. The frame carries:
| Field | Meaning |
|---|---|
gocbRef, datSet, goID |
Which control block and dataset this is |
stNum |
State number: increments when any dataset value changes |
sqNum |
Sequence number: increments on each retransmission of the same state, restarts at 0 on a new state |
timeAllowedToLive |
How long the subscriber may wait for the next frame before it declares the stream lost |
confRev, ndsCom |
Configuration revision, and “needs commissioning” |
test, simulation bit |
Test frames (the test field) and Edition 2 simulation frames (the S bit in the header) |
allData |
The dataset values, BER-encoded like MMS data |
Because there is no acknowledgement, reliability comes from repetition. After a change the publisher sends the new state at once, then retransmits it at growing intervals from MinTime to MaxTime, and keeps sending at MaxTime while nothing changes. A subscriber validates confRev, datSet and the member types against its SCL, and supervises the stream: a frame that does not arrive within timeAllowedToLive is a timeout, a jump in stNum or sqNum is a gap, and an stNum back at 1 is a publisher restart. In IEC 61850-7-4 that supervision is the LGOS logical node.
A client can read a GoCB over MMS and, where the server allows it, write GoEna (enable), GoID and DatSet.
Sampled Values
Section titled “Sampled Values”Sampled Values (SV, IEC 61850-9-2) carry the analogue measurements of the process bus. A merging unit samples the currents and voltages of instrument transformers and multicasts them (EtherType 0x88BA), so protection relays and meters receive digital samples instead of copper wiring from every transformer.
A frame holds one or more ASDUs (noASDU). Each ASDU carries its svID, the sample counter smpCnt, confRev, the synchronization state smpSynch (none, local or global clock), and the sample: the dataset members in a fixed binary layout. Optional fields are the dataset name, refresh time, sample rate and sample mode.
The common layout in the field is the UCA 9-2LE implementation guideline, now carried forward by IEC 61869-9: four currents and four voltages as 32-bit integers in 1 mA and 10 mV units, each with a 32-bit quality, at 80 samples per cycle (4000 frames a second at 50 Hz) with one ASDU per frame. Generic streams use any dataset and rate. smpCnt counts samples within a second and wraps, so a subscriber detects lost, duplicated and reordered samples from it, and smpSynch tells it whether samples from two merging units can be compared.
Multicast SV control blocks (MSVCB, FC MS) are configured from SCL (SampledValueControl and its SMV address) and can be read and partly written over MMS: SvEna, MsvID, DatSet, SmpRate, OptFlds and SmpMod. Unicast SV (US) exists in the standard but is rare.
What OT Fabric implements
Section titled “What OT Fabric implements”| Area | Implemented | Not implemented |
|---|---|---|
| MMS client | Browse, read and write (single and bulk), datasets, URCB and BRCB reports with GI, integrity period, EntryID resume and segmented report reassembly, direct, SBO and SBOw controls with CommandTermination wait and time-activated operate, setting groups, journals, files | |
| MMS server | SCL model, report engine with BufTm and segmentation, control state machine with CommandTermination, interlocking and synchrocheck checks, setting groups with a value bank per group, journals and files through providers, Identify, Status, graceful shutdown | Dynamic datasets, persistent buffers and setting groups out of the box (pluggable), BRCB ResvTms and Owner |
| GOOSE | Publisher, supervised subscriber, SCL binding, server GoCBs on data change, GoCB access over MMS, R-GOOSE over UDP | GOOSE management, GSSE, mapping received values into a server model |
| Sampled Values | 9-2LE and generic, publisher with absolute pacing and noASDU batching, subscriber with loss accounting, SCL binding, server MSVCBs, MSVCB access over MMS, R-SV over UDP |
Unicast SV, hardware time synchronization (PTP or 1PPS) |
| Security | TLS on the MMS connection, HMAC-SHA256 authentication of R-GOOSE and R-SV (IEC TR 61850-90-5) | IEC 62351-6 for layer-2 GOOSE and SV, encryption of R-GOOSE and R-SV |
The library guide has the details, and Testing and interop shows which of these are tested against which stack.
Security
Section titled “Security”Plain IEC 61850 MMS has no encryption and, in most deployments, no authentication. ACSE can carry a password in the association request; anyone on the network path can read it. TLS on the TCP connection (IEC 62351-3) is the transport-level option and must be supported by both ends. In practice MMS is protected by network segmentation. Treat port 102 as a control interface, because an associated client can send control commands to any object the device allows to be operated remotely.
GOOSE and Sampled Values are usually neither signed nor encrypted. IEC 62351-6 defines authentication for them, but it is rare in the field and OT Fabric does not implement it for layer-2 frames. Routable GOOSE and SV (R-GOOSE, R-SV) over UDP are signed with HMAC-SHA256 by go-iec61850. Anyone who can send frames on the segment can forge them, so the process and station buses are protected with VLANs, port security and separate switches.
Where it is used
Section titled “Where it is used”IEC 61850 is the station-bus standard in modern substations. A station computer, gateway or SCADA front end is the MMS client; protection relays, bay controllers, meters and RTUs are the servers, and exchange GOOSE among themselves. On the process bus, merging units publish Sampled Values to the relays. The same model is used wherever grid-connected plant is engineered to substation practice.
OT Fabric for IEC 61850
Section titled “OT Fabric for IEC 61850”| Project | Role | Source |
|---|---|---|
| go-iec61850 | IEC 61850 semantics: references, FCs, datasets, reports, controls, SCL, server model, GOOSE, Sampled Values, raw Ethernet | github.com/otfabric/go-iec61850 |
| go-mms | Generic MMS, ACSE, presentation and session layers | github.com/otfabric/go-mms |
| go-cotp | COTP class 0 transport | github.com/otfabric/go-cotp |
| go-tpkt | RFC 1006 TPKT framing | github.com/otfabric/go-tpkt |
| iec61850ctl | CLI on top of go-iec61850 and go-mms | github.com/otfabric/iec61850ctl |
| go-mms-trace | Offline analysis of MMS, GOOSE and Sampled Values packet captures, with mmstracectl |
github.com/otfabric/go-mms-trace |
| IEC 61850 Explorer | Desktop app and gateway daemon on go-iec61850, go-mms, go-mms-trace and go-iec61850-model | github.com/otfabric/iec61850-explorer |
| iec61850-interop | Reference stack images and fixtures for MMS, IED services, GOOSE and SV | github.com/otfabric/iec61850-interop |
Start with the Go library page or the iec61850ctl page, and see Testing and interop for what has been validated.