[dpdk-users] DPDK QOS
jasvinder.singh at intel.com
Wed Sep 7 14:48:42 CEST 2016
> -----Original Message-----
> From: users [mailto:users-bounces at dpdk.org] On Behalf Of Kapil
> Sent: Tuesday, September 6, 2016 8:29 AM
> To: users at dpdk.org
> Subject: [dpdk-users] DPDK QOS
> I currently receive both control and data traffic on my dpdk port. I want to
> classify the packets and assign more priority to the control packets; is there a
> way to put the control packets in one queue and give it a higher priority than
> the other queue(s).
DPDK QoS scheduler prioritizes the packets, enqueue them into queues and schedule their transmission based on available bandwidth as per configured SLAs.
In your case, the traffic belonging to different classes (control, data) needs to be appropriately queued in. For that, you can learn from the classification stage of the QoS which set the "sched" field of the mbuf. Later, this field can be consumed to determine the priority of the packets (i.e. traffic class & queue ) and buffer them into respective queues. Depending upon your application, you can select scheduling process to determine which packet is to be transmitted next.
> From the dpdk QOS section, i see Qos metering and scheduling can be done
> only for the traffic sent out of the port (Tx) ? or am i missing something ?
QoS traffic metering is applied to the input packet as a measure of how much the user/flow currently exceeds its pre-allocated bandwidth, while QoS Scheduling (traffic management) refers to prioritizing the output packets in the case the available traffic exceeds the available bandwidth based on pre-configured SLAs.
More information about the users