EtherNet/IP and CIP Explicit Messaging, Packet by Packet
This walkthrough uses talabor1_2_2.pcap from the ICS-pcap collection on GitHub, under ETHERNET_IP/talabor1_2_2/. The collection gathers industrial captures from many sources and does not name this file's author; it was captured on October 29, 2009. Download it there (the repository stores captures with Git LFS). We decoded it with VisualEther, which turns a Wireshark PCAP into a sequence diagram with a plain-English caption on every message.
If you work on a plant network, you see TCP port 44818 everywhere: HMIs, SCADA servers, historians, and engineering laptops all talk to PLCs on it. That port is EtherNet/IP, the protocol Rockwell Automation's Logix controllers and thousands of other devices speak. Wireshark decodes it well, but its view is dense: an encapsulation header, a Common Packet Format, a CIP request with an encoded path, and, for Logix controllers, vendor-specific services that Wireshark labels only as "Unknown Service".
This capture is a compact tour. One client opens a TCP connection to a CompactLogix controller, registers a session, and lists every tag in the controller and in its one program. It reads the layout of every structure type, opens a CIP connection, reads more about each tag over that connection, and reads 11 values from an array. Then it closes TCP, and the controller answers with a reset. Along the way it uses both styles of explicit messaging, unconnected and connected, in one session, which makes it a good place to see the difference.
The capture holds 106 frames. Frames 26 to 101 are the EtherNet/IP connection, 192.168.0.46 port 3326 to 192.168.0.101 port 44818; the rest are SSDP, spanning tree, Nortel discovery, ARP, SNMP, and SMB traffic from other hosts. The diagram keeps only the EtherNet/IP connection, with the original frame numbers, and leaves out bare TCP acknowledgments.
Each participant gets a lane, and each message is an arrow, numbered as in Wireshark and captioned with what it does. Under each arrow are the fields that matter: the encapsulation command, the Common Packet Format items, the connection ID and sequence count, the CIP service, class, and instance, the general status, and the Forward Open parameters.
💡 Read the walkthrough and the diagram side by side: open the interactive diagram in a split-screen window, or open it in a new tab and snap the two windows side by side.
What is EtherNet/IP?
EtherNet/IP is how factory equipment talks over ordinary Ethernet. At the center of most machines is a PLC, a programmable logic controller: a rugged computer that reads sensors, runs the control logic, and drives outputs such as motors, valves, and lights, in a loop that repeats every few milliseconds. Around it sit I/O modules that wire to the sensors and actuators, variable-speed drives, robots, valve banks, barcode readers, and the operator screens (HMIs, human-machine interfaces) that show what the machine is doing.
Those devices used to be wired point to point or joined by dedicated fieldbus networks, each with its own cables and interface cards. EtherNet/IP puts them on standard Ethernet switches, cabling, and TCP/IP instead, so the same network can carry fast control traffic, operator screens, and the plant's data collection. It is common wherever Rockwell Automation (Allen-Bradley) controllers run, especially in North America, and many other vendors' drives, robots, and I/O speak it too, in automotive, packaging, food and beverage, water treatment, and process plants.
What is EtherNet/IP used for?
Nearly every conversation on a plant floor falls into one of a few patterns. Each uses one of EtherNet/IP's two styles of messaging, explained later: implicit messaging streams the same data every few milliseconds over UDP, and explicit messaging asks a question and waits for the answer over TCP.
| Use | Who talks | Messaging | Example |
|---|---|---|---|
| Controlling a machine | PLC and its remote I/O, drives, and valve banks | Implicit, UDP 2222 | The PLC sends output bits and reads input bits every 10 ms |
| Sharing data between controllers | PLC and PLC | Implicit (produced and consumed tags), or explicit message instructions | A conveyor PLC tells the next cell's PLC that a part is coming |
| Operator screens and SCADA | HMI or SCADA (supervisory control and data acquisition) server and PLC | Explicit, often over a connection | A screen polls tank levels and writes a setpoint when the operator types one |
| Data collection | Historian, MES (manufacturing execution system), or OPC server and PLC | Explicit | A historian logs a few hundred tags once a second |
| Engineering and maintenance | Programming laptop and PLC or drive | Explicit | An engineer goes online, edits logic, or changes a drive parameter |
| Discovery and diagnostics | Any tool and every device | Explicit, unconnected | A browser broadcasts List Identity and lists every device that answers |
| Safety and motion | Safety PLC and safety I/O; motion controller and servo drives | Implicit, with CIP Safety or CIP Motion on top | An emergency stop, or axes kept in step by synchronized clocks |
This capture is the explicit kind: a client, such as an HMI, an OPC server, or a tag browser, reading a controller's tag database the way the operator-screen and data-collection rows do. It never touches implicit I/O.
What are EtherNet/IP and CIP?
EtherNet/IP (Ethernet Industrial Protocol; the "IP" is not Internet Protocol) carries CIP, the Common Industrial Protocol, over standard Ethernet, TCP, and UDP. CIP is the application layer: an object model in which every device is a set of objects, each with a class, instances, attributes, and services such as Get Attribute List. The same CIP runs over DeviceNet, ControlNet, and CompoNet. ODVA (originally the Open DeviceNet Vendor Association), the standards body behind all of them, publishes CIP in Volume 1 of The CIP Networks Library and the EtherNet/IP adaptation in Volume 2. Those volumes are sold, not free; ODVA's free overview, CIP and the Family of CIP Networks (PUB00123), covers the 24-byte header and the two ports below (§3.3.11), and Wireshark's dissectors fill in the field-level detail this article relies on.
On the wire, an explicit message stacks three layers on TCP:
| Layer | What it carries | In this capture |
|---|---|---|
| Encapsulation header (24 bytes) | Command, length, session handle, status, sender context, options | RegisterSession (0x65), SendRRData (0x6F), SendUnitData (0x70) |
| Common Packet Format (CPF) | An address item and a data item | Null Address + Unconnected Data, or Connected Address + Connected Data |
| CIP | Service code, request path (EPATH), data; replies add a general status | Connection Manager, Message Router, and the Logix Symbol, Template, and Program objects |
Wireshark names these layers enip (EtherNet/IP, often shortened to ENIP), cip, and cipcm for the Connection Manager. A request path, or EPATH, is a string of segments: a class, an instance, maybe an attribute, a route through a backplane port and slot, or a symbol name. The high bit of the service code marks a reply: 0x54 is a Forward Open request, 0xD4 its reply.
Two ports matter. TCP 44818 carries explicit messaging, request/response traffic such as "list your tags". UDP 2222 carries implicit, or I/O, messaging, the cyclic data a PLC exchanges with its I/O and drives. This capture has only the first.
What does the whole session look like?
8.5 seconds from SYN to reset, and the browsing is over in the first 209 ms:
The controller identifies itself through its tag database, which names Rockwell 1769 Compact I/O modules (AB:1769_DO16, AB:1769_DI16) in the local chassis and a LocalENB module, the built-in Ethernet port of a CompactLogix. The capture has no List Identity request, so no product name or firmware appears. The client is a Logix-aware tool, such as an HMI, an OPC server, or a programming package; its vendor ID, 0x544C, is not one Wireshark knows.
RegisterSession: a handle, not a login
Before any CIP traffic, the client sends RegisterSession (frame 29) with session handle 0 and protocol version 1. The controller answers in 4.0 ms with handle 0x0A021800 (frame 31), and every later message on the connection carries it. The handle ties messages to this TCP connection. It proves nothing about who the client is: there is no username, password, or certificate anywhere in the exchange.
What is the difference between connected and unconnected messaging?
Unconnected messaging sends each request on its own, with its full destination in the request. Connected messaging first sets up a CIP connection with a Forward Open and then sends requests on that connection with a short connection ID and a sequence count. Both are explicit messaging, and both run over the same TCP connection and session here.
| Unconnected | Connected (transport class 3) | |
|---|---|---|
| Encapsulation command | SendRRData (0x6F) | SendUnitData (0x70) |
| CPF address item | Null Address (0x0000) | Connected Address (0x00A1), holding the connection ID |
| CPF data item | Unconnected Data (0x00B2) | Connected Data (0x00B1), starting with a 16-bit sequence count |
| Addressing | Full path in each request; to reach a module behind the port, wrap it in an Unconnected Send (0x52) with a route path | The connection ID; the path was fixed by the Forward Open |
| Setup needed | None beyond RegisterSession | A Forward Open first, and a Forward Close at the end |
| In this capture | Frames 32 to 57 | Frames 58 to 91 |
Frame 34 is typical of the unconnected side. The client wants the controller's Symbol object, so it sends SendRRData to the Connection Manager of the Ethernet port with an Unconnected Send inside. The Unconnected Send carries a route path, backplane port 1, slot 0, which is the controller, and the real request embedded in it. The Connection Manager forwards the embedded request and relays the reply.
Frame 72 is typical of the connected side. Here is its full decode; under enip, the CPF holds a Connected Address item with connection ID 0x009418C1 and a Connected Data item with sequence count 22, and the CIP request names only the object it wants:
frame : Frame 72: Packet, 120 bytes on wire (960 bits), 120 bytes captured (960 bits)
eth : Ethernet II, Src: 00:08:a1:60:70:59, Dst: 00:00:bc:21:ca:c2
Destination : 00:00:bc:21:ca:c2
Source : 00:08:a1:60:70:59
ip : Internet Protocol Version 4, Src: 192.168.0.46, Dst: 192.168.0.101
Differentiated Services Field : 0x00 (DSCP: CS0, ECN: Not-ECT)
010. .... = Flags : 0x2, Don't fragment
tcp : Transmission Control Protocol, Src Port: 3326, Dst Port: 44818, Seq: 1369, Ack: 2242, Len: 66
Conversation completeness : Incomplete, DATA (15)
Flags : 0x018 (PSH, ACK)
Timestamps
SEQ/ACK analysis
enip : EtherNet/IP (Industrial Protocol), Session: 0x0A021800, Send Unit Data, Connection ID: 0x009418C1
Encapsulation Header
Command Specific Data
Item Count : 2
Type ID : Connected Address Item (0x00a1)
Type ID : Connected Data Item (0x00b1)
Expert Info (Note/Protocol) : CIP request without a response
Connection Information
Forward Open Connection Path : Port: Backplane, Address: 0, Message Router, Instance: 0x01, Connection Point: 0x01
Path Segment : 0x01 (Port Segment)
Path Segment : 0x20 (8-Bit Class Segment)
Path Segment : 0x24 (8-Bit Instance Segment)
Path Segment : 0x2c (8-Bit Connection Point Segment)
cip : Common Industrial Protocol
Service : Get Attribute List (Request)
Request Path : Class: 0x68, Instance: 0x2351, Class: 0x6B, Instance: 0x0D6A
Path Segment : 0x20 (8-Bit Class Segment)
Path Segment : 0x25 (16-Bit Instance Segment)
Path Segment : 0x20 (8-Bit Class Segment)
Path Segment : 0x25 (16-Bit Instance Segment)
Get Attribute List (Request)
Attribute List
Frame 72, a connected request. Under ENIP: Send Unit Data (0x0070), session handle 0x0A021800, a Connected Address item (connection ID 0x009418C1) and a Connected Data item (CIP sequence count 22). Under CIP: Get Attribute List on class 0x68 instance 0x2351, then class 0x6B instance 0x0D6A, asking for attributes 3 and 6. Wireshark adds the Forward Open connection path for reference.
Why would a client open a connection?
A CIP connection costs a Forward Open and a slot in the controller, and it pays that back in four ways:
- Reserved resources. The controller sets aside buffers for the connection, so a busy controller is less likely to turn away a request on the connection than an unconnected request competing for shared buffers.
- No per-request routing. The path is resolved once, at Forward Open. Each later request carries only a 4-byte connection ID instead of a route path and an Unconnected Send wrapper.
- Duplicate detection. Each new request carries the next sequence count, and the reply echoes it. If the client retries a request, the controller sees the same count and does not act on it twice.
- A known lifetime. The connection times out after RPI × timeout multiplier of silence, so the controller frees its resources even if the client vanishes.
This is why HMIs and SCADA drivers that poll the same controller all day usually read over class 3 connections, and why one-off tools, such as a tag browser, often don't bother.
What does a Forward Open do?
A Forward Open (service 0x54 to the Connection Manager, class 0x06) asks the target to create a CIP connection with given parameters, and its reply returns the connection IDs. Frame 32 is the client's first one:
frame : Frame 32: Packet, 144 bytes on wire (1152 bits), 144 bytes captured (1152 bits)
eth : Ethernet II, Src: 00:08:a1:60:70:59, Dst: 00:00:bc:21:ca:c2
Destination : 00:00:bc:21:ca:c2
Source : 00:08:a1:60:70:59
ip : Internet Protocol Version 4, Src: 192.168.0.46, Dst: 192.168.0.101
Differentiated Services Field : 0x00 (DSCP: CS0, ECN: Not-ECT)
010. .... = Flags : 0x2, Don't fragment
tcp : Transmission Control Protocol, Src Port: 3326, Dst Port: 44818, Seq: 29, Ack: 29, Len: 90
Conversation completeness : Incomplete, DATA (15)
Flags : 0x018 (PSH, ACK)
Timestamps
SEQ/ACK analysis
enip : EtherNet/IP (Industrial Protocol), Session: 0x0A021800, Send RR Data
Encapsulation Header
Command Specific Data
Item Count : 2
Type ID : Null Address Item (0x0000)
Type ID : Unconnected Data Item (0x00b2)
Expert Info (Note/Protocol) : CIP request without a response
cip : Common Industrial Protocol
Service : Unknown Service (0x54) (Request)
Request Path : Connection Manager, Instance: 0x01
Path Segment : 0x20 (8-Bit Class Segment)
Path Segment : 0x24 (8-Bit Instance Segment)
cipcm : CIP Connection Manager
Service : Forward Open (Request)
Command Specific Data
O->T Network Connection Parameters : 0x43f4
T->O Network Connection Parameters : 0x43f4
Transport Type/Trigger : 0xa3, Direction, Trigger: Application Object, Class: 3
Connection Path : Port: Backplane, Address: 0, Message Router, Instance: 0x01, Connection Point: 0x01
Path Segment : 0x01 (Port Segment)
Path Segment : 0x20 (8-Bit Class Segment)
Path Segment : 0x24 (8-Bit Instance Segment)
Path Segment : 0x2c (8-Bit Connection Point Segment)
Frame 32, Forward Open request. Under ENIP: Send RR Data (0x006F) with a Null Address item and an Unconnected Data item. Under CIP Connection Manager: tick time 5 and 247 ticks (7904 ms request timeout), O->T connection ID 0x00000002 and T->O 0x00000001, connection serial 0x0002, originator vendor 0x544C and serial 0x2E00A8C0, timeout multiplier x16, O->T and T->O RPI 2000 ms, 500-byte variable point-to-point connections, transport class 3, and the connection path: backplane port 1, slot 0, Message Router.
| Parameter | Value in frame 32 | What it means |
|---|---|---|
| Priority/tick time, time-out ticks | 5, 247 | The unconnected request timeout: how long a device routing this request waits for the reply, 2⁵ × 247 = 7904 ms |
| O->T connection ID | 0x00000002 | A placeholder; the target picks the real one |
| T->O connection ID | 0x00000001 | The ID the target will put on packets it sends to the client |
| Connection serial, vendor ID, originator serial | 0x0002, 0x544C, 0x2E00A8C0 | The triad that names the connection; the serial is the client's IP address, 192.168.0.46, byte-reversed |
| Timeout multiplier | 2, meaning ×16 | The connection times out after 16 × RPI of silence |
| O->T and T->O RPI | 2000 ms | The requested packet interval; for an explicit connection it only sets the timeout, 16 × 2 s = 32 s |
| O->T and T->O network parameters | 0x43F4 | Point-to-point, low priority, variable size, 500 bytes |
| Transport type/trigger | 0xA3 | Server, application-object trigger, class 3: an explicit messaging connection |
| Connection path | Port 1, slot 0, class 0x02 instance 1 | Through the backplane to slot 0, the controller, and its Message Router |
O->T means originator to target, client to controller here; T->O is the other way. The reply in frame 33 (11.4 ms) keeps T->O 0x00000001, picks O->T 0x00941841, and returns actual packet intervals (API) of 2000 ms. A normal Forward Open has room for a 9-bit size, up to 511 bytes; the client's 500 fits. A Large Forward Open (0x5B) widens the parameters to 32 bits, with a 16-bit size of up to 65,535 bytes.
Why does the client open a connection, close it, and open another?
The capture can show what happened but not why. After the first Forward Open, the client never uses connection 0x00941841: all 10 requests of the tag browse go unconnected, in SendRRData with an Unconnected Send. Then it closes the connection with a Forward Close (frame 54) that repeats the triad, and sends a second Forward Open (frame 56).
The two Forward Open requests are byte for byte identical: the same serial 0x0002, RPI, sizes, timeout multiplier, transport class, and path. So the second one is not renegotiating anything. Reusing the serial is allowed because the Forward Close freed it. The controller hands out a new O->T ID, 0x009418C1, and this time the client uses it for everything that follows. A likely reading is that the client's tag-upload step and its run-time step each manage their own connection, and the upload step does not use the one it opens. Nothing in CIP requires it.
The Forward Close reply in frame 55 has a quirk of its own. It claims 3 words of application reply data and carries none, so Wireshark flags "Forward Close response missing application reply data". The general status is success, the client carries on, and so can a reader.
How does a client read Logix tags?
With Rockwell's own objects, not CIP's common ones. A Logix controller exposes its tag database through the Symbol object (class 0x6B) and describes structure layouts with the Template object (class 0x6C). Rockwell documents both in publication 1756-PM020, Logix 5000 Controllers Data Access. Their service codes overlap with other meanings elsewhere: 0x4C is Read Tag on a symbol but Read Template on a template, which is why Wireshark labels many of these messages "Unknown Service".
The client in this capture works in three steps.
1. List the tags. Frame 34 sends service 0x55, Get Instance Attribute List, to the Symbol object starting at instance 0, asking for each tag's type, element size, array dimensions, and name. The 492-byte reply in frame 35 holds 14 controller-scoped entries and success, which means the list is complete; status 0x06 would mean "more to come, ask again from the last instance". Frame 36 repeats the request with an ANSI symbol segment, Program:MainProgram, at the front of the path, which scopes the list to that program's tags (frame 37). Wireshark shows both replies as hex; decoded, they hold:
| Tag | Scope | Type | What it is |
|---|---|---|---|
Local:2:I | Controller | Structure, template 0x851 | Input image of the module in slot 2 |
Local:3:I, Local:3:O, Local:3:C | Controller | Structures, templates 0x3F3, 0x58A, 0xD30 | Input, output, and configuration of the module in slot 3 |
massiiv | MainProgram | DINT[20] | A 20-element array of 32-bit integers |
Taitur1, Taitur2, P_and, Pump, SL, Termostaat | MainProgram | BOOL | Single bits |
Program:, Task:, Routine:, Map:, Cxn: entries | Both | System (type bit 12 set) | The project's structure, not data |
The names are Estonian: täitur is an actuator, termostaat a thermostat, and massiiv an array. The symbol type packs a lot into 16 bits: bit 15 marks a structure, bits 13 and 14 count array dimensions, bit 12 is set on every system entry in this list (1756-PM020 tells clients to skip tags with it set), and the low 12 bits hold the template ID for a structure or the data type otherwise (0xC1 BOOL, 0xC3 INT, 0xC4 DINT). A BOOL also carries its bit position in bits 8 to 10, so Pump, type 0x02C1, is bit 2 of some word.
2. Read each structure's template. For each of the four structure types, the client reads the template header with Get Attributes All (frames 38, 42, 46, 50) and then the template itself with Read Template, 0x4C (frames 40, 44, 48, 52). The header gives the member count, the definition size in 32-bit words, and the structure size. 1756-PM020 gives the size to read as (definition size × 4) − 23 bytes; this client rounds that up to a multiple of four and asks for 36, 56, 196, and 52 bytes. Each reply lists every member's type and offset, then the template name and member names:
| Template | Name | Members |
|---|---|---|
| 0x58A | AB:1769_DO16:O:0 | Data (INT) |
| 0x3F3 | AB:1769_DO16:I:0 | Fault (DINT), ReadBack (INT) |
| 0xD30 | AB:1769_DO16:C:0 | CfgSize, CfgIDNum, Reserved, Config, ProgToFaultEn, ProgMode, ProgValue, FaultMode, FaultValue |
| 0x851 | AB:1769_DI16:I:0 | Fault (DINT), Data (INT) |
So slot 2 holds a 16-point digital input module and slot 3 a 16-point digital output module. Ten unconnected requests have given the client the controller's whole data model in 65 ms.
3. Read more about each tag, over the connection. After the second Forward Open, the client asks for attributes 3 and 6 of all 11 data tags (frames 64 to 87), in alphabetical order, each on the connection with the next sequence count. Program tags are addressed as class 0x68 instance 0x2351, then class 0x6B and the tag's instance; the client learns 0x2351 from an undocumented service 0x4B on class 0x68 (frames 58 and 59) and confirms it by matching attribute 16 of the program with attribute 3 of the Program:MainProgram symbol (frames 60 to 63).
1756-PM020 does not document attributes 3 and 6, class 0x68, or service 0x4B. Open-source tools fill some of the gap: they call class 0x68 the Program object and 0x4B a request for its instance list, and pycomm3 calls Symbol attribute 3 the symbol address and reads a bit of attribute 6 to spot alias tags. What follows is read from the values, not from Rockwell. Attribute 3 looks like a memory address. Three BOOLs, Taitur1, Pump, and SL, report the same attribute 3 as Local:3:O, and the low half of their attribute 6, 0x4FFC, is Local:3:O's symbol instance. Three more, Termostaat, P_and, and Taitur2, report Local:2:I's attribute 3 plus 4, the offset of its Data member, and 0x0139, Local:2:I's instance. These BOOLs behave like aliases for I/O bits: actuators and a pump on the output module, a thermostat contact on the input module.
The last request, frame 89 at 5.5 s, uses the addresses. It is a Multiple Service Packet (service 0x0A to the Message Router) that bundles two requests into one round trip: attribute 1 of class 0xAC, and service 0x4C on class 0x72 with the address 0x00109AF0 and a count of 11. 1756-PM020 has clients read attributes of class 0xAC to detect changes to the tag database; class 0x72 is undocumented. That address is 20 bytes past massiiv's attribute 3. The reply (frame 91, 7.9 ms) returns 5 for the first and, for the second, 11 DINTs: 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 0, a Fibonacci run that fits the DINT[20] array massiiv. The client has stopped using tag names altogether and reads memory by address.
Rockwell's documented way to read a value is Read Tag (0x4C) with the tag's name as an ANSI symbol segment, as tools such as libplctag and pycomm3 do. This client's address-based reads are undocumented, so treat them as a description of this client, not a recipe.
What is the difference between explicit and implicit messaging?
Explicit messaging is request/response: a client asks, and the target answers, as in every CIP exchange in this capture. Implicit messaging, also called I/O messaging, is cyclic: once a Forward Open sets up a class 0 or class 1 connection, producer and consumer send their I/O data at the agreed RPI, over UDP port 2222, often multicast, with no request and no reply. The packets carry only data and a sequence number; the meaning of every byte was fixed when the connection was opened. That is how a PLC exchanges inputs and outputs with remote I/O and drives every few milliseconds. This capture has no implicit messaging: there is no UDP 2222 traffic, and both Forward Opens ask for class 3. The 1769 modules here sit on the controller's own backplane, so their I/O never crosses Ethernet.
How does the session end?
Without ceremony. At 12.03 s, 6.5 s after the last reply, the client sends a TCP FIN (frame 99). It sends no Forward Close for connection 2 and no UnregisterSession. Closing TCP ends the encapsulation session. The open-source OpENer stack closes a session's class 3 connections at that moment; whether Logix firmware does the same is not public, and if it doesn't, the 32-second timeout from the Forward Open frees connection 2.
The controller ACKs the FIN (frame 100) and then, 1.7 ms after the FIN, sends an RST (frame 101) instead of a FIN of its own. A reset in reply to a FIN means the controller's TCP stack aborted the connection rather than closing it in order. It does not mean something failed: every request had been answered and nothing was in flight, so nothing was lost. Many embedded stacks close this way. A capture of a real failure looks different: requests without replies, a nonzero CIP general status, or an RST in the middle of an exchange.
How fast does the controller answer?
Quickly and steadily. The 29 request/reply pairs take 4.0 to 13.9 ms, with a median of 6.5 ms, measured from frame.time_relative. The first Forward Open takes 11.4 ms, and three reads of attributes 3 and 6 on the Local:3 module tags take 13 to 14 ms each (frames 66, 68, and 70). Every other reply arrives within 8 ms. The whole browse, from TCP SYN to the reply to the last tag-attribute read, takes 209 ms.
Is EtherNet/IP secure?
Not as used here. This session has no authentication and no encryption: the session handle is a number the controller hands to anyone who asks, and every tag name, structure layout, and value crosses the wire in clear text. Anyone who can reach TCP port 44818 on this controller can do what this client did: list the whole tag database and read its memory. The same protocol carries writes.
ODVA defines CIP Security for this, first published in 2015 as Volume 8 of the CIP Networks Library. It runs EtherNet/IP over TLS on TCP port 2221 and DTLS on UDP port 2221, with device certificates or pre-shared keys, and adds authentication and integrity, with optional encryption. This 2009 capture predates it and does not use it: the traffic is plain TCP to port 44818, with no TLS on port 2221. Many installed controllers don't support it at all. Until they do, the defenses are on the network:
- Segment. Put controllers in their own zone and allow 44818 only from the HMIs, servers, and engineering stations that need it.
- Watch for browsing. A Get Instance Attribute List on class 0x6B from an unexpected host is someone enumerating the tag database. Forward Opens and writes from new sources deserve an alert too.
- Use the controller's own protections. Logix controllers can restrict changes by mode switch and by software security settings; check what your model supports.
Compare OPC UA, whose secure channel signs or encrypts every message with keys tied to application certificates.
How to debug EtherNet/IP in Wireshark
- Filter on
eniporcip. Wireshark decodes TCP and UDP 44818 and UDP 2222 automatically. Addcipcmfor the Connection Manager. - Separate the transports.
enip.command == 0x006fshows unconnected traffic andenip.command == 0x0070connected traffic;enip.cpf.cai.connidgives the connection ID of each connected packet. - Check every reply's status.
cip.genstat != 0finds failed requests. Status 0x06 on a Get Instance Attribute List is not an error: it means "more data, ask again". - Pair requests and replies. Wireshark links them (
enip.response_to,enip.time), so the reply time per request is one column away. - Expect "Unknown Service". Logix services such as 0x55 and 0x4C are vendor-specific, and Wireshark decodes their payloads only partly. Use 1756-PM020 to read the hex.
- Follow Forward Opens. A failed Forward Open returns general status 0x01 with an extended status that names the reason, such as a duplicate connection or no resources.
FAQ
What port does EtherNet/IP use? TCP 44818 for explicit messaging and session commands, UDP 44818 for some unconnected commands such as List Identity, and UDP 2222 for implicit (I/O) messaging.
What is the difference between EtherNet/IP and CIP? CIP is the application protocol: objects, services, and paths. EtherNet/IP is how CIP travels over Ethernet, TCP, and UDP, with its own encapsulation header and Common Packet Format. The same CIP also runs over DeviceNet, ControlNet, and CompoNet.
What is the difference between SendRRData and SendUnitData? SendRRData carries an unconnected request or reply, addressed by a full path. SendUnitData carries a request or reply on an existing CIP connection, addressed by a connection ID with a sequence count.
What is a Forward Open? A Connection Manager request that creates a CIP connection, with its RPI, timeout multiplier, sizes, transport class, and path. The reply returns the connection IDs the two sides use from then on. A Forward Close ends it.
What is RPI? The requested packet interval. For I/O connections it is how often data is sent; for explicit (class 3) connections it only sets the timeout, RPI × timeout multiplier.
How do you read tags from a ControlLogix or CompactLogix PLC? List them with Get Instance Attribute List (0x55) on the Symbol object (0x6B), read structure layouts from the Template object (0x6C), and read values with Read Tag (0x4C) using the tag name, all described in Rockwell's 1756-PM020.
Is EtherNet/IP encrypted? Not by default. Plain EtherNet/IP has no authentication or encryption. CIP Security adds TLS and DTLS on port 2221 where both ends support it.
Takeaways
- Three layers on TCP 44818. A 24-byte encapsulation header, a Common Packet Format with an address and a data item, then CIP.
- RegisterSession is not a login. The session handle proves nothing about the client.
- Unconnected and connected messaging differ in setup and addressing.
SendRRDatawith a full path, or a Forward Open and thenSendUnitDatawith a connection ID and sequence count. - A Forward Open sets the terms. Connection IDs in each direction, RPI and timeout multiplier, sizes, and transport class 3 for explicit messaging.
- Logix tags come from Rockwell's objects. The Symbol object lists them, the Template object describes structures, and 1756-PM020 decodes what Wireshark leaves as hex.
- A reset after a FIN is not a failure. Here every request was answered first.
- Anyone who reaches port 44818 can browse. Without CIP Security, segmentation and allow-lists are the defense.