KNX: KNX Communication Model

KNX defines a complete communication model — from the structure of individual telegrams to group addressing, physical addressing, IP integration via tunneling and routing, and end-to-end encryption through KNX Secure.

Understanding how KNX devices communicate is essential for anyone designing, commissioning, or troubleshooting a KNX installation. KNX defines not only the physical medium, but the entire communication stack — from the byte structure of a telegram to the secure transport of commands over IP networks.


The KNX Telegram — The Fundamental Unit of Communication

Every piece of communication on a KNX network happens through a telegram — a structured data packet that devices send and receive over the bus.

A KNX telegram consists of five parts:

md
+----------------+------------------+------------------+-----------+----------+
|  Frame         |  Control Field   |  Address Field   |  Data     | Checksum |
|  (start/end)   |  (priority, type)|  (source + dest) |  (payload)|  (error  |
|                |                  |                  |           | detect)  |
+----------------+------------------+------------------+-----------+----------+

1. Frame

  • Defines the start and end of the telegram
  • Ensures the receiver can identify when a valid message begins and ends

2. Control Field

  • Indicates priority — system messages take priority over user-initiated commands
  • Defines whether the telegram is standard, extended, or repeated
  • Contains flags such as "repeat" (for retransmission) and "acknowledge"

3. Address Field

  • Contains the source address (which device sent it) and the destination address (who should receive it)
  • Destination can be:
  • Individual address — point-to-point communication to a specific device
  • Group address — multicast communication to all devices in a group

4. Data Field

  • Holds the payload — the actual command or value being communicated
  • Examples: "Switch light ON", "Set temperature to 22°C", "Blind position 75%"
  • KNX uses standardized Datapoint Types (DPTs) to ensure consistent data interpretation across devices from different manufacturers

5. Checksum

  • A small value at the end used for error detection
  • Ensures the telegram was not corrupted during transmission on the bus
Example: When a wall switch sends "Turn ON light," the telegram contains the control info, the switch's source address, the light group's destination address, the ON command as payload, and a checksum validating the entire packet.

Group Communication vs. Point-to-Point

KNX offers two fundamentally different communication modes, each suited to different scenarios.

Group Communication (Multicast)

The most common communication model in KNX.

  • A single telegram is broadcast to all devices that share a group address
  • One command can simultaneously control all lights, blinds, or thermostats in a group
  • Efficient for building-wide automation

md
[Wall Switch]
    |
    | sends "Turn ON" to group 1/0/1
    v
[KNX Bus]
    |
    +---> [Light 1]  (listens to 1/0/1)
    +---> [Light 2]  (listens to 1/0/1)
    +---> [Light 3]  (listens to 1/0/1)
    (all lights respond simultaneously)

Point-to-Point (Unicast)

  • Direct communication between two specific devices
  • The destination is the physical (individual) address of the target device
  • Used for: device programming via ETS, diagnostics, system messages, and direct device-to-device coordination

Physical vs. Logical Addressing

KNX uses two distinct address types that serve different purposes.

Physical Address (Individual Address)

  • Unique ID for each device in the installation — comparable to an IP address
  • Format: Area.Line.Device (e.g., 1.1.25)
  • Area — a group of lines (1–15)
  • Line — a segment within an area (1–15)
  • Device — a specific device on that line (1–255)
  • Used for: commissioning, downloading configuration, diagnostics, and direct communication

md
Area 1
  |
  +-- Line 1.1
  |     |-- Device 1.1.1  (Switch)
  |     |-- Device 1.1.2  (Dimmer)
  |     |-- Device 1.1.25 (Temperature Sensor)
  |
  +-- Line 1.2
        |-- Device 1.2.1  (HVAC Controller)

Logical Address (Group Address)

  • Represents a function, not a device
  • Format: Main/Middle/Sub (e.g., 1/0/1)
  • Example: 1/0/1 = "Living Room Lights ON/OFF"
  • Multiple devices can share the same group address to create synchronized behavior
  • A single device can belong to multiple group addresses (e.g., a dimmer might listen to both "ON/OFF" and "Dim Level" group addresses)
Think of the **physical address** as a device's **home address** (where it lives on the bus), and the **group address** as a **group chat** where multiple devices share the same message.

KNX/IP — Integrating KNX with Ethernet Networks

As building installations grow larger and more complex, KNX needs to operate over IP networks (Ethernet, Wi-Fi). KNX/IP defines how this integration works and provides two key modes:

KNX/IP Tunneling

  • Works like a virtual serial cable over IP
  • Each connection is point-to-point between a PC/ETS software and one KNX/IP interface
  • Ideal for commissioning, debugging, and single remote connections
  • Limitation: Multiple simultaneous clients require multiple tunnel connections

md
[ETS Software on PC] <---[KNX/IP Tunnel]---> [KNX/IP Interface] --> [KNX TP Bus]

KNX/IP Routing

  • Uses IP multicast to forward telegrams between KNX TP lines and IP backbone
  • Multiple KNX lines can be connected via IP routers — ideal for large buildings
  • Supports multiple clients simultaneously without separate tunnels
  • More efficient for large-scale installations with many subsystems

md
[KNX Line 1.1] <---> [KNX/IP Router] <---[IP Backbone]---> [KNX/IP Router] <---> [KNX Line 2.1]


KNX Secure — Protecting the Installation

As buildings become smarter and more connected, cybersecurity becomes critical. KNX Secure was introduced to protect KNX installations against cyber threats.

KNX Secure defines two complementary security layers:

KNX IP Secure

  • Encrypts KNX telegrams when transmitted over IP networks
  • Protects against eavesdropping and unauthorized access on the network
  • Applied at the IP transport level

KNX Data Secure

  • Encrypts and authenticates telegrams at the application level
  • Ensures only authorized devices can interpret or act on messages — even on the physical bus
  • Example: A command "Unlock Door" is signed and encrypted so it cannot be forged or replayed

Benefits of KNX Secure:

  • Prevents replay attacks — recorded telegrams cannot be re-sent to manipulate devices
  • Guarantees device authentication — devices verify the identity of senders
  • Ensures integrity and confidentiality of all communication

md
Without KNX Secure:
[Attacker] ---> captures telegram --> replays "Unlock Door" --> Door opens

With KNX Secure:
[Attacker] ---> captures telegram --> replay blocked by authentication --> Door stays locked


Summary

The KNX communication model covers five dimensions:

ConceptDescription
Telegram StructureFrame, Control, Address, Data, Checksum
Group CommunicationMulticast — one telegram to many devices via group address
Point-to-PointUnicast — direct communication between two devices
Physical AddressingIndividual address (Area.Line.Device) for device identity
Logical AddressingGroup address (Main/Middle/Sub) for functional grouping
KNX/IP TunnelingVirtual cable over IP for commissioning
KNX/IP RoutingMulticast over IP for large building backbones
KNX IP SecureEncryption of KNX traffic over IP
KNX Data SecureEnd-to-end application-level encryption and authentication

Mastering this communication model is the foundation for designing, commissioning, and securing professional KNX installations.