跳到主要内容

8.3 连接请求(CR)

8.3 连接请求(CR)​

8.3.1 结构​

1     2         3        4     5    6     7     8     p   p+1
LI CR CDT 00000000 00000000 SOURCE- class VARIABLE USER DATA
REFERENCE options PART

8.3.2 LI​

见第 8.2.1 节

8.3.3 固定部分(八位组 2 至 7)​

CR:       Connection Request Code:      1110

CDT: Initial Credit Allocation (set to 0000 in
Classes 0 and 1 when specified as preferred class).

SOURCE REFERENCE: Reference selected by the transport
entity initiating the CR TPDU to
identify the requested TC.

CLASSES: Bits 8-5 octer 7 defines the preferred Transport
Protocol class to be operated over the requested
TC. This field may take on one of the following
values.

0000 Class 0
0001 Class 1
0010 Class 2
0011 Class 3
0100 Class 4

CR 在固定部分中包含上述第一选择的类别。如有需要,第二及后续选择列在可变部分中。

八位组 7 的第 4-1 位保留用于所请求传输连接上要使用的选项。

第 4-1 位的用法如下:

BIT            OPTION

4 0 always

3 0 always

2 =0 use of normal formats
=1 use of extended formats

1 =0 use of explicit flow control
in Class 2

=1 no use of explicit flow
control in Class 2

注:

  1. 同时请求“使用加速数据传送”(附加选项参数)和“2 类中不使用显式流量控制”(第 1 位 = 1)是无效的。

  2. 在 0 类中,第 4 至第 1 位始终为零,没有任何含义。

8.3.4 可变部分(八位组 8 至 p)​

可变部分中允许使用以下参数:

  • 传输服务访问点标识符(TSAP-ID)

    参数代码 11000001 用于主叫 TSAP 的标识符。

    11000010 用于被叫 TSAP 的标识符。

如果请求中给出了 TSAP-ID,则它可以在确认中返回。

  • TPDU 大小

该参数定义在所请求的传输连接上使用的、所提议的最大 TPDU 大小(以八位组为单位,包括头部)。该参数的编码为:

参数代码 11000000

参数值字段

00001101  8192 octets (not allowed in Class 0 of 1)

00001100 4096 octets (not allowed in Class 0 of 1)

00001011 2048 octets

00001010 1024 octets

00001001 512 octets

00001000 256 octets

00000111 128 octets

Default value is 00000111 (128 octets)

版本号(0 类中不使用)

Parameter code 11000100

Parameter value field 00000001

Default value 00000001

Default value 00000001 (not used in Class 0)
  • 安全参数(0 类中不使用)

    该参数由用户定义。

    参数代码 11000101

    参数值和长度字段由用户定义

  • 校验和(0 至 3 类中不使用)

    见第 8.2.3.1 节

    在请求 4 类的 CR TPDU 中,即使通过校验和选择参数请求不使用校验和功能,该参数也必须始终存在。

  • 附加选项选择(0 类中不使用)

该参数定义是否使用附加选项的选择。

参数代码 11000110

参数长度:1

参数值字段:

仅与某一类别相关的选项所对应的位,在其他类别中没有意义,可以取任意值。

BITS                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= Checksums are to be used in Class 4
1= Checksums are not to be used in Class 4

1 1= Use of transport expedited data transfer
service
0= No use of transport expedited data transfer
service

Default falue is 00000001
  • 备选协议类别(0 类中不使用)

    Parameter code 11000111

    Parameter length n

参数值编码为一个由单个八位组构成的序列。每个八位组的编码方式与八位组 7 相同,但第 4-1 位置为零(即不允许备选的选项选择)。

  • 确认时间

该参数向远端传输实体传达最大确认时间 AL。它只是一个指示,不经过协商(见第 7.4.5.3 节)。

Parameter Code 10000101

Parameter Value field: n a binary number (2 octets)

n 为最大确认时间,以毫秒表示。

  • 吞吐量

    Parameter code:    10001001

    Length : 12

    1st 3 octets : Targer 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

    Values are expressed in octets per second.
  • 残余错误率

    Parameter code:     10000110

    Length : 3

    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
  • 优先级

    Parameter code:     10000111

    Length : 2

    Value : Integer
  • 传输延迟

    Parameter code:     10001000

    Length : 8

    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

    Values are expressed in milliseconds.

8.3.5 用户数据(八位组 p+1 至末尾)​

0 类中不允许有用户数据,其他类别中可选。在允许的情况下,其长度不得超过 32 个八位组。