5. エラー報告と制御メッセージの取り扱い
CLNP と IP では、エラーをホストに報告する方法が異なる。IP 環境では、インターネット制御メッセージプロトコル (ICMP、[7]) を用いて、処理できないパケットを生成したホストに (エラー) メッセージを返す。ICMP メッセージは IP データグラムのユーザーデータとして送信される。到達不能な宛先、不適切に構成された IP データグラムヘッダー、輻輳による IP データグラムの破棄、および存続時間/再組み立て時間の超過が報告され、エラーの原因となった完全なインターネットヘッダーと、その IP データグラムに含まれていたセグメントの (少なくとも) 8 オクテットが、ICMP エラーメッセージの一部として送信者に返される。特定のエラー、例えば不適切に構成された IP データグラムヘッダーの場合は、問題の原因となった特定のオクテットが識別される。
CLNP 環境では、ネットワーク層プロトコルヘッダー内でエラーレポートを CLNP データグラムと区別するために、エラーレポート型という固有のメッセージ種別が用いられる。CLNP エラーレポートは、ICMP の場合と同じ種別のエラーが検出されたときに生成される。ICMP エラーメッセージと同様に、エラーの原因となった完全な CLNP ヘッダーが、エラーレポートのデータ部分に含まれて送信者に返される。実装は、元の CLNP データグラムの送信者に対して、その CLNP データグラム内に含まれていたデータグラムの少なくとも 8 オクテットを返すべきである (SHOULD)。ここでも、特定のエラーについては、問題の原因となった特定のオクテットが識別される。
TUBA 環境での使用を提案する CLNP エラーレポートの内容の概要を、図 5-1 に示す。
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| ........Data Link Header........ | NLP ID |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|Header Length | Version | Lifetime (TTL)| 000 | Type=ER |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| TOTAL Length of Error Report | Checksum |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Dest Addr Len | Destination Address... |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| ... Destination Address... |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| ... Destination Address... |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| ... Destination Address... |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| ... Destination Address... |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| PROTO field | Src Addr Len | Source Address... |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| ... Source Address... |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| ... Source Address... |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| ... Source Address... |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| ... Source Address... |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| ... Source Address | Reason for Discard (type/len) |
| | 1100 0001 | 0000 0010 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Reason for Discard | Options... |
| code | pointer | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Options |
: :
| |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Data |
: :
| |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Note that each tick mark represents one bit position.
Figure 5-1. Error Report Format
5.1. エラーレポートの処理規則
エラーレポートの処理規則の概要を以下に示す。
* An Error Report is not generated to report a problem
encountered while processing an Error Report.
* Error Reports MAY NOT be fragmented (hence, the
fragmentation part is absent).
* The Reason for Discard Code field is populated with one of
the values from Table 5-1.
* The Pointer field is populated with number of the first
octet of the field that caused the Error Report to be
generated. If it is not possible to identify the offending
octet, this field MUST be zeroed.
* If the Priority or Type of Service option is present in the
errored datagram, the Error Report MUST specify the same
option, using the value specified in the original datagram.
* If the Security option is present in the errored datagram,
the Error Report MUST specify the same option, using the
value specified in the original datagram; if the Security
option is not supported by the intermediate system, no Error
Report is to be generated (i.e., "silently discard" the
received datagram).
* If the Complete Source Route option is specified in the
errored datagram, the Error Report MUST compose a reverse of
that route, and return the datagram along the same path.
5.2. ICMP と CLNP のエラーメッセージの比較
表 5-1 に、ICMP メッセージの種別とコード、および CLNP エラー種別コード (値は 10 進数) の大まかな比較を示す。
CLNP Error Type Codes | ICMP Message (Type, Code)
----------------------------------|------------------------------------
Reason not specified (0) | Parameter Problem (12, 0)
Protocol Procedure Error (1) | Parameter Problem (12, 0)
Incorrect Checksum (2) | Parameter Problem (12, 0)
PDU Discarded--Congestion (3) | Source Quench (4, 0)
Header Syntax Error (4) | Parameter problem (12, 0)
Need to Fragment could not (5) | Frag needed, DF set (3, 4)
Incomplete PDU received (6) | Parameter Problem (12, 0)
Duplicate Option (7) | Parameter Problem (12, 0)
Destination Unreachable (128) | Dest Unreachable,Net unknown (3, 0)
Destination Unknown (129) | Dest Unreachable,host unknown(3, 1)
Source Routing Error (144) | Source Route failed (3, 5)
Source Route Syntax Error (145) | Source Route failed (3, 5)
Unknown Address in Src Route(146) | Source Route failed (3, 5)
Path not acceptable (147) | Source Route failed (3, 5)
Lifetime expired (160) | TTL exceeded (11, 0)
Reassembly Lifetime Expired (161) | Reassembly time exceeded (11, 1)
Unsupported Option (176) | Parameter Problem (12, 0)
Unsupported Protocol Version(177) | Parameter problem (12, 0)
Unsupported Security Option (178) | Parameter problem (12, 0)
Unsupported Src Rte Option (179) | Parameter problem (12, 0)
Unsupported Rcrd Rte (180) | Parameter problem (12, 0)
Reassembly interference (192) | Reassembly time exceeded (11, 1)
Table 5-1. Comparison of CLNP Error Reports to ICMP Error Messages
Note 1: The current accepted practice for IP is that source quench
should not be used; if it is used, implementations MUST
not return a source quench packet for every relevant packet.
TUBA/CLNP implementations are encouraged to adhere to these
guidelines.
Note 2: There are no corresponding CLNP Error Report Codes for the
following ICMP error message types:
- Protocol Unreachable (3, 2)
- Port Unreachable (3, 3)
[Note: Additional error code points available in the ER type
code block can be used to identify these message types.]