IPアドレス

IPアドレス (インターネット)

[1] IP アドレス (address) は、IP において通信の当事者を識別する番地 (アドレス) です。

[2] アドレスの体系は IP の版により異なります。現在利用されているものとしては

... の2種類があります。

仕様書

名称

[15] IPアドレスのことを俗に IP と言うこともあります。

分類

文脈

[11] 次の場面では、 IPv4アドレスはそのまま表記し、 IPv6アドレスは [...] で括ります。

[12] 次の場面では、 IPv4アドレスはそのまま表記し、 IPv6アドレスは [IPv6:...] で括ります。

[13] 次の場面では、IPv4アドレスIPv6アドレスもそのまま表記します。

[16] 次のものは、バイト表現を使います。

[17] バイト表現は、 IPv4アドレスなら4バイト、IPv6アドレスなら16バイトで、 ネットワークバイト順でそのままアドレスを表現したものです。

FQDN との関係

[4] IAB は、人間が編集する設定ファイルなどの非揮発性ストレージ上の情報においては、 IPアドレスよりも FQDN を使うことを強く推奨 (strongly recommend) しています。

iPAddress (PKI)

[10] BR に従う CA が発行する証明書SAN iPAddress 欄での予約IPアドレスの使用は2016年10月1日までに全廃することになっています >>8

演算

[21] IPアドレスIPアドレスが等しいか否かの等価性の決定はいろいろなところで必要とされます。 IPアドレスのテキスト表現はいろいろなものがありますから、 バイナリー表現か正規化されたテキスト表現を求めた上で、 それがバイト列または文字列として等しいか否かにより判断することになります。 IPv4アドレスIPv6アドレスのどちらにもこれがいえます。 IPv4アドレスIPv6アドレス比較は、必ずとなります。

[22] IPアドレスがあるIPアドレスの範囲に含まれるか否かの決定が必要になることがよくあります。 IPアドレスの範囲は、 CIDR 記法かサブネットマスク (どちらも記述能力は同じ) と、その複数個の組合せによって表されます。 範囲も IPv4アドレスの範囲とIPv6アドレスの範囲があり得ますが、 IPv4アドレスの範囲に含まれ得るのはIPv4アドレスのみで、 IPv6アドレスの範囲に含まれ得るのはIPv6アドレスのみです。

メモ

[3] IPアドレスは、俗に略して「IP」と呼ばれることがあります。

[5] RFC 2459 - Internet X.509 Public Key Infrastructure Certificate and CRL Profile ( 版) http://tools.ietf.org/html/rfc2459#section-4.2.1.7

When the subjectAltName extension contains a iPAddress, the address MUST be stored in the octet string in "network byte order," as specified in RFC 791 [RFC 791]. The least significant bit (LSB) of each octet is the LSB of the corresponding byte in the network address. For IP Version 4, as specified in RFC 791, the octet string MUST contain exactly four octets. For IP Version 6, as specified in RFC 1883, the octet string MUST contain exactly sixteen octets [RFC 1883].

[6] RFC 5280 - Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile ( 版) http://tools.ietf.org/html/rfc5280#section-4.2.1.6

When the subjectAltName extension contains an iPAddress, the address

MUST be stored in the octet string in "network byte order", as

specified in [RFC791]. The least significant bit (LSB) of each octet

is the LSB of the corresponding byte in the network address. For IP

version 4, as specified in [RFC791], the octet string MUST contain

exactly four octets. For IP version 6, as specified in

[RFC2460], the octet string MUST contain exactly sixteen octets.

[7] RFC 5280 - Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile ( 版) http://tools.ietf.org/html/rfc5280#section-4.2.1.10

The syntax of iPAddress MUST be as described in Section 4.2.1.6 with

the following additions specifically for name constraints. For IPv4

addresses, the iPAddress field of GeneralName MUST contain eight (8)

octets, encoded in the style of RFC 4632 (CIDR) to represent an

address range [RFC4632]. For IPv6 addresses, the iPAddress field

MUST contain 32 octets similarly encoded. For example, a name

constraint for "class C" subnet 192.0.2.0 is represented as the

octets C0 00 02 00 FF FF FF 00, representing the CIDR notation

192.0.2.0/24 (mask 255.255.255.0).

[9] draft-main-ipaddr-text-rep-02 - Textual Representation of IPv4 and IPv6 Addresses ( 版) https://tools.ietf.org/html/draft-main-ipaddr-text-rep-02

[14] RFC 2616 - Hypertext Transfer Protocol -- HTTP/1.1 ( 版) http://tools.ietf.org/html/rfc2616#section-3.2.2

The use of IP addresses

in URLs SHOULD be avoided whenever possible (see RFC 1900 [24]).

[23] RFC 2780 - IANA Allocation Guidelines For Values In the Internet Protocol and Related Headers, , https://tools.ietf.org/html/rfc2780

[24] RFC 2851 - Textual Conventions for Internet Network Addresses, , https://tools.ietf.org/html/rfc2851

[18] RFC 5280 - Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile () https://tools.ietf.org/html/rfc5280#section-4.2.1.10

[19] Update address prose to match rfc5245. (jan-ivar著, ) https://github.com/w3c/webrtc-pc/commit/18ea6f19e9a60af92659cd53e267ca9846fa2b79

[20] Rename RTCIceCandidate.ip to address. by jan-ivar · Pull Request #1985 · w3c/webrtc-pc () https://github.com/w3c/webrtc-pc/pull/1985

[25] RFC 2812 - Internet Relay Chat: Client Protocol, , https://tools.ietf.org/html/rfc2812#page-7

[26] IANA IPv4 Special-Purpose Address Registry, , https://www.iana.org/assignments/iana-ipv4-special-registry/iana-ipv4-special-registry.xhtml

[27] IANA IPv6 Special-Purpose Address Registry, , https://www.iana.org/assignments/iana-ipv6-special-registry/iana-ipv6-special-registry.xhtml

[28] RFC 3291 - Textual Conventions for Internet Network Addresses, , https://tools.ietf.org/html/rfc3291

[29] rfc4001 () https://datatracker.ietf.org/doc/html/rfc4001