PortDock

PortDock Packet Guide

Packet analyzer — Modbus TCP, MC (SLMP) and LS XGT request/response pairing, response times, unanswered requests, live capture

About this program

PortDock Packet opens pcap and pcapng capture files. Files made by Wireshark open here, and files are saved in the standard pcapng format.

Besides the common protocols (Ethernet, ARP, IP, TCP, UDP, DNS, DHCP) it dissects Modbus TCP, MC (SLMP) and LS XGT FEnet. Requests and responses are paired, and response times, unanswered requests and exceptions are summarized at the top.

It only reads — it never sends packets and never uploads file or capture contents. The «Capture» button at the top records the traffic passing through this PC.

Getting started

  • 1. Press «Open» (Ctrl+O) or drop a file on the window.
  • 2. Look at the strip on top: packets, time span, flows, and per Modbus/MC/XGT the response time (min · median · 95% · max) with «no response» and «exceptions» counts.
  • 3. Click a red «no response n» or «exceptions n» to filter just those packets. Click a packet in the list to see its dissection tree and bytes below.
  • 4. The «Expert» tab below explains retransmissions, unanswered requests and exceptions with «where to look next».
  • 5. Clicking a tree field highlights its bytes. Right-click a field for «Apply as filter» and «Show only this value».
  • Drag the bars between panes to resize. Right-click the list header to show or hide columns.
  • List keys: Up Down PageUp PageDown Home End. Find: Ctrl+F. Filter box: /.

Display filter syntax

The syntax is the same as Wireshark's display filter. While you type, the box turns green (valid) or red (invalid), the mistake is underlined and the reason is shown below.

  • Compare: == != > >= < <= e.g. tcp.port == 502, frame.len > 100
  • Combine: && (and) || (or) ! (not) and parentheses e.g. ip.addr == 10.0.0.5 && !arp
  • Presence only: just the field name e.g. tcp.analysis.retransmission, modbus
  • Text: contains, matches e.g. frame.protocols contains "mbtcp"
  • Common fields: ip.addr · ip.src · ip.dst · tcp.port · tcp.stream · modbus.func_code · modbus.exception_code · mc.end_code · xgt.error_code · modbus.response_time · frame.time_delta
  • Expert: expert.key == "pair.no_response" (unanswered), expert.key == "tcp.retransmission", expert.severity == "warn"
  • The buttons under the box («Modbus only», «Errors only», «No response»…) write the expression for you. Right-clicking a field or clicking a number in the top strip fills it in too.
  • While typing: Tab fills the suggestion, Up/Down picks one (or goes through the history when there is none), Enter applies.

Reading response times

The response time runs from the request packet passing this PC to its paired response packet passing. It is the device's processing time plus the wire time.

  • median: half of the responses are faster. Treat it as the normal speed.
  • 95%: the maximum after leaving out the slowest 5%. Much larger than the median (shown in orange) means it is occasionally very late — common when the polling cycle clashes or the device is busy.
  • max: the single slowest. If it stands alone, click that packet and look around it.
  • no response: a request with no response within the timeout (1 s by default) or whose connection closed without one. Suspect the unit ID, address, firewall or cable.
  • exceptions: the device answered «cannot do that» (Modbus exception code, MC end code, XGT error). The Expert tab gives the cause and what to check.
  • «Response time distribution» shows bars per range and can filter the slow responses.
  • In the list, the «Response time» column shows the time on the response row and a red «no response» on an unanswered request.

Live capture

  • Top «● Capture» → pick adapter, IP, port and protocol, then «Start capture». It uses Windows' built-in Packet Monitor, so nothing to install.
  • Administrator rights are required. Otherwise a «Restart as administrator» button appears and Windows shows one permission prompt.
  • The list refreshes every 1.5 s. Your filter stays applied, and the list follows new packets while you are at the bottom. «■ Stop» ends it, «Save» keeps a pcapng.
  • «Network adapters only» is recommended (fewer duplicates). «Whole stack» reduces the same packet showing up at several layers.
  • Only traffic passing through this PC is visible. Traffic between other devices beyond a switch needs a mirror port.
  • Traffic to 127.0.0.1 (this PC itself) is not captured. Open a file for local tests.
  • It only listens — it never sends packets.

Device map

Pick a device in «Device map» in the top strip and Modbus register addresses in responses get that device's names and units (e.g. Output frequency ×0.01 Hz) in the dissection tree. 86 devices are listed; leave «(none)» if unknown.