Networking Forums

Networking Forums > Computer Networking > Linux Networking > priomap unclear

Reply
Thread Tools Display Modes

priomap unclear

 
 
josh
Guest
Posts: n/a

 
      06-06-2004, 01:31 AM
Hello there!
I was trying to figure out what is this 'priomap' is all about and found
some ambiguity in what I've found.

There is this well-known table:

> 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


and also well-known explanation to it:

>"[...]
>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."



So looking at the table, there we can find out that matching "band" to
TOS field value "Bits" gives us something quite different from what this
"priomap":

Priomap is:
1, 2, 2, 2, 1, 2, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1

while table shows:

band: |1 |2 |1 |1 |2 |2 |2 |2 |0 |0 |0 |0 |1 |1 |1 |1 |
------+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
bits: |0 |1 |2 |3 |4 |5 |6 |7 |8 |9 |10|11|12|13|14|15|

Quite different, huh?
priomap: 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
table: 1 2 1 1 2 2 2 2 0 0 0 0 1 1 1 1


So how is that table and priomap connected? What do those "priomap"
numbers means?

-josh
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
tc and PRIOMAP not working Johannes Bauer Linux Networking 3 11-16-2008 01:50 PM
PPTP with poptop - unclear error messages Martin Mleczko Linux Networking 9 03-04-2004 09:44 PM



1 2 3 4 5 6 7 8 9 10 11