> On Aug 21, 2017, at 5:28 AM, Fahmy Sherif Alaa Salaheldin 
> <[email protected]> wrote:
> 
> Good Afternoon,
> 
> I am trying to use Mininet together with OVS and a RYU controller to emulate 
> a simple network.
> 
> I was wondering if some could tell me IF it is possible to set queues/qos 
> through linux tc and then they would show up in the commands:
> 
> sh ovs-vsctl list Qos
> sh ovs-vsctl list Queue
> 
> What I am doing now is for instance,
> 
> tc qdisc add dev s2-eth5 rot handle 1: drr 
> 
> then add two sub classes (what I want as my queues)
> 
> tc class add dev s2-eth5 parent 1: classid 1:1 drr quantum 100
> tc class add dev s2-eth5 parent 1: classid 1:2 drr quantum 200
> 
> then because I know it is necessary I add a filter that basically let's 
> everything pass through it, 
> 
> tc filter add dev eth0 protocol ip parent 1: prio 1 u32 
> 
> But nothing shows in my queues/qos tables.. I am a beginner and I apologize 
> if this is trivial but any thoughts?
> My goal is to create one QOS per port that has 2-3 queues that are served in 
> a Deficit Round Robin (DRR) Fashion!!

OVS uses the tc subsystem in the opposite direction that you're suggesting.  
Those ovs-vsctl commands modify fields in a database. ovs-vswitchd takes that 
configuration and makes tc calls to configure qos on Linux.  If you call tc 
directly, OVS will not read your changes back and update the configuration 
database.

If OVS does not provide the configuration knobs you want, you can directly call 
tc and skip the ovs-vsctl configuration entirely.  I would be careful if you do 
both, though, since you're likely to get a broken configuration if both you and 
ovs-vswitchd are modifying tc.

If you think your configuration is generally useful, you could propose changes 
to OVS to support what you're suggesting.

--Justin


_______________________________________________
discuss mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss

Reply via email to