<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Reza Farsi</title>
    <description>The latest articles on DEV Community by Reza Farsi (@rezafarsi_com).</description>
    <link>https://dev.to/rezafarsi_com</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4244927%2F7b61db6d-32a0-4525-aaa8-405f19aa8a65.png</url>
      <title>DEV Community: Reza Farsi</title>
      <link>https://dev.to/rezafarsi_com</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rezafarsi_com"/>
    <language>en</language>
    <item>
      <title>What a GOOSE capture proves — and what it cannot</title>
      <dc:creator>Reza Farsi</dc:creator>
      <pubDate>Sat, 14 Nov 2026 19:04:05 +0000</pubDate>
      <link>https://dev.to/rezafarsi_com/what-a-goose-capture-proves-and-what-it-cannot-1bij</link>
      <guid>https://dev.to/rezafarsi_com/what-a-goose-capture-proves-and-what-it-cannot-1bij</guid>
      <description>&lt;p&gt;A packet capture is the only record of what actually crossed the wire. It is also the most over-claimed artefact in substation work: people treat “we have a capture” as if it were “we have a result”. This note separates the two.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why the capture is the only witness
&lt;/h2&gt;

&lt;p&gt;A configuration file records intent. A device screen records an interpretation. Only the wire records behaviour: the bytes, in order, with timestamps. That is why every serious claim about a substation network eventually lands on a capture — and why a tool that cannot read one is describing a system it has not seen.&lt;/p&gt;

&lt;p&gt;The mistake starts one step later. A capture proves that something happened. It does not prove that what happened was correct, complete, or caused by what you think.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a GOOSE capture can prove
&lt;/h2&gt;

&lt;p&gt;Read field by field, a capture answers a specific set of questions with no interpretation required:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Question&lt;/th&gt;
&lt;th&gt;What in the frame answers it&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Was the message actually published?&lt;/td&gt;
&lt;td&gt;The frame exists, with a timestamp&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Which stream is it?&lt;/td&gt;
&lt;td&gt;Destination MAC, APPID, VLAN ID and priority&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Which control block, and which version of it?&lt;/td&gt;
&lt;td&gt;gocbRef, datSet, confRev&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Is this a new state or a retransmission?&lt;/td&gt;
&lt;td&gt;stNum and sqNum&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Is the publisher keeping its declared rhythm?&lt;/td&gt;
&lt;td&gt;Intervals against timeAllowedToLive&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Does the frame match the configuration?&lt;/td&gt;
&lt;td&gt;Field values compared with the SCD, not with memory&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;None of those rows needs the standard’s blessing. They are observations, and they are checkable by a second person with the same file.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a capture cannot prove
&lt;/h2&gt;

&lt;p&gt;This list is the important one, because every item on it has been presented as proven by a capture somewhere:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Conformance. A capture shows one exchange, not compliance with a standard. Conformance is a test against requirements, normally by an accredited laboratory.&lt;/li&gt;
&lt;li&gt;Why the publisher sent it. The frame is the output of internal state you cannot see; you can infer, you cannot know.&lt;/li&gt;
&lt;li&gt;That nothing else is wrong. The capture has a window. Behaviour outside it is unobserved, and “no errors in the file” is not “no errors”.&lt;/li&gt;
&lt;li&gt;That your own implementation is interoperable. A capture of a peer shows the peer. It says nothing about whether your encoder writes what that peer would accept.&lt;/li&gt;
&lt;li&gt;Who produced the capture. Unless the file states the product and version, it is anonymous bytes — useful, but not attributable.&lt;/li&gt;
&lt;li&gt;Anything about a different protocol. GOOSE timing says nothing about sampled values, and an MMS read says nothing about a trip circuit.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Five things to record with every capture
&lt;/h2&gt;

&lt;p&gt;A capture without this header becomes an anecdote within a week. The header costs five minutes:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Field&lt;/th&gt;
&lt;th&gt;Why it matters&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Who produced it&lt;/td&gt;
&lt;td&gt;Product and version; “a relay” is not a source&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;When, and for how long&lt;/td&gt;
&lt;td&gt;The window is part of the evidence&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;How it was taken&lt;/td&gt;
&lt;td&gt;Port mirror, TAP, or a host capture — each has blind spots&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Clock source&lt;/td&gt;
&lt;td&gt;Timestamps are only comparable if the clock is known&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;What was supposed to happen&lt;/td&gt;
&lt;td&gt;The test intent, so “pass” has a definition&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;An anonymised capture is still evidence. A capture with no provenance is a rumour with a checksum.&lt;/p&gt;

&lt;h2&gt;
  
  
  The case that changed how we test
&lt;/h2&gt;

&lt;p&gt;In the project behind this note, the protocol tests were symmetric: our encoder produced bytes, our decoder read them back, and the tests passed. Five wire-format defects survived that arrangement, because both sides shared the same mistake.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Defect&lt;/th&gt;
&lt;th&gt;What symmetric tests showed&lt;/th&gt;
&lt;th&gt;What foreign bytes showed&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Identifier encoded as an OCTET STRING&lt;/td&gt;
&lt;td&gt;green&lt;/td&gt;
&lt;td&gt;a conformant peer reads a different type&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Conclude with wrong choice tags&lt;/td&gt;
&lt;td&gt;green&lt;/td&gt;
&lt;td&gt;the release silently fails&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Name-list service tags one too high&lt;/td&gt;
&lt;td&gt;green&lt;/td&gt;
&lt;td&gt;the request is not recognised&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Read-Request access read from the wrong field&lt;/td&gt;
&lt;td&gt;green&lt;/td&gt;
&lt;td&gt;an empty list, no error&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Session/presentation/ACSE layers skipped&lt;/td&gt;
&lt;td&gt;green&lt;/td&gt;
&lt;td&gt;no association at all&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The lesson is not “write more tests”. It is that a test written from one implementation’s output cannot find a mistake that implementation makes. The fix was to pin assertions to bytes produced by another implementation.&lt;/p&gt;

&lt;h2&gt;
  
  
  Turning a capture into evidence
&lt;/h2&gt;

&lt;p&gt;Four rules, in order. Skip one and the evidence weakens:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The assertion must fail before the fix. Otherwise you have described the current behaviour, not found a defect.&lt;/li&gt;
&lt;li&gt;The bytes under assertion must come from a different implementation. Your own output is a regression test, not evidence.&lt;/li&gt;
&lt;li&gt;The file is hashed and kept. A result that cannot be re-run against the same bytes is a memory.&lt;/li&gt;
&lt;li&gt;The limits are written down. What the capture does not cover belongs next to what it does.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What this means in practice
&lt;/h2&gt;

&lt;p&gt;For an engineer: when someone hands you a capture, ask for the header before the analysis. For a vendor: if a page claims interoperability, ask which peer, which version, and whether a peer ever accepted your request. The answer is usually shorter than the page.&lt;/p&gt;

&lt;p&gt;In the tool described on this site, the position is deliberate and uncomfortable: a capture of a peer is not proof that our own requests are accepted. That is why the interoperability claim is still open, and why the evidence page says so in plain words.&lt;/p&gt;




&lt;p&gt;A capture is evidence about a moment, not a verdict about a system. The difference is the whole discipline.&lt;/p&gt;

&lt;p&gt;The canonical version, with the Persian translation: &lt;a href="https://rezafarsi.com/en/articles/goose-capture-evidence/" rel="noopener noreferrer"&gt;https://rezafarsi.com/en/articles/goose-capture-evidence/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>testing</category>
      <category>networking</category>
      <category>programming</category>
      <category>architecture</category>
    </item>
  </channel>
</rss>
