Skip to content

数据包图 (v<MERMAID_RELEASE_VERSION>+)

¥Packet Diagram (v<MERMAID_RELEASE_VERSION>+)

介绍

¥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 network engineers, educators, and students who require a clear and concise way to represent the structure of network packets.

语法

¥Syntax

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

示例

¥Examples

语法细节

¥Details of Syntax

  • 范围:标题后面的每一行代表数据包中的不同字段。范围(例如 0-15)指示数据包中的位位置。

    ¥Ranges: Each line after the title represents a different field in the packet. The range (e.g., 0-15) indicates the bit positions in the packet.

  • 字段说明:该字段所代表内容的简短描述,用引号引起来。

    ¥Field Description: A brief description of what the field represents, enclosed in quotes.

配置

¥Configuration

详情请参阅 configuration 指南。

¥Please refer to the configuration guide for details.