跳到主要内容

10. IANA Considerations (IANA 考虑事项)

本章定义了 L2TP 协议需要 IANA(Internet Assigned Numbers Authority,互联网号码分配机构)分配和管理的各种参数。

10.1 AVP Attributes (AVP 属性)

IANA 负责维护 L2TP AVP 属性类型注册表。AVP 属性类型是一个 16 位字段。

注册要求 (Registration Requirements):

  • 值范围 0-1023: 由 IETF 共识分配(需要发布 RFC)。
  • 值范围 1024-65535: 采用"先到先得"(First Come First Served)策略分配。

已分配的标准 AVP 属性类型 (Assigned Standard AVP Attribute Types):

属性类型AVP 名称引用
0Message TypeRFC 2661 Section 4.4.1
1Result CodeRFC 2661 Section 4.4.2
2Protocol VersionRFC 2661 Section 4.4.3
3Framing CapabilitiesRFC 2661 Section 4.4.3
4Bearer CapabilitiesRFC 2661 Section 4.4.3
5Tie BreakerRFC 2661 Section 4.4.3
6Firmware RevisionRFC 2661 Section 4.4.3
7Host NameRFC 2661 Section 4.4.3
8Vendor NameRFC 2661 Section 4.4.3
9Assigned Tunnel IDRFC 2661 Section 4.4.3
10Receive Window SizeRFC 2661 Section 4.4.3
11ChallengeRFC 2661 Section 4.4.3
12Q.931 Cause CodeRFC 2661 Section 4.4.4
13Challenge ResponseRFC 2661 Section 4.4.3
14Assigned Session IDRFC 2661 Section 4.4.4
15Call Serial NumberRFC 2661 Section 4.4.4
16Minimum BPSRFC 2661 Section 4.4.4
17Maximum BPSRFC 2661 Section 4.4.4
18Bearer TypeRFC 2661 Section 4.4.4
19Framing TypeRFC 2661 Section 4.4.4
20Packet Processing DelayRFC 2661 Section 4.4.6
21Called NumberRFC 2661 Section 4.4.4
22Calling NumberRFC 2661 Section 4.4.4
23Sub-AddressRFC 2661 Section 4.4.4
24(Tx) Connect SpeedRFC 2661 Section 4.4.4
25Physical Channel IDRFC 2661 Section 4.4.4
26Initial Received LCP CONFREQRFC 2661 Section 4.4.5
27Last Sent LCP CONFREQRFC 2661 Section 4.4.5
28Last Received LCP CONFREQRFC 2661 Section 4.4.5
29Proxy Authen TypeRFC 2661 Section 4.4.5
30Proxy Authen NameRFC 2661 Section 4.4.5
31Proxy Authen ChallengeRFC 2661 Section 4.4.5
32Proxy Authen IDRFC 2661 Section 4.4.5
33Proxy Authen ResponseRFC 2661 Section 4.4.5
34Call ErrorsRFC 2661 Section 4.4.6
35ACCMRFC 2661 Section 4.4.6
36Random VectorRFC 2661 Section 4.3
37Private Group IDRFC 2661 Section 4.4.4
38(Rx) Connect SpeedRFC 2661 Section 4.4.4
39Sequencing RequiredRFC 2661 Section 4.4.4

Vendor-Specific AVPs:

供应商特定的 AVP 使用 Vendor ID 字段(基于 SMI 网络管理私有企业代码)来区分不同供应商的扩展。

10.2 Message Type AVP Values (消息类型 AVP 值)

消息类型 AVP(属性类型 0)的值用于标识 L2TP 控制消息的类型。

已分配的消息类型值 (Assigned Message Type Values):

消息类型缩写引用
0(Reserved)
1Start-Control-Connection-RequestSCCRQRFC 2661 Section 6.1
2Start-Control-Connection-ReplySCCRPRFC 2661 Section 6.2
3Start-Control-Connection-ConnectedSCCCNRFC 2661 Section 6.3
4Stop-Control-Connection-NotificationStopCCNRFC 2661 Section 6.4
5(Reserved)
6HelloHELLORFC 2661 Section 6.5
7Outgoing-Call-RequestOCRQRFC 2661 Section 6.9
8Outgoing-Call-ReplyOCRPRFC 2661 Section 6.10
9Outgoing-Call-ConnectedOCCNRFC 2661 Section 6.11
10Incoming-Call-RequestICRQRFC 2661 Section 6.6
11Incoming-Call-ReplyICRPRFC 2661 Section 6.7
12Incoming-Call-ConnectedICCNRFC 2661 Section 6.8
13(Reserved)
14Call-Disconnect-NotifyCDNRFC 2661 Section 6.12
15WAN-Error-NotifyWENRFC 2661 Section 6.13
16Set-Link-InfoSLIRFC 2661 Section 6.14

注册策略 (Registration Policy):

新的消息类型值的分配需要发布 IETF 标准轨道 RFC 或经过 IESG 批准的信息性 RFC。

10.3 Result Code AVP Values (结果代码 AVP 值)

Result Code AVP(属性类型 1)用于指示控制连接或会话终止的原因。

10.3.1 Result Code Field Values (结果代码字段值)

通用结果代码 (General Result Codes):

含义适用范围
0Reserved
1General request to clear control connectionStopCCN
2General errorStopCCN, CDN
3Control channel already existsStopCCN
4Requester is not authorizedStopCCN
5Protocol version not supportedStopCCN
6Requester is being shut downStopCCN
7Finite State Machine errorStopCCN

呼叫断开结果代码 (Call Disconnect Result Codes):

含义适用范围
1Lost carrierCDN
2General errorCDN
3Administrative reasonCDN
4Temporary lack of appropriate facilitiesCDN
5Permanent lack of appropriate facilitiesCDN
6Invalid destinationCDN
7No carrier detectedCDN
8Busy signalCDN
9No dial toneCDN
10Timeout waiting for carrierCDN
11No framing detectedCDN

10.3.2 Error Code Field Values (错误代码字段值)

错误代码字段提供了关于错误的额外细节信息。

错误消息
0No general error
1No control connection exists yet for this pair
2Length is wrong
3One of the field values was out of range
4Insufficient resources to handle this operation now
5Invalid Session ID
6A generic vendor-specific error occurred
7Try another (LNS/LAC)
8Session or tunnel was shutdown due to receipt of an unknown AVP with M-bit set

注册策略:

新的结果代码值和错误代码值需要通过 IETF 共识(需要发布 RFC)进行分配。

10.4 Framing Capabilities & Bearer Capabilities (帧能力和承载能力)

Framing Capabilities AVP(属性类型 3)和 Bearer Capabilities AVP(属性类型 4)使用位掩码来指示支持的能力。

Framing Capabilities 位定义 (Framing Capabilities Bit Definitions):

含义
0Asynchronous Framing supported
1Synchronous Framing supported
2-31Reserved

Bearer Capabilities 位定义 (Bearer Capabilities Bit Definitions):

含义
0Analog access supported
1Digital access supported
2-31Reserved

注册策略:

新的能力位的分配需要通过 IETF 共识(需要发布 RFC)进行分配。

10.5 Proxy Authen Type AVP Values (代理认证类型 AVP 值)

Proxy Authen Type AVP(属性类型 29)用于指示 LAC 使用的认证类型。

已分配的认证类型值 (Assigned Authen Type Values):

认证类型引用
0Reserved
1Textual username/password exchangeRFC 1334 (PAP)
2PPP CHAPRFC 1994
3PPP PAPRFC 1334
4No Authentication
5Microsoft CHAP Version 1RFC 2433
6Reserved
7Microsoft CHAP Version 2RFC 2759

注册策略:

新的认证类型值的分配采用"先到先得"(First Come First Served)策略。

10.6 AVP Header Bits (AVP 头部位)

AVP 头部的前 6 位用作位掩码来控制 AVP 的行为。

已定义的 AVP 头部位 (Defined AVP Header Bits):

名称含义引用
0M (Mandatory)必须理解此 AVPRFC 2661 Section 4.1
1H (Hidden)AVP 值被隐藏RFC 2661 Section 4.3
2-5Reserved保留,必须设置为 0RFC 2661 Section 4.1

注册策略:

保留位的分配需要通过标准行动(Standards Action)- 即发布 IETF 标准轨道 RFC。

10.7 L2TP UDP Port (L2TP UDP 端口)

已分配端口 (Assigned Port):

  • 端口号: 1701
  • 协议: UDP
  • 用途: L2TP
  • 引用: RFC 2661

IANA 已经为 L2TP 分配了 UDP 端口 1701 用于控制连接和数据会话。

10.8 L2TP Protocol Number (L2TP 协议号)

虽然当前规范定义 L2TP 在 UDP 上运行,但 L2TP 也可以直接在其他数据包传输协议上运行。

IP 协议号:

  • L2TP 协议号: 115
  • 名称: L2TP
  • 引用: RFC 3931(L2TPv3,直接在 IP 上)

IANA 注册表维护 (IANA Registry Maintenance):

IANA 维护以下 L2TP 相关的注册表:

  1. L2TP AVP Attributes Registry

  2. L2TP Message Types Registry

    • 包含所有控制消息类型
  3. L2TP Result Codes Registry

    • 包含结果代码和错误代码
  4. L2TP Proxy Authen Types Registry

    • 包含认证类型值
  5. L2TP Ports and Protocol Numbers

    • UDP 端口和 IP 协议号分配

更新和扩展 (Updates and Extensions):

后续的 RFC 可能会定义新的 AVP、消息类型或其他参数。所有新的分配必须遵循本节定义的注册策略。

重要的扩展包括:

  • RFC 3931: Layer Two Tunneling Protocol - Version 3 (L2TPv3)
  • RFC 4591: Frame Relay over L2TP
  • RFC 5515: Layer Two Tunneling Protocol (L2TP) Access Concentrator Configuration