Skip to content

数据包图 (v11.0.0+)

🌐 Packet Diagram (v11.0.0+)

介绍

🌐 Introduction

分组图是一种用于展示网络分组结构和内容的可视化表示方式。网络分组是通过网络传输的基本数据单元。

🌐 A packet diagram is a visual representation used to illustrate the structure and contents of a network packet. Network packets are the fundamental units of data transferred over a network.

使用方法

🌐 Usage

这种图表类型对于需要以清晰简明的方式表示网络数据包结构的开发者、网络工程师、教育工作者和学生特别有用。

🌐 This diagram type is particularly useful for developers, network engineers, educators, and students who require a clear and concise way to represent the structure of network packets.

语法

🌐 Syntax

packet
start: "Block name" %% Single-bit block
start-end: "Block name" %% Multi-bit blocks
... More Fields ...

Bits 语法 (v11.7.0+)

🌐 Bits Syntax (v11.7.0+)

使用起始和结束位数可能很困难,特别是在修改设计时。为此,我们添加了一个位数字段,它会自动从前一个字段的末尾开始使用。使用 +<count> 来设置位数,如下所示:

🌐 Using start and end bit counts can be difficult, especially when modifying a design. For this we add a bit count field, which starts from the end of the previous field automagically. Use +<count> to set the number of bits, thus:

packet
+1: "Block name" %% Single-bit block
+8: "Block name" %% 8-bit block
9-15: "Manually set start and end, it's fine to mix and match"
... More Fields ...

示例

🌐 Examples

语法细节

🌐 Details of Syntax

  • 范围:标题后的每一行表示数据包中的不同字段。范围(例如 0-15)表示数据包中的位位置。
  • 字段描述:用引号括起来的字段含义简要说明。

配置

🌐 Configuration

详情请参阅配置指南。

🌐 Please refer to the configuration guide for details.

Opens in mermaid.ai