13.3 连接请求(CR)TPDU
13.3 连接请求(CR)TPDU
CR TPDU 的长度不得超过 128 个八位组。
13.3.1 结构
CR TPDU 的结构应如下:
1 2 3 4 5 6 7 8 p p+1...end
+--+------+---------+---------+---+---+------+-------+---------+
|LI|CR CDT| DST - REF |SRC-REF|CLASS |VARIAB.|USER |
| |1110 |0000 0000|0000 0000| | |OPTION|PART |DATA |
+--+------+---------+---------+---+---+------+-------+---------+
13.3.2 LI
见 13.2.1
13.3.3 固定部分(八位组 2 至 7)
该部分的结构应包含:
- a) CR :连接请求码:1110。八位组 2 的第 8-5 位;
- b) CDT :初始信用分配(当 0 类和 1 类被指定为首选类别时置为 0000)。八位组 2 的第 4-1 位;
- c) DST-REF :置为零;
- d) SRC-REF :发起 CR TPDU 的传输实体选定的、用于标识所请求传输连接的引用;
- e) CLASS 和 OPTION:八位组 7 的第 8-5 位定义在所请求的传输连接上运行的首选传输协议类别。该字段应取下列值之一:
0000 Class 0
0001 Class 1
0010 Class 2
0011 Class 3
0100 Class 4
CR TPDU 在固定部分中包含类别的第一选择。如有需要,第二及以后的选择列于可变部分。
八位组 7 的第 4-1 位定义所请求的传输连接上将使用的选项,如下:
+-----|-----------------------------------------------+
| BIT | OPTION |
|-----|-----------------------------------------------|
| 4 | 0 always |
| | |
| 3 | 0 always |
| | |
| 2 | =0 use of normal formats in all classes |
| | =1 use of extended formats in Classes 2,3,4 |
| | |
| 1 | =0 use of explicit flow control in Class 2 |
| | =1 no use of explicit flow control in |
| | Class 2 |
+-----------------------------------------------------+
注
-
连接建立过程(见 6.5)不允许同一个 CR TPDU 既请求使用传输加速数据传送服务(附加选项参数),又请求 2 类中不使用显式流量控制(第 1 位 = 1)。
-
在 0 类中,第 4 至 1 位始终为零,没有意义。
13.3.4 可变部分(八位组 8 至 p)
可变部分中允许出现下列参数:
- a) 传输服务访问点标识符(TSAP-ID)
Parameter code: 1100 0001 for the identifier of the
Calling TSAP.
1100 0010 for the identifier of the
Called TSAP
Parameter length: not defined in this standard
Parameter value: identifier of the calling or called
TSAP respectively.
如果请求中给出了 TSAP-ID,则可以在确认中返回它。
- b) TPDU 大小
该参数定义在所请求的传输连接上使用的提议最大 TPDU 大小(以八位组计,含头部)。该参数的编码为:
Parameter code: 1100 0000
Parameter Length: 1 octet
Parameter value:
0000 1101 8192 octets (not allowed in Class 0)
0000 1100 4096 octets (not allowed in Class 0)
0000 1011 2048 octets
0000 1010 1024 octets
0000 1001 512 octets
0000 1000 256 octets
0000 0111 128 octets
Default value is 0000 0111 (128 octets)
- c) 版本号(首选类别为 0 类时不使用)
Parameter code: 1100 0100
Parameter length: 1 octet
Parameter value field: 0000 0001
Default value is 0000 0001 (not used in Class 0)
- d) 安全参数(首选类别为 0 类时不使用)
This parameter is user defined.
Parameter code: 1100 0101
Parameter length: user defined
Parameter value: user defined
- e) 校验和(仅在首选类别为 4 类时使用)(见 13.2.3.1)
在请求 4 类的 CR TPDU 中,该参数应始终存在,即使使用校验和选择参数请求不使用校验和设施。
- f) 附加选项选择(首选类别为 0 类时不使用)
该参数定义是否使用附加选项的选择。
Parameter code: 1100 0110
Parameter length: 1
Parameter value:
+------------------------------------------------------+
|BIT| OPTION |
|---|--------------------------------------------------|
| 4 | 1= Use of network expedited in Class 1 |
| | 0= Non use of network expedited in Class 1 |
| | |
| 3 | 1= Use of receipt confirmation in Class 1 |
| | 0= Use of explicit AK variant in Class 1 |
| | |
| 2 | 0= 16-bit checksum defined in 6.17 is to be used|
| | in Class 4 |
| | 1= 16-bit checksum defined in 6.17 is not to be |
| | used on Class 4 |
| | |
| 1 | 1= Use of transport expedited data transfer |
| | service |
| | 0= No use of transport expedited data transfer |
| | service |
+------------------------------------------------------+
Default value is 000 0001
如果未提议某个类别,则与该类别特有选项相关的位没有意义,可取任意值。
- g) 备选协议类别(首选类别为 0 类时不使用)
Parameter code: 1100 0111
Parameter length: n
参数值编码为一系列单个八位组。每个八位组的编码与八位组 7 相同,但第 4-1 位置为零(即不允许备选的选项选择)。
- h) 确认时间(仅在首选类别为 4 类时使用)
该参数向远端传输实体传达最大确认时间 AL。它仅作为指示,不需协商(见 12.2.1.1.3)
Parameter code: 1000 0101
Parameter length: 2
Parameter value: n, a binary number where n is the
maximum acknowledge time, expressed
in milliseconds.
- j) 吞吐量(首选类别为 0 类时不使用)
Parameter code: 1000 1001
Parameter length: 12 or 24
Parameter value:
1st 12 Octets: maximum throughput, as follows:
1st 3 octets: Target value, calling-called user
direction
2nd 3 octets: Min. acceptable, calling-called user
direction
3rd 3 octets: Target value, called-calling user
direction
4th 3 octets: Min. acceptable, called-calling user
direction
2nd 12 octets (optional): average throughput, as follows:
5th 3 octets: Target value, calling-called user
direction
6th 3 octets: Min. acceptable, calling-called user
direction
7th 3 octets: Target value, called-calling user
direction
8th 3 octets: Min. acceptable, called-calling user
direction
省略平均吞吐量时,视为其值与最大吞吐量相同。
值以每秒八位组数表示。
- k) 残留错误率(首选类别为 0 类时不使用)
Parameter code: 1000 1001
Parameter length: 12
1st 3 octets: Target value, calling-called user
direction
2nd 3 octets: Min. acceptable, calling-called user
direction
3rd 3 octets: Target value, called-calling user
direction
4th 3 octets: Min. acceptable, called-calling user
direction
- l) 残留错误率(首选类别为 0 类时不使用)
Parameter code: 1000 0110
Parameter length: 3
Parameter value:
1st octet: Target value, power of 10
2nd octet: Min. acceptable, power of 10
3rd octet: TSDU size of interest, expressed as a
power of 2
- m) 优先级(首选类别为 0 类时不使用)
Parameter code: 1000 0111
Parameter length: 2
Parameter value: Integer (0 is the highest priority)
- n) 传送延迟(首选类别为 0 类时不使用)
Parameter code: 1000 1000
Parameter length: 8
Parameter value:
1st 2 octets: Target value, calling-called user
direction
2nd 2 octets: Max. acceptable, calling-called user
direction
3rd 2 octets: Target value, called-calling user
direction
4th 2 octets: Max. acceptable, called-calling user
direction
值以毫秒表示,并以 128 个八位组的 TSDU 大小为基础。
- p) 指派时间(首选类别为 0 类、2 类或 4 类时不使用)
该参数传达在遵循故障后重新分配过程(见 6.12)时所使用的尝试重新分配时间(TTR)。
Parameter code: 1000 1011
Parameter length: 2
Parameter value: n, a binary number where n is the TTR
value expressed in seconds.
13.3.5 用户数据(八位组 p+1 至末尾)
0 类中不允许有用户数据,其他类别中用户数据是可选的。在允许的情况下,用户数据不得超过 32 个八位组。