跳到主要内容

III. 规范:字节大小与事务类型

1. 网络连接的字节大小​

使用 DTP 的网络连接的标准字节大小为 8 位。不过,DTP 也允许使用应用协议指定的其他字节大小。除非另有说明,本文假定字节为 8 位。

2. 事务​

在 DTP 层,通过连接传输的所有信息都是一系列事务。DTP 定义了界定事务的规则。

2A. 类型​

每个事务的第一个 8 位字节定义事务类型,如下所示。(注意,这些编码分配与 TELNET 协议中的分配不冲突。)事务类型以其分配的十六进制码来称呼。(事务类型将在 2B 节中详细讨论。)

   Code                    Transaction Type
Hex Octal

B0 260 Indefinite bit stream -- data.
B1 261 Transparent (DLE) block--data.
B2 262 Descriptor and counts--data.
B3 263 Modes available (handshake).
B4 264 Information Separators.
B5 265 Error codes.
B6 266 Abort.
B7 267 No operation (NoOp).
B8 270 Indefinite bit stream--control.
B9 271 Transparent (DLE) block--control.
BA 272 Descriptor and counts--control.
BB 273
through through Unassigned but reserved for DTP.
BF 277