DSCP - QOS value

Answered Question
Oct 11th, 2007

DSCP Value conversion to PHB Value mechanism and details required.

I have this problem too.
0 votes
Correct Answer by abdel_n about 6 years 6 months ago

Hi,

It was detailed calculation:

AFXY, CSX and EF are just PHB codes for the corresponding DSCP in binary or decimal representation.

AFXY where X is the class (3bits)

Y is the priority (2bits)

AF calculation example: PHB codeAF33=011 11 0(binary)=30(decimal)

EF calculation example: PHB code EF =101 11 0(binary)=46(decimal)

101 is the precedence

11 is the class of service

0 remain 0

and so one for other values, I attached another more detailed table that resume all calculations of the DSCP binary and the equivalent decimal value from the precedence and class of service

Correct Answer by Pavlo Bykov about 6 years 6 months ago

Hello Guarav.

What zou are looking for is NOT mathematical. "AF" and "EF" is just a NAME defined in Standard. AF means Assured Forwarding, and EF means Expedited Forwarding. They could have named it "Very Important" and instead of EF we would use "VI"

So DSCP EF 46 is really DSCP 46. Standard defines how should numbers be used and what they are named. Please refer to the following documents:

AF: http://tools.ietf.org/html/rfc2597

EF: http://tools.ietf.org/html/rfc3246

DSCP: http://tools.ietf.org/html/rfc2474

Hope this helps.

Please rate all helpful posts

  • 1
  • 2
  • 3
  • 4
  • 5
Average Rating: 5 (3 ratings)
gaurav_thapar79 Thu, 10/11/2007 - 10:21

Dear Parry,

Thats of great help but i am looking for mathematical calculas to do the conversion part.

i can do the DSCP to IP precedence but cld not achieve DSCP to PHB.

Can you help on this?

gaurav_thapar79 Thu, 10/11/2007 - 21:36

Hi matrin,

can you share the calculas of converting DSCP values to Assured Forwarding Classes and drop precedence.

DSCP 31 to AFxy.

How to convert 31 to xy? pls share the URL or method of doing it so.

gaurav_thapar79 Fri, 10/12/2007 - 09:46

Hi abdel,

I am looking for methodology of calculating AFxy using given DSCP value instead of using table.

Like DSCP 46 means

a.) IP precedence =4

b.) TOS value = 184

c.) PHB = EF =101 but how have i derived 46 = EF?

Any possible calculation against this.

Please share.

Mohamed Sobair Fri, 10/12/2007 - 11:06

Hi,

Great question,

I was asking the same, How is PHP is converted to Diffserv Code point?

the point here is that IP-Precedence 5 is equal to EF 46.

Please check attached file

Regards,

Mohamed Sobair

Attachment: 
gaurav_thapar79 Fri, 10/12/2007 - 11:30

Dear Sobair,

My apologies for writing IP precedence 4 instead of 5. But still my query hasn't been addressed.

How would i come to know that DSCP 36 is equal to AFxy?

how would i calculate that 36 = xy?

x= class service

y= drop precedence.

Hope you understand my question. please share any possible calculas.

Correct Answer
Pavlo Bykov Fri, 10/12/2007 - 11:25

Hello Guarav.

What zou are looking for is NOT mathematical. "AF" and "EF" is just a NAME defined in Standard. AF means Assured Forwarding, and EF means Expedited Forwarding. They could have named it "Very Important" and instead of EF we would use "VI"

So DSCP EF 46 is really DSCP 46. Standard defines how should numbers be used and what they are named. Please refer to the following documents:

AF: http://tools.ietf.org/html/rfc2597

EF: http://tools.ietf.org/html/rfc3246

DSCP: http://tools.ietf.org/html/rfc2474

Hope this helps.

Please rate all helpful posts

Correct Answer
abdel_n Fri, 10/12/2007 - 11:40

Hi,

It was detailed calculation:

AFXY, CSX and EF are just PHB codes for the corresponding DSCP in binary or decimal representation.

AFXY where X is the class (3bits)

Y is the priority (2bits)

AF calculation example: PHB codeAF33=011 11 0(binary)=30(decimal)

EF calculation example: PHB code EF =101 11 0(binary)=46(decimal)

101 is the precedence

11 is the class of service

0 remain 0

and so one for other values, I attached another more detailed table that resume all calculations of the DSCP binary and the equivalent decimal value from the precedence and class of service

Attachment: 
Pavlo Bykov Sat, 10/13/2007 - 07:50

A little correction to Abdel's post: IP Precedence are not called CS0, CS1, and so forth. That's DSCP code. The following list describes the Codes (Names) of IP Precedence values in format "Binary (decimal) - Name":

000 (0) - Routine

001 (1) - Priority

010 (2) - Immediate

011 (3) - Flash

100 (4) - Flash Override

101 (5) - Critical

110 (6) - Internetwork Control

111 (7) - Network Control

Actions

Login or Register to take actions

This Discussion

Posted October 11, 2007 at 5:53 AM
Stats:
Replies:12 Avg. Rating:5
Views:1937 Votes:0
Shares:0
Tags: No tags.

Discussions Leaderboard