When you're setting the mpls experiment bit on the PE router for traffic coming from CE router you must use imposition for QoS treatment. You cannot use topmost because the packet is IP packet. If you're on a P router you can set or match on the topmost label for the swap function. If you're on the PE router receiving traffic from the P router then you can also set and match on the topmost label.
Whether a customers sets the DSCP/TOS or you set an mpls exp bit inbound on a PE router you have to match on the mpls experiment bits as the packet leaves the PE router going to the P router because the packet is an mpls packet not an IP packet. If a packet is marked by a customer with a DSCP or TOS value, that value will be honored/mapped to an mpls experiment value. See the chart below for mappings honored:-
TOS | TOS Binary | DSCP | DSCP Binary | MPLS EXP | HEX | HEX Binary |
---|---|---|---|---|---|---|
0 | 000|000 | 0-7 | 000000 - 000111 | 0 | 00-1F | 0000|0000 - 0001|1111 |
1 | 001|000 | 41501 | 001000 - 001111 | 1 | 20-3F | 0010|0000 - 0011|1111 |
2 | 010|000 | 16-23 | 010000 - 010111 | 2 | 40-5F | 0100|0000 - 0101|1111 |
3 | 011|000 | 24-31 | 011000 - 011111 | 3 | 60-7F | 0110|0000 - 0111|1111 |
4 | 100|000 | 32-39 | 100000 - 100111 | 4 | 80-9F | 1000|0000 - 1001|1111 |
5 | 101|000 | 40-47 | 101000 - 101111 | 5 | A0-BF | 1010|0000 - 1011|1111 |
6 | 110|000 | 48-55 | 110000 - 110111 | 6 | C0-DF | 1100|0000 - 1101|1111 |
7 | 111|000 | 56-63 | 111000 - 111111 | 7 | E0-FF | 1110|0000 - 1111|1111 |
After you configure ip telnet tos xx on an edge device telnet to the far end of your network and run some commands in order to generate some telnet traffic. Next use the "show policy-map interface
You can also see the TOS or DSCP value set on IP traffic traversing the network use ip accounting precedence output or input on the PE or CE router. Then use the show interface precedence command.
No comments:
Post a Comment