メインコンテンツまでスキップ

2. PPP カプセル化

PPP カプセル化は、マルチプロトコルのデータグラムを区別するために使用されます。このカプセル化では、カプセル化の開始と終了を示すフレーミングが必要です。フレーミングを提供する方法は付随する文書で規定されています。

PPP カプセル化の概要を以下に示します。フィールドは左から右へ送信されます。

              +----------+-------------+---------+
| Protocol | Information | Padding |
| 16 bits | * | * |
+----------+-------------+---------+

Protocol フィールド

Protocol フィールドは 2 オクテットであり、その値はパケットの Information フィールドにカプセル化されたデータグラムを識別します。このフィールドは最上位オクテットから順に送信および受信されます。

このフィールドの構造は、アドレス・フィールドに関する ISO 3309 拡張メカニズムと一致しています。すべての Protocol は奇数でなければならず (MUST)、最下位オクテットの最下位ビットは "1" に等しくなければなりません (MUST)。また、すべての Protocol は、最上位オクテットの最下位ビットが "0" に等しくなるように割り当てられなければなりません (MUST)。これらの規則に準拠していないフレームは、認識できない Protocol を持つものとして扱わなければなりません (MUST)。

"0***" から "3***" の範囲の Protocol フィールド値は、特定のパケットのネットワーク層プロトコルを識別し、"8***" から "b***" の範囲の値は、対応するネットワーク制御プロトコル (NCP) に属するパケット (存在する場合) を識別します。

"4***" から "7***" の範囲の Protocol フィールド値は、対応する NCP を持たない、トラフィック量の少ないプロトコルに使用されます。"c***" から "f***" の範囲の Protocol フィールド値は、パケットをリンク層制御プロトコル (LCP など) として識別します。

Protocol フィールドの最新の値は、最新版の "Assigned Numbers" RFC [2] で規定されています。現在の値は次のように割り当てられています。

           Value (in hex)  Protocol Name

0001 Padding Protocol
0003 to 001f reserved (transparency inefficient)
0021 Internet Protocol
0023 OSI Network Layer
0025 Xerox NS IDP
0027 DECnet Phase IV
0029 Appletalk
002b Novell IPX
002d Van Jacobson Compressed TCP/IP
002f Van Jacobson Uncompressed TCP/IP
           0031            Bridging PDU
0033 Stream Protocol (ST-II)
0035 Banyan Vines
0037 unused
0039 AppleTalk EDDP
003b AppleTalk SmartBuffered
003d Multi-Link
005d reserved (compression inefficient)
00cf reserved (PPP NLPID)
00fd 1st choice compression
00ff reserved (compression inefficient)
           0201            802.1d Hello Packets
0203 IBM Source Routing BPDU
0231 Luxcom
0233 Sigma Network Systems
           8021            Internet Protocol Control Protocol
8023 OSI Network Layer Control Protocol
8025 Xerox NS IDP Control Protocol
8027 DECnet Phase IV Control Protocol
8029 Appletalk Control Protocol
802b Novell IPX Control Protocol
802d Reserved
802f Reserved
8031 Bridging NCP
8033 Stream Protocol Control Protocol
8035 Banyan Vines Control Protocol
8037 unused
8039 Reserved
803b Reserved
803d Multi-Link Control Protocol
80fd Compression Control Protocol
80ff Reserved
           c021            Link Control Protocol
c023 Password Authentication Protocol
c025 Link Quality Report
c223 Challenge Handshake Authentication Protocol

新しいプロトコルの開発者は、[email protected] の Internet Assigned Numbers Authority (IANA) から番号を取得しなければなりません (MUST)。

Information フィールド

Information フィールドは 0 個以上のオクテットです。Information フィールドには、Protocol フィールドで指定されたプロトコルのデータグラムが含まれます。

Padding を含む Information フィールドの最大長は Maximum Receive Unit (MRU) と呼ばれ、デフォルトは 1500 オクテットです。ネゴシエーションにより、PPP の実装が同意すれば MRU に他の値を使用できます。

Padding

送信時に、Information フィールドは MRU まで任意の数のオクテットでパディングできます (MAY)。パディング・オクテットと実際の情報を区別するのは各プロトコルの責務です。