免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1337 | 回复: 2
打印 上一主题 下一主题

[其他] 关于lartc中的promap的疑问 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2013-12-08 18:35 |只看该作者 |倒序浏览
本帖最后由 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

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


论坛徽章:
0
2 [报告]
发表于 2013-12-09 09:35 |只看该作者
@Godbach
@mengxiang0811

高手请进。

论坛徽章:
0
3 [报告]
发表于 2013-12-09 18:47 |只看该作者
坐等高手回复。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP