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.

UseWho talksMessagingExample
Controlling a machinePLC and its remote I/O, drives, and valve banksImplicit, UDP 2222The PLC sends output bits and reads input bits every 10 ms
Sharing data between controllersPLC and PLCImplicit (produced and consumed tags), or explicit message instructionsA conveyor PLC tells the next cell's PLC that a part is coming
Operator screens and SCADAHMI or SCADA (supervisory control and data acquisition) server and PLCExplicit, often over a connectionA screen polls tank levels and writes a setpoint when the operator types one
Data collectionHistorian, MES (manufacturing execution system), or OPC server and PLCExplicitA historian logs a few hundred tags once a second
Engineering and maintenanceProgramming laptop and PLC or driveExplicitAn engineer goes online, edits logic, or changes a drive parameter
Discovery and diagnosticsAny tool and every deviceExplicit, unconnectedA browser broadcasts List Identity and lists every device that answers
Safety and motionSafety PLC and safety I/O; motion controller and servo drivesImplicit, with CIP Safety or CIP Motion on topAn 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:

LayerWhat it carriesIn this capture
Encapsulation header (24 bytes)Command, length, session handle, status, sender context, optionsRegisterSession (0x65), SendRRData (0x6F), SendUnitData (0x70)
Common Packet Format (CPF)An address item and a data itemNull Address + Unconnected Data, or Connected Address + Connected Data
CIPService code, request path (EPATH), data; replies add a general statusConnection 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:

sequenceDiagram accTitle: EtherNet/IP session in the capture accDescr: The client opens TCP to port 44818 and registers a session. It sends a Forward Open, then lists tags and reads templates with unconnected requests. It closes the connection with a Forward Close and opens a second one. Over the second connection it reads attributes of every tag and sends one Multiple Service Packet. Then it closes TCP and the controller resets the connection. participant C as Client participant P as CompactLogix PLC C->>P: [26] TCP SYN to port 44818 C->>P: [29] Register Session P->>C: [31] session handle 0x0A021800 C->>P: [32] Forward Open, connection 1 P->>C: [33] O to T connection ID 0x00941841 C->>P: [34-53] Unconnected Send, list tags, read 4 templates C->>P: [54] Forward Close, connection 1 C->>P: [56] Forward Open, connection 2 P->>C: [57] O to T connection ID 0x009418C1 C->>P: [58-87] Send Unit Data, attributes of 11 tags C->>P: [89] Multiple Service Packet, read 11 DINTs C->>P: [99] TCP FIN P->>C: [101] TCP RST
The EtherNet/IP connection at a glance. Frame numbers are in brackets; TCP acknowledgments are left out.

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.

UnconnectedConnected (transport class 3)
Encapsulation commandSendRRData (0x6F)SendUnitData (0x70)
CPF address itemNull Address (0x0000)Connected Address (0x00A1), holding the connection ID
CPF data itemUnconnected Data (0x00B2)Connected Data (0x00B1), starting with a 16-bit sequence count
AddressingFull path in each request; to reach a module behind the port, wrap it in an Unconnected Send (0x52) with a route pathThe connection ID; the path was fixed by the Forward Open
Setup neededNone beyond RegisterSessionA Forward Open first, and a Forward Close at the end
In this captureFrames 32 to 57Frames 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:

📇 [00045] Frame 72 Logix Symbol: Get Attribute List (Request) 2009-10-29T15:50:19.12908Z 💻 EtherNet/IP Client → 🏭 CompactLogix PLC
frame : Frame 72: Packet, 120 bytes on wire (960 bits), 120 bytes captured (960 bits)
Encapsulation type : Ethernet (1)
Arrival Time : Oct 29, 2009 21:20:19.129080000 India Standard Time
UTC Arrival Time : Oct 29, 2009 15:50:19.129080000 UTC
Epoch Arrival Time : 1256831419.129080000
Time shift for this packet : 0.000000000 seconds
Time delta from previous captured frame : 164.000 microseconds
Time delta from previous displayed frame : 164.000 microseconds
Time since reference or first frame : 3.690002000 seconds
Frame Number : 72
Frame Length : 120 bytes (960 bits)
Capture Length : 120 bytes (960 bits)
Frame is marked : False
Frame is ignored : False
Protocols in frame : eth:ethertype:ip:tcp:enip:cip
Character encoding : ASCII (0)
eth : Ethernet II, Src: 00:08:a1:60:70:59, Dst: 00:00:bc:21:ca:c2
Destination : 00:00:bc:21:ca:c2
Destination (resolved) : 00:00:bc:21:ca:c2
Destination OUI : 00:00:bc (Rockwell Automation)
Destination OUI (resolved) : Rockwell Automation
.... ..0. .... .... .... .... = LG bit : Globally unique address (factory default)
.... ...0 .... .... .... .... = IG bit : Individual address (unicast)
Address : 00:00:bc:21:ca:c2
Address (resolved) : 00:00:bc:21:ca:c2
Address OUI : 00:00:bc (Rockwell Automation)
Address OUI (resolved) : Rockwell Automation
.... ..0. .... .... .... .... = LG bit : Globally unique address (factory default)
.... ...0 .... .... .... .... = IG bit : Individual address (unicast)
Source : 00:08:a1:60:70:59
Source (resolved) : 00:08:a1:60:70:59
Source OUI : 00:08:a1 (CNet Technology Inc.)
Source OUI (resolved) : CNet Technology Inc.
.... ..0. .... .... .... .... = LG bit : Globally unique address (factory default)
.... ...0 .... .... .... .... = IG bit : Individual address (unicast)
Address : 00:08:a1:60:70:59
Address (resolved) : 00:08:a1:60:70:59
Address OUI : 00:08:a1 (CNet Technology Inc.)
Address OUI (resolved) : CNet Technology Inc.
.... ..0. .... .... .... .... = LG bit : Globally unique address (factory default)
.... ...0 .... .... .... .... = IG bit : Individual address (unicast)
Type : IPv4 (0x0800)
Stream index : 5
ip : Internet Protocol Version 4, Src: 192.168.0.46, Dst: 192.168.0.101
0100 .... = Version : 4
.... 0101 = Header Length : 20 bytes (5)
Differentiated Services Field : 0x00 (DSCP: CS0, ECN: Not-ECT)
0000 00.. = Differentiated Services Codepoint : Default (0)
.... ..00 = Explicit Congestion Notification : Not ECN-Capable Transport (0)
Total Length : 106
Identification : 0xadab (44459)
010. .... = Flags : 0x2, Don't fragment
0... .... = Reserved bit : Not set
.1.. .... = Don't fragment : Set
..0. .... = More fragments : Not set
...0 0000 0000 0000 = Fragment Offset : 0
Time to Live : 128
Protocol : TCP (6)
Header Checksum : 0xcafe [validation disabled]
Header checksum status : Unverified
Source Address : 192.168.0.46
Source or Destination Address : 192.168.0.46
Source Host : 192.168.0.46
Source or Destination Host : 192.168.0.46
Destination Address : 192.168.0.101
Source or Destination Address : 192.168.0.101
Destination Host : 192.168.0.101
Source or Destination Host : 192.168.0.101
Stream index : 2
tcp : Transmission Control Protocol, Src Port: 3326, Dst Port: 44818, Seq: 1369, Ack: 2242, Len: 66
Source Port : 3326
Destination Port : 44818
Source or Destination Port : 3326
Source or Destination Port : 44818
Stream index : 1
Stream Packet Number : 47
Conversation completeness : Incomplete, DATA (15)
..0. .... = RST : Absent
...0 .... = FIN : Absent
.... 1... = Data : Present
.... .1.. = ACK : Present
.... ..1. = SYN-ACK : Present
.... ...1 = SYN : Present
Completeness Flags : ··DASS
TCP Segment Len : 66
Sequence Number : 1369 (relative sequence number)
Sequence Number (raw) : 33231072
Next Sequence Number : 1435 (relative sequence number)
Acknowledgment Number : 2242 (relative ack number)
Acknowledgment number (raw) : 3216391295
0101 .... = Header Length : 20 bytes (5)
Flags : 0x018 (PSH, ACK)
000. .... .... = Reserved : Not set
...0 .... .... = Accurate ECN : Not set
.... 0... .... = Congestion Window Reduced : Not set
.... .0.. .... = ECN-Echo : Not set
.... ..0. .... = Urgent : Not set
.... ...1 .... = Acknowledgment : Set
.... .... 1... = Push : Set
.... .... .0.. = Reset : Not set
.... .... ..0. = Syn : Not set
.... .... ...0 = Fin : Not set
TCP Flags : ·······AP···
Window : 64809
Calculated window size : 64809
Window size scaling factor : -2 (no window scaling used)
Checksum : 0x9c13 [unverified]
Checksum Status : Unverified
Urgent Pointer : 0
Timestamps
Time since first frame in this TCP stream : 164.181000 milliseconds
Time since previous frame in this TCP stream : 164.000 microseconds
SEQ/ACK analysis
This is an ACK to the segment in frame : 71
The RTT to ACK the segment was : 164.000 microseconds
iRTT : 1.169000 milliseconds
Bytes in flight : 66
Bytes sent since last PSH flag : 66
Client Contiguous Streams : 1
Server Contiguous Streams : 1
TCP payload (66 bytes)
PDU Size : 66
enip : EtherNet/IP (Industrial Protocol), Session: 0x0A021800, Send Unit Data, Connection ID: 0x009418C1
Encapsulation Header
Command : Send Unit Data (0x0070)
Length : 42
Session Handle : 0x0a021800
Status : Success (0x00000000)
Sender Context : 0000000000000000
Options : 0x00000000
Command Specific Data
Interface Handle : CIP (0x00000000)
Timeout : 0
Item Count : 2
Type ID : Connected Address Item (0x00a1)
Length : 4
Connection ID : 0x009418c1
Connection ID : 0x009418c1
Type ID : Connected Data Item (0x00b1)
Length : 22
CIP Sequence Count : 22
Expert Info (Note/Protocol) : CIP request without a response
CIP request without a response
Message : CIP request without a response
Severity level : Note
Group : Protocol
Connection Information
CIP Connection Index : 1
Forward Open Connection Path : Port: Backplane, Address: 0, Message Router, Instance: 0x01, Connection Point: 0x01
Path Segment : 0x01 (Port Segment)
000. .... = Path Segment Type : Port Segment (0)
...0 .... = Extended Link Address : False
.... 0001 = Port : Backplane (1)
Link Address : 0
Slot : 0
Path Segment : 0x20 (8-Bit Class Segment)
001. .... = Path Segment Type : Logical Segment (1)
...0 00.. = Logical Segment Type : Class ID (0)
.... ..00 = Logical Segment Format : 8-bit Logical Segment (0)
Class : Message Router (0x02)
Path Segment : 0x24 (8-Bit Instance Segment)
001. .... = Path Segment Type : Logical Segment (1)
...0 01.. = Logical Segment Type : Instance ID (1)
.... ..00 = Logical Segment Format : 8-bit Logical Segment (0)
Instance : 0x01
Path Segment : 0x2c (8-Bit Connection Point Segment)
001. .... = Path Segment Type : Logical Segment (1)
...0 11.. = Logical Segment Type : Connection Point (3)
.... ..00 = Logical Segment Format : 8-bit Logical Segment (0)
Connection Point : 0x01
Forward Open Request In : 56
Data Direction : Unknown (0)
cip : Common Industrial Protocol
Service : Get Attribute List (Request)
0... .... = Request/Response : Request (0x0)
.000 0011 = Service : Get Attribute List (0x03)
Request Path Size : 6 words
Request Path : Class: 0x68, Instance: 0x2351, Class: 0x6B, Instance: 0x0D6A
EPath : 206825005123206b25006a0d
Path Segment : 0x20 (8-Bit Class Segment)
001. .... = Path Segment Type : Logical Segment (1)
...0 00.. = Logical Segment Type : Class ID (0)
.... ..00 = Logical Segment Format : 8-bit Logical Segment (0)
Class : Unknown (0x68)
Path Segment : 0x25 (16-Bit Instance Segment)
001. .... = Path Segment Type : Logical Segment (1)
...0 01.. = Logical Segment Type : Instance ID (1)
.... ..01 = Logical Segment Format : 16-bit Logical Segment (1)
Instance : 0x2351
Path Segment : 0x20 (8-Bit Class Segment)
001. .... = Path Segment Type : Logical Segment (1)
...0 00.. = Logical Segment Type : Class ID (0)
.... ..00 = Logical Segment Format : 8-bit Logical Segment (0)
Class : Unknown (0x6b)
Path Segment : 0x25 (16-Bit Instance Segment)
001. .... = Path Segment Type : Logical Segment (1)
...0 01.. = Logical Segment Type : Instance ID (1)
.... ..01 = Logical Segment Format : 16-bit Logical Segment (1)
Instance : 0x0d6a
Get Attribute List (Request)
Attribute Count : 2
Attribute List
Attribute : 3
Attribute : 6
Rendered from a Wireshark PCAP by VisualEther.

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:

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:

🔌 [00005] Frame 32 CIP: Forward Open (Request) 2009-10-29T15:50:18.970212Z 💻 EtherNet/IP Client → 🏭 CompactLogix PLC
frame : Frame 32: Packet, 144 bytes on wire (1152 bits), 144 bytes captured (1152 bits)
Encapsulation type : Ethernet (1)
Arrival Time : Oct 29, 2009 21:20:18.970212000 India Standard Time
UTC Arrival Time : Oct 29, 2009 15:50:18.970212000 UTC
Epoch Arrival Time : 1256831418.970212000
Time shift for this packet : 0.000000000 seconds
Time delta from previous captured frame : 108.000 microseconds
Time delta from previous displayed frame : 108.000 microseconds
Time since reference or first frame : 3.531134000 seconds
Frame Number : 32
Frame Length : 144 bytes (1152 bits)
Capture Length : 144 bytes (1152 bits)
Frame is marked : False
Frame is ignored : False
Protocols in frame : eth:ethertype:ip:tcp:enip:cip:cipcm
Character encoding : ASCII (0)
eth : Ethernet II, Src: 00:08:a1:60:70:59, Dst: 00:00:bc:21:ca:c2
Destination : 00:00:bc:21:ca:c2
Destination (resolved) : 00:00:bc:21:ca:c2
Destination OUI : 00:00:bc (Rockwell Automation)
Destination OUI (resolved) : Rockwell Automation
.... ..0. .... .... .... .... = LG bit : Globally unique address (factory default)
.... ...0 .... .... .... .... = IG bit : Individual address (unicast)
Address : 00:00:bc:21:ca:c2
Address (resolved) : 00:00:bc:21:ca:c2
Address OUI : 00:00:bc (Rockwell Automation)
Address OUI (resolved) : Rockwell Automation
.... ..0. .... .... .... .... = LG bit : Globally unique address (factory default)
.... ...0 .... .... .... .... = IG bit : Individual address (unicast)
Source : 00:08:a1:60:70:59
Source (resolved) : 00:08:a1:60:70:59
Source OUI : 00:08:a1 (CNet Technology Inc.)
Source OUI (resolved) : CNet Technology Inc.
.... ..0. .... .... .... .... = LG bit : Globally unique address (factory default)
.... ...0 .... .... .... .... = IG bit : Individual address (unicast)
Address : 00:08:a1:60:70:59
Address (resolved) : 00:08:a1:60:70:59
Address OUI : 00:08:a1 (CNet Technology Inc.)
Address OUI (resolved) : CNet Technology Inc.
.... ..0. .... .... .... .... = LG bit : Globally unique address (factory default)
.... ...0 .... .... .... .... = IG bit : Individual address (unicast)
Type : IPv4 (0x0800)
Stream index : 5
ip : Internet Protocol Version 4, Src: 192.168.0.46, Dst: 192.168.0.101
0100 .... = Version : 4
.... 0101 = Header Length : 20 bytes (5)
Differentiated Services Field : 0x00 (DSCP: CS0, ECN: Not-ECT)
0000 00.. = Differentiated Services Codepoint : Default (0)
.... ..00 = Explicit Congestion Notification : Not ECN-Capable Transport (0)
Total Length : 130
Identification : 0xad97 (44439)
010. .... = Flags : 0x2, Don't fragment
0... .... = Reserved bit : Not set
.1.. .... = Don't fragment : Set
..0. .... = More fragments : Not set
...0 0000 0000 0000 = Fragment Offset : 0
Time to Live : 128
Protocol : TCP (6)
Header Checksum : 0xcafa [validation disabled]
Header checksum status : Unverified
Source Address : 192.168.0.46
Source or Destination Address : 192.168.0.46
Source Host : 192.168.0.46
Source or Destination Host : 192.168.0.46
Destination Address : 192.168.0.101
Source or Destination Address : 192.168.0.101
Destination Host : 192.168.0.101
Source or Destination Host : 192.168.0.101
Stream index : 2
tcp : Transmission Control Protocol, Src Port: 3326, Dst Port: 44818, Seq: 29, Ack: 29, Len: 90
Source Port : 3326
Destination Port : 44818
Source or Destination Port : 3326
Source or Destination Port : 44818
Stream index : 1
Stream Packet Number : 7
Conversation completeness : Incomplete, DATA (15)
..0. .... = RST : Absent
...0 .... = FIN : Absent
.... 1... = Data : Present
.... .1.. = ACK : Present
.... ..1. = SYN-ACK : Present
.... ...1 = SYN : Present
Completeness Flags : ··DASS
TCP Segment Len : 90
Sequence Number : 29 (relative sequence number)
Sequence Number (raw) : 33229732
Next Sequence Number : 119 (relative sequence number)
Acknowledgment Number : 29 (relative ack number)
Acknowledgment number (raw) : 3216389082
0101 .... = Header Length : 20 bytes (5)
Flags : 0x018 (PSH, ACK)
000. .... .... = Reserved : Not set
...0 .... .... = Accurate ECN : Not set
.... 0... .... = Congestion Window Reduced : Not set
.... .0.. .... = ECN-Echo : Not set
.... ..0. .... = Urgent : Not set
.... ...1 .... = Acknowledgment : Set
.... .... 1... = Push : Set
.... .... .0.. = Reset : Not set
.... .... ..0. = Syn : Not set
.... .... ...0 = Fin : Not set
TCP Flags : ·······AP···
Window : 65507
Calculated window size : 65507
Window size scaling factor : -2 (no window scaling used)
Checksum : 0xeb80 [unverified]
Checksum Status : Unverified
Urgent Pointer : 0
Timestamps
Time since first frame in this TCP stream : 5.313000 milliseconds
Time since previous frame in this TCP stream : 108.000 microseconds
SEQ/ACK analysis
This is an ACK to the segment in frame : 31
The RTT to ACK the segment was : 108.000 microseconds
iRTT : 1.169000 milliseconds
Bytes in flight : 90
Bytes sent since last PSH flag : 90
Client Contiguous Streams : 1
Server Contiguous Streams : 1
TCP payload (90 bytes)
PDU Size : 90
enip : EtherNet/IP (Industrial Protocol), Session: 0x0A021800, Send RR Data
Encapsulation Header
Command : Send RR Data (0x006f)
Length : 66
Session Handle : 0x0a021800
Status : Success (0x00000000)
Sender Context : 0000000000000000
Options : 0x00000000
Command Specific Data
Interface Handle : CIP (0x00000000)
Timeout : 0
Item Count : 2
Type ID : Null Address Item (0x0000)
Length : 0
Type ID : Unconnected Data Item (0x00b2)
Length : 50
Expert Info (Note/Protocol) : CIP request without a response
CIP request without a response
Message : CIP request without a response
Severity level : Note
Group : Protocol
cip : Common Industrial Protocol
Service : Unknown Service (0x54) (Request)
0... .... = Request/Response : Request (0x0)
.101 0100 = Service : Unknown (0x54)
Request Path Size : 2 words
Request Path : Connection Manager, Instance: 0x01
EPath : 20062401
Path Segment : 0x20 (8-Bit Class Segment)
001. .... = Path Segment Type : Logical Segment (1)
...0 00.. = Logical Segment Type : Class ID (0)
.... ..00 = Logical Segment Format : 8-bit Logical Segment (0)
Class : Connection Manager (0x06)
Path Segment : 0x24 (8-Bit Instance Segment)
001. .... = Path Segment Type : Logical Segment (1)
...0 01.. = Logical Segment Type : Instance ID (1)
.... ..00 = Logical Segment Format : 8-bit Logical Segment (0)
Instance : 0x01
cipcm : CIP Connection Manager
Service : Forward Open (Request)
0... .... = Request/Response : Request (0x0)
.101 0100 = Service : Forward Open (0x54)
Command Specific Data
...0 .... = Priority : 0
.... 0101 = Tick time : 5
Time-out ticks : 247
Actual Time Out : 7904ms
O->T Network Connection ID : 0x00000002
T->O Network Connection ID : 0x00000001
Connection ID : 0x00000002
Connection ID : 0x00000001
Connection Serial Number : 0x0002
Originator Vendor ID : Unknown (0x544c)
Originator Serial Number : 0x2e00a8c0
Connection Timeout Multiplier : *16 (2)
Reserved : 0x000000
O->T RPI : 2000.000ms
O->T Network Connection Parameters : 0x43f4
0... .... .... .... = Redundant Owner : Non-Redundant (0)
.10. .... .... .... = Connection Type : Point to Point (2)
.... 00.. .... .... = Priority : Low Priority (0)
.... ..1. .... .... = Connection Size Type : Variable (1)
.... ...1 1111 0100 = Connection Size : 500 bytes
T->O RPI : 2000.000ms
T->O Network Connection Parameters : 0x43f4
0... .... .... .... = Redundant Owner : Non-Redundant (0)
.10. .... .... .... = Connection Type : Point to Point (2)
.... 00.. .... .... = Priority : Low Priority (0)
.... ..1. .... .... = Connection Size Type : Variable (1)
.... ...1 1111 0100 = Connection Size : 500 bytes
Transport Type/Trigger : 0xa3, Direction, Trigger: Application Object, Class: 3
1... .... = Direction : Server
.010 .... = Trigger : Application Object (2)
.... 0011 = Class : 3 (3)
Connection Path Size : 4 words
Connection Path : Port: Backplane, Address: 0, Message Router, Instance: 0x01, Connection Point: 0x01
EPath : 0100200224012c01
Path Segment : 0x01 (Port Segment)
000. .... = Path Segment Type : Port Segment (0)
...0 .... = Extended Link Address : False
.... 0001 = Port : Backplane (1)
Link Address : 0
Slot : 0
Path Segment : 0x20 (8-Bit Class Segment)
001. .... = Path Segment Type : Logical Segment (1)
...0 00.. = Logical Segment Type : Class ID (0)
.... ..00 = Logical Segment Format : 8-bit Logical Segment (0)
Class : Message Router (0x02)
Path Segment : 0x24 (8-Bit Instance Segment)
001. .... = Path Segment Type : Logical Segment (1)
...0 01.. = Logical Segment Type : Instance ID (1)
.... ..00 = Logical Segment Format : 8-bit Logical Segment (0)
Instance : 0x01
Path Segment : 0x2c (8-Bit Connection Point Segment)
001. .... = Path Segment Type : Logical Segment (1)
...0 11.. = Logical Segment Type : Connection Point (3)
.... ..00 = Logical Segment Format : 8-bit Logical Segment (0)
Connection Point : 0x01
Rendered from a Wireshark PCAP by VisualEther.

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.

ParameterValue in frame 32What it means
Priority/tick time, time-out ticks5, 247The unconnected request timeout: how long a device routing this request waits for the reply, 2⁵ × 247 = 7904 ms
O->T connection ID0x00000002A placeholder; the target picks the real one
T->O connection ID0x00000001The ID the target will put on packets it sends to the client
Connection serial, vendor ID, originator serial0x0002, 0x544C, 0x2E00A8C0The triad that names the connection; the serial is the client's IP address, 192.168.0.46, byte-reversed
Timeout multiplier2, meaning ×16The connection times out after 16 × RPI of silence
O->T and T->O RPI2000 msThe requested packet interval; for an explicit connection it only sets the timeout, 16 × 2 s = 32 s
O->T and T->O network parameters0x43F4Point-to-point, low priority, variable size, 500 bytes
Transport type/trigger0xA3Server, application-object trigger, class 3: an explicit messaging connection
Connection pathPort 1, slot 0, class 0x02 instance 1Through 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:

TagScopeTypeWhat it is
Local:2:IControllerStructure, template 0x851Input image of the module in slot 2
Local:3:I, Local:3:O, Local:3:CControllerStructures, templates 0x3F3, 0x58A, 0xD30Input, output, and configuration of the module in slot 3
massiivMainProgramDINT[20]A 20-element array of 32-bit integers
Taitur1, Taitur2, P_and, Pump, SL, TermostaatMainProgramBOOLSingle bits
Program:, Task:, Routine:, Map:, Cxn: entriesBothSystem (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:

TemplateNameMembers
0x58AAB:1769_DO16:O:0Data (INT)
0x3F3AB:1769_DO16:I:0Fault (DINT), ReadBack (INT)
0xD30AB:1769_DO16:C:0CfgSize, CfgIDNum, Reserved, Config, ProgToFaultEn, ProgMode, ProgValue, FaultMode, FaultValue
0x851AB:1769_DI16:I:0Fault (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:

Compare OPC UA, whose secure channel signs or encrypts every message with keys tied to application certificates.

How to debug EtherNet/IP in Wireshark

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

  1. Three layers on TCP 44818. A 24-byte encapsulation header, a Common Packet Format with an address and a data item, then CIP.
  2. RegisterSession is not a login. The session handle proves nothing about the client.
  3. Unconnected and connected messaging differ in setup and addressing. SendRRData with a full path, or a Forward Open and then SendUnitData with a connection ID and sequence count.
  4. A Forward Open sets the terms. Connection IDs in each direction, RPI and timeout multiplier, sizes, and transport class 3 for explicit messaging.
  5. 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.
  6. A reset after a FIN is not a failure. Here every request was answered first.
  7. Anyone who reaches port 44818 can browse. Without CIP Security, segmentation and allow-lists are the defense.