CoS Mapping
In PicOS-2.1, if user enables the Class of Service (CoS) mapping, the packet will be mapped to a physical queue (0-7). With DSCP (0-7), it maps to queue-0 and with DSCP (8-16), it maps to queue-1 and so on. Queue-7 has the highest priority. Enable the CoS Mapping as follows:
admin@PicOS-OVS$ovs-vsctl set-cos-map true admin@PicOS-OVS$ovs-vsctl show-cos-map cos mapping: enabled
Display the configuration by entering the following:
admin@PicOS-OVS$ovs-vsctl show-cos-map ge-1/1/1 cos mapping: enabled { dscp queue -------- ----- 0 - 7: q0 8 - 15: q1 16 - 23: q2 24 - 31: q3 32 - 39: q4 40 - 47: q5 48 - 55: q6 56 - 63: q7 }
To configure a flow, use the following command:
admin@PicOS-OVS$ovs-ofctl add-flow br0 in_port=1,dl_src=22:11:11:11:11:11,actions=set_queue:7,output=3
The action of "set-queue:7" will take the place of the default CoS mapping.
Modify the dscp value of port:
admin@XorPlus$ovs-vsctl set-cos-map true admin@XorPlus$ admin@XorPlus$ovs-vsctl set interface ge-1/1/1 dscp_map=0=q1,1=q1,2=q2 admin@XorPlus$ovs-vsctl show-cos-map ge-1/1/1 cos mapping: enabled { dscp queue -------- ----- 0: q1 1: q1 2: q2 others: q0 } admin@XorPlus$
The following command is also permitted:
admin@XorPlus$ovs-vsctl set interface ge-1/1/2 dscp_map:0=q1 dscp_map:1=q1 dscp_map:2=q2 admin@XorPlus$ admin@XorPlus$ admin@XorPlus$ovs-vsctl show-cos-map ge-1/1/2 cos mapping: enabled { dscp queue -------- ----- 0: q1 1: q1 2: q2 others: q0 } admin@XorPlus$
Copyright © 2024 Pica8 Inc. All Rights Reserved.