0

I'm looking for a graph description language to document binary streams like network packets or binary file formats (described in code, then output as a graph). Something in the same idea that DOT/Graphviz.

Here is an example of the expected result, taken from Wikipedia to describe a network packet. I'm almost sure I saw such a tool on the internet in the past year, but I cannot find it again. From what I remember the result was quite beautiful, even better than the following example.

A graph describing a network packet

Thanks for your suggestions.

4
  • Perhaps you were thinking of this? Commented Oct 21, 2022 at 20:28
  • @andrewJames Tanks for the suggestion, but it's not exactly what I'm thinking about. What I have in mind really renders as boxes, like bordered tables. Commented Oct 21, 2022 at 21:11
  • Maybe pikchr (pikchr.org/home/doc/trunk/homepage.md). Text-based, lower-level than Graphviz, but very scriptable Commented Oct 21, 2022 at 21:47
  • @sroush Thanks for the suggestion! I didn't know this tool, it looks quite complete. I will check if it can draw this kind of graphs. Commented Oct 21, 2022 at 22:04

1 Answer 1

0

I had the same issue (remembered that I've seen such a things a while ago but couldn't remember where) and after a lot of digging I finally found Kroki which is an unified API for various textual diagram definition languages.

I think the one I remembered was packetdiag but the results of bytefield-svg are even prettier.

I continued digging and found the IETF author resources for digrams which pointed me to the protocol tool available via in kramdown-rfc.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.