A protocol library is a folder of small captures, one per protocol, collected so that you can see what each one looks like on the wire. It is the quickest route to a working vocabulary, and it is also easy to misuse. The value is in building a repeatable first look, not in memorising one capture per protocol.
Start with the question every unknown capture asks: what is talking to what, over which transport? Industrial protocols fall into four rough groups. Some ride on TCP with a well known port: Modbus/TCP on 502, EtherNet/IP explicit messaging on 44818, OPC UA binary on 4840 by convention, MQTT on 1883 or 8883 when wrapped in TLS. Some ride on UDP: EtherNet/IP implicit I/O on 2222, EtherNet/IP ListIdentity broadcasts on UDP 44818. Some sit directly on Ethernet with no IP at all: PROFINET DCP and real-time frames use ethertype 0x8892, EtherCAT uses 0x88A4, and POWERLINK uses 0x88AB. And some vendor protocols choose their own ports and may be moved: Omron FINS commonly uses UDP 9600, Beckhoff ADS uses TCP 48898, ROC Plus has used 4000 in published material. Treat every one of those port numbers as an assumption until you have seen it in the capture in front of you, because a port tells you what a device is configured to do, not what the protocol is.
The first-look routine is the same for all of them. Run a conversation summary (tshark -r file.pcap -q -z conv,tcp, then -z conv,udp, then -z conv,eth for the layer 2 cases). That tells you which transport you are in and who the endpoints are. Then run protocol hierarchy statistics (tshark -r file.pcap -q -z io,phs) to see which dissectors fired. If the hierarchy shows only raw data on a port you expected to decode, you have a Decode As problem, not an unknown protocol. Wireshark lets you map a TCP or UDP port to a dissector from the Analyze menu, and tshark accepts the same mapping with -d tcp.port==5020,mbtcp, which is the pattern to remember (the target protocol must register on that port table, so S7 on a non-standard port is mapped to tpkt, not s7comm).
Next, identify the roles. Industrial traffic is almost always client and server, or controller and device, and the roles matter more than the addresses. One host that opens many connections is a scanner, a SCADA master or an engineering workstation. One host that accepts connections from many is a controller or a gateway. Write the roles down before you look at a single payload.
Then find the operations. Each protocol has a small vocabulary of requests, and a handful of them change state. In EtherNet/IP and CIP those are services such as Set_Attribute_Single and Reset. In OPC UA they are the Write and Call services. In MQTT they are PUBLISH messages to a topic that controls something. In fieldbus captures they are the configuration and rename frames. A reader who can list which messages in a capture are reads and which are writes has understood most of what matters.
The last step is the one people skip: note what the capture does not contain. A library capture is usually a few seconds long, taken from a lab device, with no baseline. You can learn the shape of a protocol from it. You cannot learn what is normal for a plant. A short capture of a controller being read once says nothing about how often a real master polls it, and a library capture of a command being sent says nothing about whether that command is unusual in production.
For a mixed library, keep a one-page table of your own: protocol, transport and port, role names, three or four decisive fields, and the single most dangerous operation. That table is the thing you will use on the next unknown capture, long after you have forgotten which file taught you what. Keep each row to facts you saw yourself and mark the ones you took from a specification rather than a capture, so that you know which parts of the table are tested and which are assumed.
Finally, respect the handling rules. Library captures are small and generally safe to open, but the habit matters: open captures only in a tool that parses them, never export or carve files out of one, never run anything found inside, and keep the source and checksum with every file you analyse. Where the library is one of several licences, credit the owner in anything you write, and link to the original rather than redistribute files unless the licence clearly allows it.
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
