cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
8350
Views
5
Helpful
12
Replies

DSCP - QOS value

gaurav_thapar79
Level 1
Level 1

DSCP Value conversion to PHB Value mechanism and details required.

2 Accepted Solutions

Accepted Solutions

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

View solution in original post

abdel_n
Level 1
Level 1

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

View solution in original post

12 Replies 12

Martin Parry
Level 3
Level 3

Please see attached

Hope this helps

Martin

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?

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.

abdel_n
Level 1
Level 1

Hi,

Take a look at the enclosed document I hope this will help.

Good Work,

Abdel

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.

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

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.

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

abdel_n
Level 1
Level 1

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

Hi,

Great Explanation,

Deserve Full Rate.

Regards,

Mohamed Sobair

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

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Innovations in Cisco Full Stack Observability - A new webinar from Cisco