EtherNet/IP and OPC UA both let a client read and write values in an industrial device. They approach the job from opposite directions, and a defender reading their traffic needs to know the difference.
EtherNet/IP is a family of protocols built around CIP, the Common Industrial Protocol, which models a device as a set of objects with classes, instances and attributes. A client says which object and which attribute it wants and which service to perform. The addressing is compact and tied to the device’s internal structure. A controller exposes an Identity object, a connection manager, an assembly for I/O data and so on, each with a numeric class. An engineer who knows the device’s object model can ask for very specific things. The encapsulation layer runs over TCP 44818 for explicit messages and UDP 2222 for implicit I/O, and discovery uses a ListIdentity request that devices answer with their name, product code and serial number.
OPC UA models a server as an address space of nodes, each with a name, a type and a node ID, organised into a browsable tree. A client connects, negotiates a secure channel, creates a session and then reads, writes or calls methods on nodes. The traffic usually runs over TCP on 4840 in the binary mapping. The structure is self describing: a client can browse the tree and discover what the server offers, which suits tools that connect to devices they know nothing about in advance.
Two consequences follow for packet analysis. First, in EtherNet/IP you find the interesting operation by reading the service code and the object path, which are small numbers you look up. In OPC UA you find it by reading the service type and the node ID, and the node ID points into a tree that you can only interpret if you have the server’s address space or the names in the capture. A write to node ns=2;i=5001 means little unless you know what that node is. Filters such as opcua.servicenodeid.numeric (verified: the bare opcua.servicenodeid is not a field, only its subfields are, and the numeric one matched 150 frames on an invented anonymous-write capture in tshark 4.2.0) select the service, and you then read the node references in the request.
Second, security looks different. EtherNet/IP’s baseline protocol has no authentication in the base specification: whoever can reach port 44818 can send requests, and the controller’s refusal, where it happens, comes from a mode switch or a configured restriction, as the status field in the response shows. A secured variant exists, called CIP Security, but do not assume it is in use: confirm it from the capture in front of you. OPC UA was designed with security in the protocol: message signing and encryption, certificates for the application instances and user identity tokens for the person or program. Whether any of that is in use depends on the server configuration. An OPC UA endpoint can offer a security policy of None and accept an anonymous user, in which case the protocol’s security design is present but switched off.
That is the finding the OPC UA lesson is built around, and it is a configuration reading task. Look at the endpoint list returned in the GetEndpoints response, which names the security mode and policy each endpoint offers. Look at the session creation and activation messages to see which identity token was used. A session activated with an anonymous token on a None policy channel carries commands in the clear, with no identity to attribute them to. A session on a signed and encrypted channel hides the payload, and you will see only sizes and timing unless you hold the keys.
For a defender the practical difference is where the evidence lives. With EtherNet/IP, the evidence of a dangerous action is usually visible and short: a Reset request, a Set_Attribute_Single to a particular attribute. With OPC UA, it may be hidden by encryption, and the defender’s evidence comes from endpoint configuration, session logs on the server and the metadata of the channel. Both cases reward knowing what normal looks like for your own devices: which clients, which services and how often.
In a lab, you can reproduce both with a software controller and a software OPC UA server on one host, and capture the loopback or a bridge interface. We do not host a lab for this course, and learners who want one should follow the vendors’ and projects’ own documentation to run their own. The two protocols are best learned side by side, because the same plant question, who changed this setpoint, has different evidence in each, and seeing both helps you ask for the right logs.
For structured practice on this topic, see the OnlySecurity course Reading Industrial Protocols on the Wire: EtherNet/IP, OPC UA and the Wider Library.
More from this author
- One capture, three questions2 December, 2026
- Payload channels versus timing channels2 December, 2026
