PRIO(8) Linux PRIO(8) (NAME) tc-prio - (Priority qdisc) (SYNOPSIS) tc qdisc ... dev dev ( parent classid | root) [ handle major: ] prio [ bands bands ] [ priomap band band band... ] [ estimator interval timeconstant ] (DESCRIPTION) PRIO (classful) . . PRIO (scheduler) - (work-conserving) . (latency) . (ALGORITHM) tc qdisc add (Band) . tc qdisc add PRIO . (dequeueing) PRIO . . PRIO (minor) major:1 major:2 . major tc qdisc add handle . (CLASSIFICATION) PRIO : (From userspace) SO_PRIORITY socket(7) . tc (with a tc filter) tc . priomap (with the priomap) (Type of Service TOS) . priomap . (QDISC PARAMETERS) bands . priomap . priomap priomap . (TOS) . ( ) . (octet) TOS : 0 1 2 3 4 5 6 7 +---+---+---+---+---+---+---+---+ | | | | |PRECEDENCE | TOS |MBZ| | | | | +---+---+---+---+---+---+---+---+ TOS ( << TOS>> ) : Binary Decimal Meaning ----------------------------------------- 1000 8 Minimize delay (md) 0100 4 Maximize throughput (mt) 0010 2 Maximize reliability (mr) 0001 1 Minimize monetary cost (mmc) 0000 0 Normal Service TOS TOS . tcpdump -v -v TOS . : TOS Bits Means Linux Priority Band ------------------------------------------------------------ 0x0 0 Normal Service 0 Best Effort 1 0x2 1 Minimize Monetary Cost 0 Best Effort 1 0x4 2 Maximize Reliability 0 Best Effort 1 0x6 3 mmc+mr 0 Best Effort 1 0x8 4 Maximize Throughput 2 Bulk 2 0xa 5 mmc+mt 2 Bulk 2 0xc 6 mr+mt 2 Bulk 2 0xe 7 mmc+mr+mt 2 Bulk 2 0x10 8 Minimize Delay 6 Interactive 0 0x12 9 mmc+md 6 Interactive 0 0x14 10 mr+md 6 Interactive 0 0x16 11 mmc+mr+md 6 Interactive 0 0x18 12 mt+md 4 Int. Bulk 1 0x1a 13 mmc+mt+md 4 Int. Bulk 1 0x1c 14 mr+mt+md 4 Int. Bulk 1 0x1e 15 mmc+mr+mt+md 4 Int. Bulk 1 TOS . (Minimal Monetary Cost) (Maximum Reliability) (Maximum Throughput) (Minimum Delay) . TOS . priomap . priomap : 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1 . priomap ( ) TOS . RFC 1349 ( ) TOS : TELNET 1000 (minimize delay) FTP Control 1000 (minimize delay) Data 0100 (maximize throughput) TFTP 1000 (minimize delay) SMTP Command phase 1000 (minimize delay) DATA phase 0100 (maximize throughput) Domain Name Service UDP Query 1000 (minimize delay) TCP Query 0000 Zone Transfer 0100 (maximize throughput) NNTP 0001 (minimize monetary cost) ICMP Errors 0000 Requests 0000 (mostly) Responses (mostly) (CLASSES) PRIO - PRIO . . (BUGS) ( ) (starvation) . ( tc-tbf(8)) . (AUTHORS) Alexey N. Kuznetsov, , J Hadi Salim . bert hubert . iproute2 16 December 2001 PRIO(8)