08-18-2010 05:09 PM - edited 03-04-2019 09:28 AM
Dears
I have a questions , I'm making tests in some routers using QoS, I configure to mark the packets with ip precedence=5, then I have to put in a equipment that send traffic the type of service (ToS) on the header IP , in order that the router can mark the packets, but i dont know what numer I should put in the ToS , I guess is A0, but the router doesn't mark the packets, also can you expain me how to make the conversion in ip prec and dscp.
For example I have to configure 4 cases ip prec=5, dscp=8, dscp 10 and ip prec = 7.Please tell me what number in binary I have to put in the ToS.
IP Prec 5 (101) maps to IP DSCP 101 000
ToS Byte
1 | 0 | 1 | T2 | T1 | T0 | CU2 | CU0 |
DiffServ Field
1 | 0 | 1 | 0 | 0 | 0 | ECN | ECN |
---|
IP Precedence (Decimal) | IP Precedence (Bits) | DSCP (Decimal) | DSCP (Bits) |
0 | 000 | 0 | 000000 |
1 | 001 | 8 | 001000 |
2 | 010 | 16 | 010000 |
3 | 011 | 24 | 011000 |
4 | 100 | 32 | 100000 |
5 | 101 | 40 | 101000 |
6 | 110 | 48 | 110000 |
7 | 111 | 56 | 111000 |
08-18-2010 07:05 PM
HI,
Here is IP PREC -> DSCP conversion table.
DSCP Name | DS Field Value | IP Precedence | |
---|---|---|---|
Binary | Decimal | ||
CS0 | 000 000 | 0 | 0 |
CS1 | 001 000 | 8 | 1 |
AF11 | 001 010 | 10 | 1 |
AF12 | 001 100 | 12 | 1 |
AF13 | 001 110 | 14 | 1 |
CS2 | 010 000 | 16 | 2 |
AF21 | 010 010 | 18 | 2 |
AF22 | 010 100 | 20 | 2 |
AF23 | 010 110 | 22 | 2 |
CS3 | 011 000 | 24 | 3 |
AF31 | 011 010 | 26 | 3 |
AF32 | 011 100 | 28 | 3 |
AF33 | 011 110 | 30 | 3 |
CS4 | 100 000 | 32 | 4 |
AF41 | 100 010 | 34 | 4 |
AF42 | 100 100 | 36 | 4 |
AF43 | 100 110 | 38 | 4 |
CS5 | 101 000 | 40 | 5 |
EF | 101 110 | 46 | 5 |
CS6 | 110 000 | 48 | 6 |
CS7 | 111 000 | 56 | 7 |
So, Binary value for your questions are
ip prec=5 --> 101000 or 101110 in binary --> 28 or 2E in HEX
dscp=8 --> 001000 in binary --> 8 in HEX
dscp 10 --> 001010 in binary --> A in HEX
ip prec = 7 --> 111000 --> 38 in Hex
Also, below document is good to read for basic ToS/IP Prec/DSCP.
http://www.cisco.com/en/US/tech/tk543/tk757/technologies_tech_note09186a00800949f2.shtml
Hope this helps.
KK
08-18-2010 09:42 PM
Kyuhwan Kim , your post is helpfull. Thanks
08-20-2010 12:53 PM
Ok, thanks for the requets, but my question is what number put in the
TOS. I will sshow the scenario.:
the configuration is:
flow-queue PRUEBA
queue ef pq shaping 10000
interface GigabitEthernet 11/0/0
ip address 172.16.24.1 255.255.255.0user-queue cir 500000 pir 500000 flow-queue PRUEBA inbound
interface GigabitEthernet 11/0/0
ip address 172.16.25.1 255.255.255.0
after that I make two kind of traffic , 1 traffic with 20M which should have the ip precedence=5 source 24.2 to 25.2 and other with 50M with ip precedence =0 source 24.3 to 25.2 when I analize in the equpiment 25.2 the traffic , I only see that It receives 15M of traffic 1 and 35M of traffic 2.
08-20-2010 02:27 PM
I believe you want TOS Byte value 184 to manufacture traffic that will match DSCP value EF.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide