Ipv6-headers

提供:Dev Guides
移動先:案内検索

IPv6-ヘッダー

IPv6の驚異は、ヘッダーにあります。 IPv6アドレスはIPv4の4倍ですが、驚くべきことに、IPv6アドレスのヘッダーはIPv4の2倍しかありません。 IPv6ヘッダーには、1つの固定ヘッダーと0個以上のオプション(拡張)ヘッダーがあります。 ルーターに不可欠なすべての必要な情報は、固定ヘッダーに保持されます。 拡張ヘッダーには、ルーターがパケット/フローの処理方法を理解するのに役立つオプションの情報が含まれています。

固定ヘッダー

image

{空} [画像:IPv6固定ヘッダー]

IPv6固定ヘッダーの長さは40バイトで、次の情報が含まれています。

S.N. Field & Description
1 Version (4-bits): It represents the version of Internet Protocol, i.e. 0110.
2 Traffic Class (8-bits): These 8 bits are divided into two parts. The most significant 6 bits are used for Type of Service to let the Router Known what services should be provided to this packet. The least significant 2 bits are used for Explicit Congestion Notification (ECN).
3 Flow Label (20-bits): This label is used to maintain the sequential flow of the packets belonging to a communication. The source labels the sequence to help the router identify that a particular packet belongs to a specific flow of information. This field helps avoid re-ordering of data packets. It is designed for streaming/real-time media.
4 Payload Length (16-bits): This field is used to tell the routers how much information a particular packet contains in its payload. Payload is composed of Extension Headers and Upper Layer data. With 16 bits, up to 65535 bytes can be indicated; but if the Extension Headers contain Hop-by-Hop Extension Header, then the payload may exceed 65535 bytes and this field is set to 0.
5 Next Header (8-bits): This field is used to indicate either the type of Extension Header, or if the Extension Header is not present then it indicates the Upper Layer PDU. The values for the type of Upper Layer PDU are same as IPv4’s.
6 Hop Limit (8-bits): This field is used to stop packet to loop in the network infinitely. This is same as TTL in IPv4. The value of Hop Limit field is decremented by 1 as it passes a link (router/hop). When the field reaches 0 the packet is discarded.
7 Source Address (128-bits): This field indicates the address of originator of the packet.
8 Destination Address (128-bits): This field provides the address of intended recipient of the packet.

拡張ヘッダー

IPv6では、固定ヘッダーには必要な情報だけが含まれており、不要な情報やほとんど使用されない情報は回避されます。 そのような情報はすべて、拡張ヘッダーの形式で固定ヘッダーと上位レイヤーヘッダーの間に配置されます。 各拡張ヘッダーは、個別の値で識別されます。

拡張ヘッダーを使用する場合、IPv6固定ヘッダーの次ヘッダーフィールドは最初の拡張ヘッダーを指します。 拡張ヘッダーがもう1つある場合、最初の拡張ヘッダーの「Next-Header」フィールドは2番目のものを指し、以下同様に続きます。 最後の拡張ヘッダーの「Next-Header」フィールドは、上位レイヤーヘッダーを指します。 したがって、すべてのヘッダーは、リンクリスト方式で次のヘッダーを指します。

[次のヘッダー]フィールドに値59が含まれている場合、このヘッダーの後にヘッダーがなく、上位レイヤーヘッダーもないことを示します。

RFC 2460に従って、次の拡張ヘッダーをサポートする必要があります。

image

拡張ヘッダーのシーケンスは次のとおりです。

image

これらのヘッダー:

  • {空} 1 最初と後続の宛先によって処理される必要があります。
  • {空} 2。 最終目的地で処理する必要があります。

拡張ヘッダーは、次の図に示すように、リンクリスト方式で次々に配置されます。

image

[_ Image:Extension Headers Connected Format_]