IPF parses incoming network traffic to classify frames into different priorities levels. It derives the traffic class from
different packet formats. For example, the traffic class can be derived from the Differentiated Services Code Point (DSCP)
for IP packets, or, Class of Service (CoS) for dot1q tag packets. These traffic classes are further mapped to priority levels,
which are used to take drop decisions, in case of congestion.
The IPF parser, can be used in the global mode and in the isolation mode (high and low priority configuration at port level).
By default it is in the isolation mode. In the isolation mode, priority differentiation is made at the port level rather than
the system level.
To configure the IPF parser in the global mode, use the following command:configure port-ingress-fifo mode global
The following are the examples of show commands to see the traffic-class to priority mappings:
Switch#show platform hardware fed active qos ipf interface twentyFiveGigE 1/0/1 cos-map
IPF cos to traffic class map for Interface [cos : traffic-class]:
------------------------------------------------------------------------
0 : 0 1 : 1 2 : 2 3 : 3
4 : 4 5 : 5 6 : 6 7 : 7
8 : 4 9 : 4 10 : 4 11 : 4
12 : 4 13 : 4 14 : 4 15 : 4
Switch#show platform hardware fed active qos ipf interface twentyFiveGigE 1/0/1 dscp-map
IPF dscp to traffic class map for Interface [dscp : traffic-class]:
----------------------------------------------------------------
0 : 0 1 : 0 2 : 0 3 : 0
4 : 0 5 : 0 6 : 0 7 : 0
8 : 1 9 : 1 10 : 1 11 : 1
12 : 1 13 : 1 14 : 1 15 : 1
16 : 2 17 : 4 18 : 4 19 : 4
20 : 4 21 : 4 22 : 4 23 : 4
24 : 3 25 : 4 26 : 4 27 : 4
28 : 4 29 : 4 30 : 4 31 : 4
32 : 4 33 : 4 34 : 4 35 : 4
36 : 4 37 : 4 38 : 4 39 : 4
40 : 4 41 : 4 42 : 4 43 : 4
44 : 4 45 : 4 46 : 5 47 : 4
48 : 6 49 : 4 50 : 4 51 : 4
52 : 4 53 : 4 54 : 4 55 : 4
56 : 7 57 : 4 58 : 4 59 : 4
60 : 4 61 : 4 62 : 4 63 : 4
Switch#show platform hardware fed active qos ipf interface twentyFiveGigE 1/0/1 exp-map
IPF exp to traffic class map for Interface [exp : traffic-class]:
-----------------------------------------------------------------
0 : 0 1 : 1 2 : 2 3 : 3
4 : 4 5 : 5 6 : 6 7 : 7
Switch#show platform hardware qos ipf interface twentyFiveGigE 1/0/1 ipf-parse-cfg
IPF configration for Interface:
--------------------------------
Port Trust: Enabled
Default TC: 0
Dscp based parsing: Disabled
Exp based parsing: Disabled
Fdcos based parsing: Enabled
cos based parsing: Disabled
Switch#show platform hardware fed active qos ipf tc-to-pri asic 0
IPF traffic class to priority for[Asic:Core:TlaInst]::[0:0:0]
-------------------------------------------------------------
Priority Traffic Classes
-------- ---------------
Low Pri : 0 1 4
High Pri: 2 3 5 6 7
IPF traffic class to priority for[Asic:Core:TlaInst]::[0:0:1]
-------------------------------------------------------------
Priority Traffic Classes
-------- ---------------
Low Pri : 0 1 4
High Pri: 2 3 5 6 7
Statistics show command:
Switch#show platform hardware fed active qos ipf statistics asic 0
Ipf Statistics:[Asic|Core|Tla] : [0 | 0 | 0] - Global Mode
-----------------------------------------------
Ipf misc packet drops: 0
Ipf Drop Statistics
-------------------
low pri Frames drop: 0
low pri mop Frames drop: 0
high pri Frames drop: 0
almost full Frames drop: 0
RCP Frames drop: 0
Ipf Statistics:[Asic|Core|Tla] : [0 | 0 | 1] - Global Mode
-----------------------------------------------
Ipf misc packet drops: 0
Ipf Drop Statistics
-------------------
low pri Frames drop: 0
low pri mop Frames drop: 0
high pri Frames drop: 0
almost full Frames drop: 0
RCP Frames drop: 0