Chinaunix

标题: 关于lartc中的promap的疑问 [打印本页]

作者: summer2013    时间: 2013-12-08 18:35
标题: 关于lartc中的promap的疑问
本帖最后由 summer2013 于 2013-12-08 18:40 编辑

请教一下流量控制中pfifi_fast队列中的priomap的一个疑问。

下面是lartc(linux advanced routing & traffic control howto )中很著名的一个表,它表示了TOS同priomap的映射关系。
TOS     Bits  Means                          Linux Priority    Band
------------------------------------------------------------
0x0     0     Normal Service                0 Best Effort     1
0x2     1     Minimize Monetary Cost    1 Filler              2
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

下面是lartc对最后一列的解释:
The last column shows the result of the default priomap. On the
commandline, the default priomap looks like this:
1, 2, 2, 2, 1, 2, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1
This means that priority 4, for example, gets mapped to band number 1.
The priomap also allows you to list higher priorities (> 7) which do
not correspond to TOS mappings, but which are set by other means.

我的疑问是,为什么这两处不一致?
文中的解释:      1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
表中最后一列:   1 2 1 1 2 2 2 2 0 0 0 0 1 1 1 1

大家在最开始研究流量控制的时候,都会有这个疑问吧?这是怎么回事呢?



作者: summer2013    时间: 2013-12-09 09:35
@Godbach
@mengxiang0811

高手请进。
作者: summer2013    时间: 2013-12-09 18:47
坐等高手回复。




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2