:: reverse dictionary ::
TOS を指定して IP 接続を確認するには、ping コマンドに次の2つを指定して実行します。
C:\>ping -v 32 10.1.111.222
Pinging 10.1.111.222 with 32 bytes of data:
Reply from 10.1.111.222: bytes=32 time=20ms TTL=50
Reply from 10.1.111.222: bytes=32 time=20ms TTL=50
Reply from 10.1.111.222: bytes=32 time=20ms TTL=50
Reply from 10.1.111.222: bytes=32 time=19ms TTL=50
Ping statistics for 10.1.111.222:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 19ms, Maximum = 20ms, Average = 19ms
C:\>ping -v 160 sample.always-pg.com
Pinging sample.always-pg.com [10.1.111.222] with 32 bytes of data:
Reply from 10.1.111.222: bytes=32 time=20ms TTL=50
Reply from 10.1.111.222: bytes=32 time=19ms TTL=50
Reply from 10.1.111.222: bytes=32 time=20ms TTL=50
Reply from 10.1.111.222: bytes=32 time=20ms TTL=50
Ping statistics for 10.1.111.222:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 19ms, Maximum = 20ms, Average = 19ms
ping [-v TOS] 宛先
ping コマンドに -v オプションと TOS を指定して実行すると、それに対応する優先度で「ICMP エコー要求パケット」を宛先に送信し、IP 接続ができるかどうかを確認します。
TOS は、「 0 〜 255 」の範囲で指定できます。
範囲外の値を指定すると、エラーメッセージを表示します。
C:\>ping -v 256 10.1.111.222 Bad value for option -v, valid range is from 0 to 255.
TOS は、パケットの優先度だけでなく、フローの出力優先度やキューイング優先度を決定する値です。
TOS と優先度の対応は、次のとおりです。
(※Precedence … パケットの優先度)
| TOS | Precedence | 出力優先度 |
キューイング 優先度 |
|---|---|---|---|
| 0 〜 31 | 0 | 1 | 4 |
| 32 〜 39 | 1 | 2 | 1 |
| 40 〜 47 | 1 | 2 | 4 |
| 48 〜 55 | 1 | 2 | 3 |
| 56 〜 63 | 1 | 2 | 2 |
| 64 〜 71 | 2 | 3 | 1 |
| 72 〜 79 | 2 | 3 | 4 |
| 80 〜 87 | 2 | 3 | 3 |
| 88 〜 95 | 2 | 3 | 2 |
| 96 〜 103 | 3 | 4 | 1 |
| 104 〜 111 | 3 | 4 | 4 |
| 112 〜 119 | 3 | 4 | 3 |
| 120 〜 127 | 3 | 4 | 2 |
| 128 〜 135 | 4 | 5 | 1 |
| 136 〜 143 | 4 | 5 | 4 |
| 144 〜 151 | 4 | 5 | 3 |
| 152 〜 159 | 4 | 5 | 2 |
| 160 〜 191 | 5 | 6 | 1 |
| 192 〜 223 | 6 | 7 | 1 |
| 224 〜 255 | 7 | 8 | 1 |
-v オプションを付けない ping コマンドの TOS は 0 です。
TOS は「Type Of Service」の略で、IP ヘッダ内のフィールドです。
ping コマンドに指定した TOS の値によって、TOS フィールドの Precedence(上位3ビット)が設定されます。
IPv4 の IP ヘッダは、次のような形式になっています。
|
Version バージョン |
IHL ヘッダ長 |
TOS 優先度 |
Total Length パケット長 |
||||
|
Identification 識別子 |
Flags フラグ |
Fragment Offset フラグメント オフセット |
|||||
|
TTL 生存時間 |
Protocol プロトコル |
Header Checksum ヘッダ チェックサム |
|||||
|
Source Address 送信元 IP アドレス |
|||||||
|
Destination Address 宛先 IP アドレス |
|||||||
|
Options オプション |
Padding パディング |
||||||
Copyright (C) 2005-2007 Noto Watabe. All rights reserved.
e-mail:wmh@always-pg.com