跳到主要内容

IP TOS 参数

本文档记录了当前为最重要的互联网协议推荐的默认服务类型(Type-of-Service)取值。

TOS 有三种二进制属性:低时延、高吞吐量与高可靠性;在每种情况下,相应的属性比特置 1 表示“更好”。这三种属性无法同时优化,事实上已讨论过的 TOS 算法往往使各属性的“更好”取值互斥。因此,推荐取值中至多只有一位为 1。

一般来说,涉及与人直接交互的协议应选择低时延,而可能涉及大块数据的传输则需要高吞吐量。最后,对于基于数据报的互联网管理功能,高可靠性最为重要。

未包含在这些表中的应用协议应能适当选择低时延(1 0 0)或高吞吐量(0 1 0)。

以下是 TOS 的推荐取值:

                  ----- Type-of-Service Value -----

Low High High
Protocol Delay Throughput Reliability

TELNET (1) 1 0 0

FTP
Control 1 0 0
Data (2) 0 1 0

TFTP 1 0 0

SMTP (3)
Cmd phase 1 0 0
DATA phase 0 1 0

Domain Name Service
UDP Query 1 0 0
TCP Query 0 0 0
Zone Tnsfr 0 1 0

NNTP 0 0 0



ICMP
Errors 0 0 0
Queries 0 0 0

Any IGP 0 0 1

EGP 0 0 0

SNMP 0 0 1

BOOTP 0 0 0

Notes:

(1) Includes all interactive user protocols (e.g., rlogin).

(2) Includes all bulk data transfer protocols (e.g., rcp).

(3) If the implementation does not support changing the TOS
during the lifetime of the connection, then the recommended
TOS on opening the connection is (0,0,0).